摘要: 为什么要使用JedisPool 1,获取Jedis实例需要从JedisPool中获取 2,用完Jedis实例需要返还给JedisPool 3,如果Jedis在使用过程中出错,则也需要还给JedisPool 案例见代码 JedisPoolUtil public class JedisPoolUtil 阅读全文
posted @ 2020-01-21 13:37 一半人生 阅读(9019) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/lixiaoxiong55/article/details/81592800 超详细版 常规操作 public class TestReidsCommon { ​ public static void main(String[] args) { // 创建 阅读全文
posted @ 2020-01-21 10:09 一半人生 阅读(334) 评论(0) 推荐(0) 编辑