Documentation
¶
Index ¶
- func Del(key string) (int64, error)
- func Exist(key string) (bool, error)
- func Expire(key string, expire int64) (bool, error)
- func Get(key string) (string, error)
- func Incrby(key string, v int64) (int64, error)
- func ReleaseDistributedLock(key string, v string) (bool, error)
- func Set(key string, value string) error
- func SetEx(key string, value string, second int64) error
- func TryGetDistributedLock(key string, v string) (bool, error)
- type Cache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Set(key string, value string) error SetEx(key string, value string, second int64) error Get(key string) (string, error) Del(key string) (int64, error) Exist(key string) (bool, error) Expire(key string, expire int64) (bool, error) Incrby(key string, v int64) (int64, error) TryGetDistributedLock(key string, v string) (bool, error) ReleaseDistributedLock(key string, v string) (bool, error) }
Click to show internal directories.
Click to hide internal directories.