添加alone-redis集群模式文档

这些配置都是和spring redis保持一致的, 底层实现也是调用的spring相关的配置类, 
且配置参数并不是satoken独创的, 开发者只需要有spring redis对接基础就可以用. 
而关于spring redis的集群配置文献, 百度上太多了
This commit is contained in:
AppleOfGray 2023-01-10 01:02:44 +00:00 committed by Gitee
parent 6d0a2455f1
commit 0a25a62abb
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -118,6 +118,10 @@ spring.redis.timeout=10s
具体可参考示例:[码云application.yml](https://gitee.com/dromara/sa-token/blob/master/sa-token-demo/sa-token-demo-alone-redis/src/main/resources/application.yml)
集群配置说明: alone-redis同样可以配置集群(cluster模式和sentinel模式), 且基础配置参数和spring redis集群配置别无二致
集群配置示例可参考demo项目sa-token-demo-alone-redis-cluster
### 3、测试
新建Controller测试一下