Commit 4e5b6f89 by songxiang

增加redis方法

parent 7a17eca5
......@@ -1371,6 +1371,23 @@ public class JedisClusterUtils {
}
/**
* 缓存值自增
*
* @param key
* @param value
* @return
*/
public static Long incrBy(String key, Long value) {
Long result = null;
try {
result = jedisCluster.incrBy(key, value);
} catch (Exception e) {
LOGGER.warn("jedis缓存值自增1失败:" + e.getMessage(), e);
}
return result;
}
/**
* 缓存值自增1
*
* @param key
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment