Documentation ¶
Index ¶
- func AddCache(k string, x interface{}, d time.Duration)
- func CreateErrorResponse(response interface{})
- 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 CreateErrorResponse ¶
func CreateErrorResponse(response interface{})
func IncrementIntCache ¶
IncrementIntCache 对已存在的key 值自增n
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.