Versions in this module Expand all Collapse all v1 v1.1.0 Feb 5, 2025 v1.0.0 Jan 22, 2025 Changes in this version + type Machine struct + Database string + Host string + Password string + Port string + Username string + type Redis struct + func New() *Redis + func (this *Redis) Append(key string, value string) int64 + func (this *Redis) BLPop(timeout time.Duration, keyList ...string) []string + func (this *Redis) BRPop(timeout time.Duration, keyList ...string) []string + func (this *Redis) BRPopLPush(r string, l string, timeout time.Duration) string + func (this *Redis) BgRewriteAOF() string + func (this *Redis) BgSave() string + func (this *Redis) BitCount(key string, bitCount *redis.BitCount) int64 + func (this *Redis) ClientGetName() string + func (this *Redis) ClientKill(ipPort string) string + func (this *Redis) ClientList() string + func (this *Redis) ConfigGet(label string) map[string]string + func (this *Redis) ConfigResetStat() string + func (this *Redis) ConfigRewrite() string + func (this *Redis) ConfigSet(label string, value string) string + func (this *Redis) Context(context context.Context) *Redis + func (this *Redis) DBSize() int64 + func (this *Redis) Decr(key string) int64 + func (this *Redis) DecrBy(key string, decrement int64) int64 + func (this *Redis) Del(keyList ...string) int64 + func (this *Redis) Do(parameter ...interface{}) *redis.Cmd + func (this *Redis) Dsn(dsn string) *Redis + func (this *Redis) Dump(key string) string + func (this *Redis) Echo(message interface{}) string + func (this *Redis) Eval(script string, keyList []string, parameterList ...interface{}) interface{} + func (this *Redis) EvalSha(sha1 string, keyList []string, parameterList ...interface{}) interface{} + func (this *Redis) Exists(key string) int64 + func (this *Redis) Expire(key string, expiration time.Duration) bool + func (this *Redis) ExpireAt(key string, t time.Time) bool + func (this *Redis) FlushAll() string + func (this *Redis) FlushDb() string + func (this *Redis) Get(key string) string + func (this *Redis) GetBit(key string, offset int64) int64 + func (this *Redis) GetRange(key string, start int64, end int64) string + func (this *Redis) GetSet(key string, value interface{}) string + func (this *Redis) HDel(key string, field string) int64 + func (this *Redis) HExists(key string, field string) bool + func (this *Redis) HGet(key string, field string) string + func (this *Redis) HGetAll(key string) map[string]string + func (this *Redis) HIncrBy(key string, field string, increment int64) int64 + func (this *Redis) HIncrByFloat(key string, field string, increment float64) float64 + func (this *Redis) HKeys(key string) []string + func (this *Redis) HLen(key string) int64 + func (this *Redis) HMGet(key string, field ...string) []string + func (this *Redis) HMSet(key string, parameter ...interface{}) bool + func (this *Redis) HScan(key string, cursor uint64, match string, count int64) ([]string, uint64) + func (this *Redis) HSet(key string, parameter ...interface{}) int64 + func (this *Redis) HSetNX(key string, field string, value interface{}) bool + func (this *Redis) HVals(key string) []string + func (this *Redis) Incr(key string) int64 + func (this *Redis) IncrBy(key string, value int64) int64 + func (this *Redis) IncrByFloat(key string, value float64) float64 + func (this *Redis) Info() string + func (this *Redis) Keys(pattern string) []string + func (this *Redis) LIndex(key string, index int64) string + func (this *Redis) LLen(key string) int64 + func (this *Redis) LPop(key string) string + func (this *Redis) LPush(key string, valueList ...interface{}) int64 + func (this *Redis) LPushX(key string, valueList ...interface{}) int64 + func (this *Redis) LRange(key string, start int64, stop int64) []string + func (this *Redis) LRem(key string, count int64, value interface{}) int64 + func (this *Redis) LSet(key string, index int64, value interface{}) string + func (this *Redis) LTrim(key string, start int64, stop int64) string + func (this *Redis) LastSave() int64 + func (this *Redis) MGet(keyList ...string) []string + func (this *Redis) MSet(parameterList ...interface{}) string + func (this *Redis) MSetNx(parameterList ...interface{}) bool + func (this *Redis) Machine(machine *Machine) *Redis + func (this *Redis) MachineMaster(machineMaster *Machine) *Redis + func (this *Redis) MachineSlaver(machineSlaver *Machine) *Redis + func (this *Redis) Master(master bool) *Redis + func (this *Redis) Migrate(host string, port string, key string, database int, timeout time.Duration) string + func (this *Redis) Move(key string, database int) bool + func (this *Redis) PExpire(key string, expiration time.Duration) bool + func (this *Redis) PExpireAt(key string, t time.Time) bool + func (this *Redis) PTtl(key string) time.Duration + func (this *Redis) Persist(key string) bool + func (this *Redis) Ping() string + func (this *Redis) RPop(key string) string + func (this *Redis) RPopLPush(r string, l string) string + func (this *Redis) RPush(key string, valueList ...interface{}) int64 + func (this *Redis) RPushX(key string, valueList ...interface{}) int64 + func (this *Redis) RandomKey() string + func (this *Redis) Rename(old string, new string) string + func (this *Redis) RenameNx(old string, new string) bool + func (this *Redis) Restore(key string, ttl time.Duration, value string) string + func (this *Redis) RestoreReplace(key string, ttl time.Duration, value string) string + func (this *Redis) SAdd(key string, valueList ...interface{}) int64 + func (this *Redis) SCard(key string) int64 + func (this *Redis) SDiff(keyList ...string) []string + func (this *Redis) SDiffStore(store string, keyList ...string) int64 + func (this *Redis) SInter(keyList ...string) []string + func (this *Redis) SInterStore(store string, keyList ...string) int64 + func (this *Redis) SIsMember(key string, value interface{}) bool + func (this *Redis) SMembers(key string) []string + func (this *Redis) SMove(old string, new string, member interface{}) bool + func (this *Redis) SPop(key string) string + func (this *Redis) SRandMember(key string) string + func (this *Redis) SRem(key string, memberList ...interface{}) int64 + func (this *Redis) SScan(key string, cursor uint64, match string, count int64) ([]string, uint64) + func (this *Redis) SUnion(keyList ...string) []string + func (this *Redis) SUnionStore(store string, keyList ...string) int64 + func (this *Redis) Save() string + func (this *Redis) Scan(cursor uint64, match string, count int64) ([]string, uint64) + func (this *Redis) ScriptExists(sha1List ...string) []bool + func (this *Redis) ScriptFlush() string + func (this *Redis) ScriptKill() string + func (this *Redis) ScriptLoad(script string) string + func (this *Redis) Set(key string, value interface{}, expiration time.Duration) string + func (this *Redis) SetBit(key string, offset int64, value int) int64 + func (this *Redis) SetEx(key string, seconds int64, value interface{}, expiration time.Duration) string + func (this *Redis) SetNx(key string, value interface{}, expiration time.Duration) bool + func (this *Redis) SetRange(key string, offset int64, value string) int64 + func (this *Redis) SlowLogGet(num int64) []redis.SlowLog + func (this *Redis) StrLen(key string) int64 + func (this *Redis) Ttl(key string) time.Duration + func (this *Redis) Type(key string) string + func (this *Redis) Unlink(keyList ...string) int64 + func (this *Redis) ZAdd(key string, valueList ...interface{}) int64 + func (this *Redis) ZCard(key string) int64 + func (this *Redis) ZCount(key string, min string, max string) int64 + func (this *Redis) ZIncrBy(key string, increment float64, member string) float64 + func (this *Redis) ZRange(key string, start int64, stop int64) []string + func (this *Redis) ZRangeByScore(key string, opt *redis.ZRangeBy) []string + func (this *Redis) ZRank(key string, member string) int64 + func (this *Redis) ZRem(key string, memberList ...interface{}) int64 + func (this *Redis) ZRemRangeByRank(key string, start int64, stop int64) int64 + func (this *Redis) ZRemRangeByScore(key string, min string, max string) int64 + func (this *Redis) ZRevRange(key string, start int64, stop int64) []string + func (this *Redis) ZRevRangeByScore(key string, opt *redis.ZRangeBy) []string + func (this *Redis) ZRevRank(key string, member string) int64 + func (this *Redis) ZScan(key string, cursor uint64, match string, count int64) ([]string, uint64) + func (this *Redis) ZScore(key string, member string) float64