Documentation
¶
Index ¶
- func GetAnything(key interface{}, deleteOnGet ...bool) interface{}
- func GetBool(key interface{}, deleteOnGet ...bool) bool
- func GetFloat(key interface{}, deleteOnGet ...bool) float32
- func GetInt(key interface{}, deleteOnGet ...bool) int
- func GetString(key interface{}, deleteOnGet ...bool) string
- func SetAnything(key interface{}, value interface{}, duration ...time.Duration)
- func SetBool(key interface{}, value bool, duration ...time.Duration)
- func SetFloat(key interface{}, value float32, duration ...time.Duration)
- func SetInt(key interface{}, value int, duration ...time.Duration)
- func SetString(key interface{}, value string, duration ...time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAnything ¶
func GetAnything(key interface{}, deleteOnGet ...bool) interface{}
GetAnything 读取缓存
func SetAnything ¶
SetAnything 设置缓存
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.