错误这样
05:49:30.749 [main] ERROR com.anawin.tools.IocProvider - Please close pipeline or multi block before calling this method.
redis.clients.jedis.exceptions.JedisDataException: Please close pipeline or multi block before calling this method.
at redis.clients.jedis.Response.get(Response.java:33) ~[jedis-2.9.0.jar:?]
at com.anawin.quartz.job.CtrJob.execute(CtrJob.java:118) ~[om_tools.jar:?]
at com.anawin.quartz.job.CtrJob$$NUTZAOP._aop_invoke(CtrJob.java:1) ~[nutz-1.r.63-SNAPSHOT.jar:?]
at org.nutz.aop.InterceptorChain.invoke(InterceptorChain.java:77) ~[nutz-1.r.63-SNAPSHOT.jar:1.r.63-SNAPSHOT]
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:57) ~[nutz-1.r.63-SNAPSHOT.jar:1.r.63-SNAPSHOT]
at org.nutz.integration.jedis.RedisInterceptor.filter(RedisInterceptor.java:24) ~[nutz-integration-jedis-1.r.62.jar:?]
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60) ~[nutz-1.r.63-SNAPSHOT.jar:1.r.63-SNAPSHOT]
at com.anawin.quartz.job.CtrJob$$NUTZAOP.execute(CtrJob.java:1) ~[nutz-1.r.63-SNAPSHOT.jar:?]
at com.anawin.tools.IocProvider.me(IocProvider.java:55) [om_tools.jar:?]
at com.anawin.tools.IocProvider.main(IocProvider.java:88) [om_tools.jar:?]
用的code
Pipeline p = jedis.pipelined();
Response<String> omObj = p.hget("om.ctr", "rekoe");
omObj.get();