docker -redis

1.NOAUTH Authentication required

   auth "密码" // auth "密码"

 

2.Redis中RDB操作

3.Redis6.0系列(7)-Redis持久化规则之RDB及AOF

 

4.项目总redis存放的数据

  1. 配置信息
  2. 限制短信发送的计数器
  3. 限制重复调用的唯一key
  4. 解决sesion跨服务器的问题,redis共享session信息

 5.docker查看redis版本

  docker exec -it myredis redis-server -v

 

思路
方向可以使用redisTeplate 也可以用jedis; 因为springboot2.x 采用的默认redis链接工具是lettuce;
所以呢我的方向是先用redisTeplate; 后边时间充足也可以试一下jedis.

步骤:
1.pom.xml中引入 springboot-redis依赖。
2.yml文件中配置redis服务器的地址,和pool连接池的信息

3.配置redisteplate config 序列化配置

4.使用redistemplate 工具

 
posted @ 2022-03-27 12:31  BBS_自律  阅读(80)  评论(0)    收藏  举报