Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CacheStore ¶
type CacheStore interface {
// Get 获取缓存值
Get(key string) (interface{}, bool)
// Set 设置缓存值
Set(key string, value interface{}, ttl time.Duration)
// Delete 删除缓存值
Delete(key string)
}
CacheStore 缓存存储接口
type KeyGenerator ¶
KeyGenerator 定义缓存键生成函数类型
Click to show internal directories.
Click to hide internal directories.