Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCacheKeyPrefix = "dy.wx.cache."
Variables ¶
View Source
var ( ErrKeyExpired = errors.New("key expired") ErrKeyNotExist = errors.New("key not exist") )
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache interface {
IsExist(key string) bool
Get(key string) (string, error)
Put(key string, value string, expiration time.Duration) error
Delete(key string) error
ClearAll() error
}
Cache 缓存接口
Click to show internal directories.
Click to hide internal directories.