Cache.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "$schema": "https://gitee.com/dotnetchina/Furion/raw/v4/schemas/v4/furion-schema.json",
  3. // 缓存配置
  4. "Cache": {
  5. "Prefix": "adminnet_", // 全局缓存前缀
  6. "CacheType": "Memory", // Memory、Redis
  7. "Redis": {
  8. "Configuration": "server=127.0.0.1:6379;password=;db=5;", // Redis连接字符串
  9. "Prefix": "adminnet_", // Redis前缀(目前没用)
  10. "MaxMessageSize": "1048576", // 最大消息大小 默认1024 * 1024
  11. "AutoDetect": false // 自动检测集群节点 阿里云的Redis分布式集群使用代理模式,需要设置为false关闭自动检测;如果不用代理地址,就配置多个节点地址并打开自动检测
  12. }
  13. },
  14. // 集群配置
  15. "Cluster": {
  16. "Enabled": false, // 启用集群:前提开启Redis缓存模式
  17. "ServerId": "adminnet", // 服务器标识
  18. "ServerIp": "", // 服务器IP
  19. "SignalR": {
  20. "RedisConfiguration": "127.0.0.1:6379,ssl=false,password=,defaultDatabase=5",
  21. "ChannelPrefix": "signalrPrefix_"
  22. },
  23. "DataProtecteKey": "AdminNet:DataProtection-Keys",
  24. "IsSentinel": false, // 是否哨兵模式
  25. "SentinelConfig": {
  26. "DefaultDb": "4",
  27. "EndPoints": [ // 哨兵端口
  28. // "10.10.0.124:26380"
  29. ],
  30. "MainPrefix": "adminNet:",
  31. "Password": "123456",
  32. "SentinelPassword": "adminNet",
  33. "ServiceName": "adminNet",
  34. "SignalRChannelPrefix": "signalR:"
  35. }
  36. }
  37. }