| 123456789101112 |
- package svc
- import "time"
- const cacheWechatTokenPrefix = "cache:wechat:token:"
- // Cache defined
- type Cache interface {
- SetCache(key string, v interface{}) error
- GetCache(key string, v interface{}) error
- SetWithExpire(key string, v interface{}, expire time.Duration) error
- }
|