Documentation ¶ Index ¶ func AddCache(k string, x interface{}, d time.Duration) func DeleteCache(k string) func GetCache(k string) (interface{}, bool) func IncrementIntCache(k string, n int) (num int, err error) func SetCache(k string, x interface{}, d time.Duration) func SetDefaultCache(k string, x interface{}) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func AddCache ¶ func AddCache(k string, x interface{}, d time.Duration) AddCache Add() 加入缓存 func DeleteCache ¶ func DeleteCache(k string) DeleteCache 删除 cache func GetCache ¶ func GetCache(k string) (interface{}, bool) func IncrementIntCache ¶ func IncrementIntCache(k string, n int) (num int, err error) IncrementIntCache 对已存在的key 值自增n func SetCache ¶ func SetCache(k string, x interface{}, d time.Duration) func SetDefaultCache ¶ func SetDefaultCache(k string, x interface{}) SetDefaultCache 设置cache 无时间参数 Types ¶ This section is empty. Source Files ¶ View all Source files cache_token.go cache_util.go Click to show internal directories. Click to hide internal directories.