redis.go 500 B

12345678910111213141516171819202122232425262728
  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. Host: "192.168.1.26",
  19. Port: 6379,
  20. User: "",
  21. Pwd: "",
  22. IsRunning: true,
  23. },
  24. }
  25. var RdsCache RdsConfig = RdsCacheList[0]