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){
}
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){
}