Documentation ¶
Index ¶
- Variables
- func Delete(keys ...string) error
- func Eval(script string, keys []string, args ...interface{}) error
- func ExistKey(key string) bool
- func ExpireTime(key string, t time.Duration) error
- func Get(key string) (string, error)
- func GetExpire(key string) (time.Duration, error)
- func HDel(key string, fields ...string) (int64, error)
- func HExists(key, field string) (bool, error)
- func HGet(key, field string) (string, error)
- func HGetAll(key string) (map[string]string, error)
- func HKeys(key string) ([]string, error)
- func HLen(key string) (int64, error)
- func HSet(key, field string, value any) error
- func HSetMap(key string, fields map[string]any) error
- func HSetMapExpire(key string, fields map[string]any, expireTime time.Duration) error
- func HVals(key string) ([]string, error)
- func Init(cfg *config.Redis)
- func LIndex(key string, index int64) (string, error)
- func LPop(key string) (string, error)
- func LPush(key string, values ...interface{}) error
- func LRange(key string, start, stop int64) ([]string, error)
- func Publish(channel, message string)
- func RPop(key string) (string, error)
- func RPush(key string, values ...interface{}) error
- func RemoveExpire(key string) error
- func Rename(oldKey, newKey string) (bool, error)
- func SAdd(key string, members ...interface{}) error
- func SIsMember(key string, member interface{}) (bool, error)
- func SMembers(key string) ([]string, error)
- func SRem(key string, members ...interface{}) error
- func Set(key string, value interface{}) error
- func SetExpire(key string, value interface{}, expireTime time.Duration) error
- func Subscribe(channel string, cb func(string)) *redis.PubSub
- func ZAdd(key string, members ...*redis.Z) error
- func ZRange(key string, start, stop int64) ([]string, error)
- func ZRank(key string, member string) (int64, error)
- func ZRem(key string, members ...interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
RDB *redis.Client
)
Functions ¶
func HSetMapExpire ¶
HSetMapExpire 设置map对象位hash表
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.