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环境_官网_03


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

springboot缓存之搭建redis环境_docker_05

redis上右键打开controller

springboot缓存之搭建redis环境_redis_06

输入

springboot缓存之搭建redis环境_redis_07

springboot缓存之搭建redis环境_docker_08

springboot缓存之搭建redis环境_redis_09

此时

springboot缓存之搭建redis环境_redis_10

springboot缓存之搭建redis环境_docker_11