redis.go 618 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * @description:
  3. * @Author: CP
  4. * @Date: 2021-01-27 10:57:57
  5. * @FilePath: \construction_management\conf\redis.go
  6. */
  7. package conf
  8. type RdsConfig struct {
  9. Host string
  10. Port int
  11. User string
  12. Pwd string
  13. IsRunning bool // 是否正常运行
  14. }
  15. // 系统中用到的所有redis缓存资源
  16. var RdsCacheList = []RdsConfig{
  17. // 本机
  18. {
  19. Host: "192.168.1.26",
  20. Port: 6379,
  21. User: "",
  22. Pwd: "",
  23. IsRunning: true,
  24. },
  25. {
  26. Host: "192.168.1.76",
  27. Port: 6379,
  28. User: "",
  29. Pwd: "",
  30. IsRunning: true,
  31. },
  32. }
  33. var RdsCache RdsConfig = RdsCacheList[1]