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.

解决方法:

Pipeline pip = jedis.pipelined();

Response<Long> smsCount=pip.hincrBy(keyName, field, -count); 

if(smsCount.get()<0){

}

修改:http://www.yayihouse.com/yayis​huwu/chapter/1668

猜你喜欢

转载自blog.csdn.net/qq_30908729/article/details/83780560
今日推荐