redis.go 625 B

12345678910111213141516171819202122232425262728293031323334353637
  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. // QA
  26. {
  27. Host: "192.168.1.76",
  28. Port: 6379,
  29. User: "",
  30. Pwd: "",
  31. IsRunning: true,
  32. },
  33. }
  34. var RdsCache RdsConfig = RdsCacheList[1]