Cache.json 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
  3. "Cache": {
  4. "Prefix": "adminnet_", // 全局缓存前缀
  5. "CacheType": "Redis", // Memory、Redis
  6. "Redis": {
  7. "Configuration": "server=redis:6379;password=123456;db=5;", // Redis连接字符串
  8. "Prefix": "adminnet_", // Redis前缀(目前没用)
  9. "MaxMessageSize": "1048576" // 最大消息大小 默认1024 * 1024
  10. }
  11. },
  12. "Cluster": { // 集群配置
  13. "Enabled": true, // 启用集群:前提开启Redis缓存模式
  14. "ServerId": "adminnet", // 服务器标识
  15. "ServerIp": "", // 服务器IP
  16. "SignalR": {
  17. "RedisConfiguration": "redis:6379,ssl=false,password=123456,defaultDatabase=5",
  18. "ChannelPrefix": "signalrPrefix_"
  19. },
  20. "DataProtecteKey": "AdminNet:DataProtection-Keys",
  21. "IsSentinel": false, // 是否哨兵模式
  22. "SentinelConfig": {
  23. "DefaultDb": "4",
  24. "EndPoints": [ // 哨兵端口
  25. // "10.10.0.124:26380"
  26. ],
  27. "MainPrefix": "adminNet:",
  28. "Password": "123456",
  29. "SentinelPassword": "adminNet",
  30. "ServiceName": "adminNet",
  31. "SignalRChannelPrefix": "signalR:"
  32. }
  33. }
  34. }