Documentation ¶
Index ¶
- func Del(key string) error
- func Dels(keys []string) error
- func Exists(key string) (bool, error)
- func Get(key string) ([]byte, error)
- func HDel(key string, fields ...[]byte) (int64, error)
- func HExists(key string, field []byte) (bool, error)
- func HGetAll(key string) ([][]byte, error)
- func HMGet(key string, fields ...[]byte) ([][]byte, error)
- func HMSet(key string, ttl int64, args ...[]byte) error
- func HVals(key string) ([][]byte, error)
- func Keys(keyFormat string) ([][]byte, error)
- func NewCache(cfg interface{})
- func SAdd(key string, ttl int64, members ...[]byte) error
- func SCard(key string) (int64, error)
- func SIsMember(key string, member []byte) (bool, error)
- func SMembers(key string) ([][]byte, error)
- func SRem(key string, members ...[]byte) (int64, error)
- func Set(key string, value []byte, ttl int64) error
- func ZAdd(key string, ttl int64, args ...[]byte) error
- func ZRange(key string, start, stop int64, withScores bool) ([][]byte, error)
- func ZRemRangeByScore(key string, start, stop int64) (int64, error)
- type Cache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cache ¶
type Cache interface { Set(key string, value []byte, ttl int64) error Get(key string) ([]byte, error) Del(key string) error Dels(keys []string) error Exists(key string) (bool, error) Keys(keyFormat string) ([][]byte, error) HMSet(key string, ttl int64, args ...[]byte) error HMGet(key string, fields ...[]byte) ([][]byte, error) HDel(key string, fields ...[]byte) (int64, error) HGetAll(key string) ([][]byte, error) HVals(key string) ([][]byte, error) HExists(key string, field []byte) (bool, error) SAdd(key string, ttl int64, members ...[]byte) error SCard(key string) (int64, error) SRem(key string, members ...[]byte) (int64, error) SMembers(key string) ([][]byte, error) SIsMember(key string, member []byte) (bool, error) ZAdd(key string, ttl int64, args ...[]byte) error ZRange(key string, start, stop int64, withScores bool) ([][]byte, error) ZRemRangeByScore(key string, start, stop int64) (int64, error) }
Click to show internal directories.
Click to hide internal directories.