springboot缓存之搭建redis环境

阅读 62

2022-11-30


Redis是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库\缓存和消息中间件.

  • 安装redis,使用docker

docker pull registry.docker-cn.com/library/redis

  • 运行redis

docker run -d -p 6379:6379 --name myredis redis

  • 下载Redis Desktop Manager

springboot缓存之搭建redis环境_docker

  • new Connection

springboot缓存之搭建redis环境_docker_02

springboot缓存之搭建redis环境_docker_03

  • 进入redis中国官网​​http://www.redis.cn/​​,可以查看redis命令


springboot缓存之搭建redis环境_redis_04

springboot缓存之搭建redis环境_官网_05

redis上右键打开controller

springboot缓存之搭建redis环境_docker_06

输入

springboot缓存之搭建redis环境_redis_07

springboot缓存之搭建redis环境_redis_08

springboot缓存之搭建redis环境_redis_09

此时

springboot缓存之搭建redis环境_redis_10

springboot缓存之搭建redis环境_官网_11

精彩评论(0)

0 0 举报