mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 13:34:18 +08:00
添加alone-redis集群模式文档
这些配置都是和spring redis保持一致的, 底层实现也是调用的spring相关的配置类, 且配置参数并不是satoken独创的, 开发者只需要有spring redis对接基础就可以用. 而关于spring redis的集群配置文献, 百度上太多了
This commit is contained in:
parent
6d0a2455f1
commit
0a25a62abb
@ -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测试一下
|
||||
|
Loading…
Reference in New Issue
Block a user