Redis 组件
onee-framework-starter-redis
在 spring boot 项目中快速集成 redis 服务组件
模式
目前支持 单点
、哨兵
、集群
3种模式
安装
仓库地址:onee-framework-starter-redis
Maven
在 pom.xml
中添加以下依赖:
参数配置
在 application.properties
文件中可配置以下参数:
配置示例
单点
哨兵
集群
使用方式
代码示例:StorageSample
Last updated