Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Exist ¶
type Exist interface { Set(key string, value interface{}, second uint) //设置:键,值,过期秒数 Get(key string) (interface{}, error) //获取:键。返回:值,错误(有错表示不存在或已过期) Exist(key string) bool //是否存在:键。返回:是否存在,true存在,false不存在 Del(key string) //删除:键 ExistDelete(key string) bool //存在即删除:键;返回:是否存在,true存在,false不存在 ExistOrSet(key string, value interface{}, second uint) bool //不存在就设置:键,值,过期秒数;返回:是否存在,true存在,false不存在 Clean() //清空所有 }
Click to show internal directories.
Click to hide internal directories.