redis
文章平均质量分 76
OCEAN__
人生一定要有梦想,不然一辈子也只是平凡人,还要为梦想制定一份儿计划,不然永远也只是梦想,当梦想实现的时候,才是真正的人生!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
springboot redis做缓存
一、配置好redis,不做赘述,只需要连接成功就好,有复杂需求请自行搜索redis 缓存相关策略配置二、springboot pom引入cache<!--https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-cache--><dependency><groupId>org.springframework.boot</groupId&...原创 2022-04-21 01:20:27 · 2284 阅读 · 0 评论 -
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
可能是因为超时时间设置太短造成的,这个参数是毫秒,尽量设置大点。我设置了30000 ,也就是30秒。jedisPool = new JedisPool(new JedisPoolConfig(), host, port,30000,password);因为我使用其它client都是正常的,所以刚开始没有想到这个原因,希望对同问的小伙伴儿们有所帮助。原创 2018-04-02 15:25:38 · 337 阅读 · 0 评论 -
jedis cluster Connection refused Could not get a resource from the pool connect timed out
redis-cluster填坑3天1、参考github上的仓库的cluster方式https://github.com/Grokzen/docker-redis-cluster2、需要设置cluster ip为0.0.0.0 但是这样会导致所有节点指向127.0.0.1 ,也就是自己,结果就是造成了jedis客户端连接被refuse的问题,记住是jedis哦,redis desk的可以...原创 2019-07-09 20:12:48 · 723 阅读 · 0 评论
分享