Documentation ¶
Index ¶
- func AddHashKeys(conn redis.Conn, expires bool, records [][]interface{}) error
- func AddHashKeysAndSetExpireTime(conn redis.Conn, expireTime int64, records [][]interface{}) error
- func AddSet(conn redis.Conn, key string, members []string) error
- func AppendStringList(conn redis.Conn, key string, list []string) error
- func BatchAddHashKeysAndSetExpireTime(conn redis.Conn, expireTime int64, key string, fieldAndValue []interface{}) error
- func Decr(conn redis.Conn, key string) error
- func Del(conn redis.Conn, keys []string) error
- func DeleteHashKeyFields(conn redis.Conn, args []interface{}) error
- func DeleteKey(conn redis.Conn, key string) error
- func Get(c redis.Conn, key string) ([]byte, error)
- func GetByteByMember(conn redis.Conn, key string, minScore int64) ([][]byte, error)
- func GetByteByMemberRange(conn redis.Conn, key string, min, max int64) ([][]byte, error)
- func GetHashIntValue(conn redis.Conn, key, field string) (bool, int, error)
- func GetHashKey(conn redis.Conn, key string) ([]interface{}, error)
- func GetHashKeys(conn redis.Conn, key string) ([]interface{}, error)
- func GetHashStringValue(conn redis.Conn, key, field string) (bool, string, error)
- func GetInt(conn redis.Conn, key string) (int, error)
- func GetRedisConn() redis.Conn
- func GetScoreByMember(conn redis.Conn, key string, member string) (int64, error)
- func GetString(conn redis.Conn, key string) (string, error)
- func GetStringList(conn redis.Conn, key string) ([]string, error)
- func GetStringWithoutNil(conn redis.Conn, key string) (string, bool, error)
- func InitRedis() error
- func KeyExists(conn redis.Conn, key string) (bool, error)
- func ListHashKey(conn redis.Conn, key string, fields []interface{}) ([]string, error)
- func ListSetMembers(conn redis.Conn, key string) ([]string, error)
- func MGet(c redis.Conn, keys []string) ([][]byte, error)
- func MSet(conn redis.Conn, keys, values []interface{}, expireTime int64) error
- func MapScoreByMembersMinScore(conn redis.Conn, key string, minScore int64) (map[string]int64, error)
- func Publish(conn redis.Conn, channel string, msg string)
- func RemoveSetMembers(conn redis.Conn, key string, members []string) error
- func Set(conn redis.Conn, key string, value []byte, expireTime int64) error
- func SetEx(conn redis.Conn, keys []string, vals [][]byte, expire int64) error
- func SetInt(conn redis.Conn, key string, value int) error
- func SetIntEx(conn redis.Conn, key string, value int, expireSeconds int) error
- func SetNx(conn redis.Conn, key string, val string, expire int64) error
- func SetString(conn redis.Conn, key string, value string) error
- func SetStringEx(conn redis.Conn, key string, value string, expireSeconds int) error
- func SetStringList(conn redis.Conn, key string, list []string) error
- func TTL(conn redis.Conn, key string) (int64, error)
- func Zadd(conn redis.Conn, key string, member string, score int64) error
- func ZaddAndSetExpireTime(conn redis.Conn, key string, member string, score int64, expireTime int64) error
- func Zincrby(conn redis.Conn, key string, member string, score int64) error
- func Zrem(conn redis.Conn, key string, member string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteHashKeyFields ¶
func GetByteByMember ¶
func GetByteByMemberRange ¶
func GetHashStringValue ¶
func GetRedisConn ¶
func GetScoreByMember ¶
func GetStringWithoutNil ¶
func ListHashKey ¶
func SetStringEx ¶
func ZaddAndSetExpireTime ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.