redis

package
v0.0.0-...-f13fc7a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHashKeys

func AddHashKeys(conn redis.Conn, expires bool, records [][]interface{}) error

func AddHashKeysAndSetExpireTime

func AddHashKeysAndSetExpireTime(conn redis.Conn, expireTime int64, records [][]interface{}) error

func AddSet

func AddSet(conn redis.Conn, key string, members []string) error

func AppendStringList

func AppendStringList(conn redis.Conn, key string, list []string) error

func BatchAddHashKeysAndSetExpireTime

func BatchAddHashKeysAndSetExpireTime(conn redis.Conn, expireTime int64, key string, fieldAndValue []interface{}) error

func Decr

func Decr(conn redis.Conn, key string) error

func Del

func Del(conn redis.Conn, keys []string) error

func DeleteHashKeyFields

func DeleteHashKeyFields(conn redis.Conn, args []interface{}) error

func DeleteKey

func DeleteKey(conn redis.Conn, key string) error

func Get

func Get(c redis.Conn, key string) ([]byte, error)

func GetByteByMember

func GetByteByMember(conn redis.Conn, key string, minScore int64) ([][]byte, error)

func GetByteByMemberRange

func GetByteByMemberRange(conn redis.Conn, key string, min, max int64) ([][]byte, error)

func GetHashIntValue

func GetHashIntValue(conn redis.Conn, key, field string) (bool, int, error)

func GetHashKey

func GetHashKey(conn redis.Conn, key string) ([]interface{}, error)

func GetHashKeys

func GetHashKeys(conn redis.Conn, key string) ([]interface{}, error)

func GetHashStringValue

func GetHashStringValue(conn redis.Conn, key, field string) (bool, string, error)

func GetInt

func GetInt(conn redis.Conn, key string) (int, error)

func GetRedisConn

func GetRedisConn() redis.Conn

func GetScoreByMember

func GetScoreByMember(conn redis.Conn, key string, member string) (int64, error)

func GetString

func GetString(conn redis.Conn, key string) (string, error)

func GetStringList

func GetStringList(conn redis.Conn, key string) ([]string, error)

func GetStringWithoutNil

func GetStringWithoutNil(conn redis.Conn, key string) (string, bool, error)

func InitRedis

func InitRedis() error

func KeyExists

func KeyExists(conn redis.Conn, key string) (bool, error)

func ListHashKey

func ListHashKey(conn redis.Conn, key string, fields []interface{}) ([]string, error)

func ListSetMembers

func ListSetMembers(conn redis.Conn, key string) ([]string, error)

func MGet

func MGet(c redis.Conn, keys []string) ([][]byte, error)

func MSet

func MSet(conn redis.Conn, keys, values []interface{}, expireTime int64) error

func MapScoreByMembersMinScore

func MapScoreByMembersMinScore(conn redis.Conn, key string, minScore int64) (map[string]int64, error)

func Publish

func Publish(conn redis.Conn, channel string, msg string)

func RemoveSetMembers

func RemoveSetMembers(conn redis.Conn, key string, members []string) error

func Set

func Set(conn redis.Conn, key string, value []byte, expireTime int64) error

func SetEx

func SetEx(conn redis.Conn, keys []string, vals [][]byte, expire int64) error

func SetInt

func SetInt(conn redis.Conn, key string, value int) error

func SetIntEx

func SetIntEx(conn redis.Conn, key string, value int, expireSeconds int) error

func SetNx

func SetNx(conn redis.Conn, key string, val string, expire int64) error

func SetString

func SetString(conn redis.Conn, key string, value string) error

func SetStringEx

func SetStringEx(conn redis.Conn, key string, value string, expireSeconds int) error

func SetStringList

func SetStringList(conn redis.Conn, key string, list []string) error

func TTL

func TTL(conn redis.Conn, key string) (int64, error)

func Zadd

func Zadd(conn redis.Conn, key string, member string, score int64) error

func ZaddAndSetExpireTime

func ZaddAndSetExpireTime(conn redis.Conn, key string, member string, score int64, expireTime int64) error

func Zincrby

func Zincrby(conn redis.Conn, key string, member string, score int64) error

func Zrem

func Zrem(conn redis.Conn, key string, member string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL