Documentation
¶
Index ¶
- Variables
- func DeleteKeys(keys ...string) error
- func ExistKeys(keys ...string) (bool, error)
- func ExistKeysRes(keys ...string) (int64, bool, error)
- func ExistSetMember(key string, member interface{}) (bool, error)
- func ExpireAtKey(key string, tm time.Time) error
- func ExpireKey(key string, expiration time.Duration) error
- func GetSets(key string) ([]string, error)
- func GetString(key string) (string, error)
- func LimitRate(key string, expTime time.Duration) bool
- func RemoveSetMembers(key string, members ...interface{}) error
- func SetKeyValue(key string, data interface{}, expTime time.Duration) error
- func SetSet(key string, members ...interface{}) error
- func SetSetExpire(key string, expiration time.Duration, members ...interface{}) error
- func Setup(host, password string) error
- func TtlKey(key string) (time.Duration, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var RedisClient *redis.Client
RedisClient 连接池
Functions ¶
func DeleteKeys ¶
func ExpireAtKey ¶
以 UNIX 时间戳(unix timestamp)格式设置 key 的过期时间。
func RemoveSetMembers ¶ added in v0.7.7
移除集合中的一个或多个成员元素,不存在的成员元素会被忽略。
func SetKeyValue ¶
设置给定 key 的值。如果 key 已经存储其他值, SET 就覆写旧值,且无视类型。
func SetSetExpire ¶
带有过期时间的 Set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.