cache.go 439 B

123456789101112131415161718192021222324
  1. package conf
  2. import (
  3. "go-common/library/cache/memcache"
  4. "go-common/library/cache/redis"
  5. xtime "go-common/library/time"
  6. )
  7. // Redis redis
  8. type Redis struct {
  9. *redis.Config
  10. Expire xtime.Duration
  11. }
  12. // Memcache config
  13. type Memcache struct {
  14. *memcache.Config
  15. RelateExpire xtime.Duration
  16. ViewExpire xtime.Duration
  17. ArcExpire xtime.Duration
  18. CmsExpire xtime.Duration
  19. HisExpire xtime.Duration
  20. MangoExpire xtime.Duration
  21. }