Documentation ¶
Index ¶
- func DefaultMemCache() *cache.Cache
- func DeleteCacheOf(ctx context.Context, c Interface)
- func GetCacheOf(ctx context.Context, c Interface) error
- func MemCache(defaultExpiration time.Duration, cleanupInterval time.Duration) *cache.Cache
- func RedisCache(addr string) *cache.Cache
- func SetCacheOf(ctx context.Context, c Interface)
- func SetUp(caches ...cache.SetterCacheInterface)
- type CustomCacheValue
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMemCache ¶
func DeleteCacheOf ¶
func RedisCache ¶
func SetCacheOf ¶
func SetUp ¶
func SetUp(caches ...cache.SetterCacheInterface)
Types ¶
type CustomCacheValue ¶
type CustomCacheValue interface {
CacheValue() interface{}
}
CustomCacheValue 自定义缓存value
Click to show internal directories.
Click to hide internal directories.