![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
redis
keeper&
这个作者很懒,什么都没留下…
展开
-
java模糊匹配redis集群中的key
public Set<String> getAllKeys(String pattern){ Set<String> result = new HashSet<>(); try { Map<String, JedisPool> clusterNodes = jedisCluster.getClusterNodes(); for (Map.Entry<String, JedisPool> ent原创 2021-12-14 13:58:14 · 2129 阅读 · 0 评论 -
java使用密码连接Redis集群
public class RedisClusterUtil { private static JedisCluster jedis = null; //可用连接实例的最大数目,默认为8; //如果赋值为-1,则表示不限制,如果pool已经分配了maxActive个jedis实例,则此时pool的状态为exhausted(耗尽) private static Integer MAX_TOTAL = 10; //控制一个pool最多有多少个状态为idle(空闲)的jed原创 2021-12-14 13:49:58 · 2469 阅读 · 0 评论