Documentation ¶
Index ¶
- Constants
- Variables
- func BytesToString(b []byte) string
- func GetAddr(addr string) string
- func ReplaceSpaces(s string) string
- func Scan(dst interface{}, keys []string, vals []interface{}) error
- func StringToBytes(s string) []byte
- func ToFloat(val interface{}) float64
- func ToInteger(val interface{}) int
- func ToLower(s string) string
- func ToString(val interface{}) string
- func ToStringSlice(val interface{}) []string
- type AggregateCmd
- func (cmd *AggregateCmd) Err() error
- func (cmd *AggregateCmd) RawResult() (any, error)
- func (cmd *AggregateCmd) RawVal() any
- func (cmd *AggregateCmd) Result() (T, error)
- func (cmd *AggregateCmd) SetErr(err error)
- func (cmd *AggregateCmd) SetRawVal(rawVal any)
- func (cmd *AggregateCmd) SetVal(val T)
- func (cmd *AggregateCmd) Val() T
- type AggregateRow
- type Aggregator
- type BFInfo
- type BFInfoCmd
- func (cmd *BFInfoCmd) Err() error
- func (cmd *BFInfoCmd) RawResult() (any, error)
- func (cmd *BFInfoCmd) RawVal() any
- func (cmd *BFInfoCmd) Result() (T, error)
- func (cmd *BFInfoCmd) SetErr(err error)
- func (cmd *BFInfoCmd) SetRawVal(rawVal any)
- func (cmd *BFInfoCmd) SetVal(val T)
- func (cmd *BFInfoCmd) Val() T
- type BFInsertOptions
- type BFReserveOptions
- type BitCount
- type BitField
- type BitFieldArg
- type BoolCmd
- type BoolSliceCmd
- func (cmd *BoolSliceCmd) Err() error
- func (cmd *BoolSliceCmd) RawResult() (any, error)
- func (cmd *BoolSliceCmd) RawVal() any
- func (cmd *BoolSliceCmd) Result() (T, error)
- func (cmd *BoolSliceCmd) SetErr(err error)
- func (cmd *BoolSliceCmd) SetRawVal(rawVal any)
- func (cmd *BoolSliceCmd) SetVal(val T)
- func (cmd *BoolSliceCmd) Val() T
- type CFInfo
- type CFInfoCmd
- func (cmd *CFInfoCmd) Err() error
- func (cmd *CFInfoCmd) RawResult() (any, error)
- func (cmd *CFInfoCmd) RawVal() any
- func (cmd *CFInfoCmd) Result() (T, error)
- func (cmd *CFInfoCmd) SetErr(err error)
- func (cmd *CFInfoCmd) SetRawVal(rawVal any)
- func (cmd *CFInfoCmd) SetVal(val T)
- func (cmd *CFInfoCmd) Val() T
- type CFInsertOptions
- type CFReserveOptions
- type CMSInfo
- type CMSInfoCmd
- func (cmd *CMSInfoCmd) Err() error
- func (cmd *CMSInfoCmd) RawResult() (any, error)
- func (cmd *CMSInfoCmd) RawVal() any
- func (cmd *CMSInfoCmd) Result() (T, error)
- func (cmd *CMSInfoCmd) SetErr(err error)
- func (cmd *CMSInfoCmd) SetRawVal(rawVal any)
- func (cmd *CMSInfoCmd) SetVal(val T)
- func (cmd *CMSInfoCmd) Val() T
- type CacheCompat
- func (c CacheCompat) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c CacheCompat) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c CacheCompat) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c CacheCompat) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c CacheCompat) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c CacheCompat) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c CacheCompat) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c CacheCompat) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c CacheCompat) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c CacheCompat) BitFieldRO(ctx context.Context, key string, args ...any) *IntSliceCmd
- func (c CacheCompat) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c CacheCompat) BitPosSpan(ctx context.Context, key string, bit, start, end int64, span string) *IntCmd
- func (c *CacheCompat) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c *CacheCompat) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *CacheCompat) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c *CacheCompat) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c *CacheCompat) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c CacheCompat) EvalRO(ctx context.Context, script string, keys []string, args ...any) *Cmd
- func (c CacheCompat) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...any) *Cmd
- func (c CacheCompat) FCallRO(ctx context.Context, function string, keys []string, args ...any) *Cmd
- func (c CacheCompat) GeoDist(ctx context.Context, key, member1, member2, unit string) *FloatCmd
- func (c CacheCompat) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c CacheCompat) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c CacheCompat) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmd
- func (c CacheCompat) GeoRadiusByMember(ctx context.Context, key, member string, query GeoRadiusQuery) *GeoLocationCmd
- func (c CacheCompat) GeoSearch(ctx context.Context, key string, q GeoSearchQuery) *StringSliceCmd
- func (c CacheCompat) Get(ctx context.Context, key string) *StringCmd
- func (c CacheCompat) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c CacheCompat) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c CacheCompat) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c CacheCompat) HGet(ctx context.Context, key, field string) *StringCmd
- func (c CacheCompat) HGetAll(ctx context.Context, key string) *StringStringMapCmd
- func (c CacheCompat) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c CacheCompat) HLen(ctx context.Context, key string) *IntCmd
- func (c CacheCompat) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c CacheCompat) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c *CacheCompat) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c *CacheCompat) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c *CacheCompat) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c *CacheCompat) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c *CacheCompat) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c *CacheCompat) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *CacheCompat) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *CacheCompat) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c CacheCompat) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c CacheCompat) LLen(ctx context.Context, key string) *IntCmd
- func (c CacheCompat) LPos(ctx context.Context, key string, element string, a LPosArgs) *IntCmd
- func (c CacheCompat) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c CacheCompat) PTTL(ctx context.Context, key string) *DurationCmd
- func (c CacheCompat) SCard(ctx context.Context, key string) *IntCmd
- func (c CacheCompat) SIsMember(ctx context.Context, key string, member any) *BoolCmd
- func (c CacheCompat) SMIsMember(ctx context.Context, key string, members ...any) *BoolSliceCmd
- func (c CacheCompat) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c CacheCompat) SortRO(ctx context.Context, key string, sort Sort) *StringSliceCmd
- func (c CacheCompat) StrLen(ctx context.Context, key string) *IntCmd
- func (c CacheCompat) TTL(ctx context.Context, key string) *DurationCmd
- func (c *CacheCompat) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c *CacheCompat) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c *CacheCompat) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c CacheCompat) Type(ctx context.Context, key string) *StatusCmd
- func (c CacheCompat) ZCard(ctx context.Context, key string) *IntCmd
- func (c CacheCompat) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c CacheCompat) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c CacheCompat) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c CacheCompat) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c CacheCompat) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c CacheCompat) ZRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c CacheCompat) ZRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c CacheCompat) ZRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd
- func (c CacheCompat) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c CacheCompat) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c CacheCompat) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c CacheCompat) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c CacheCompat) ZRevRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c CacheCompat) ZRevRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c CacheCompat) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd
- func (c CacheCompat) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c CacheCompat) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c CacheCompat) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c CacheCompat) ZScore(ctx context.Context, key, member string) *FloatCmd
- type ChannelOption
- type ClientFlags
- type ClientInfo
- type ClientInfoCmd
- func (cmd *ClientInfoCmd) Err() error
- func (cmd *ClientInfoCmd) RawResult() (any, error)
- func (cmd *ClientInfoCmd) RawVal() any
- func (cmd *ClientInfoCmd) Result() (*ClientInfo, error)
- func (cmd *ClientInfoCmd) SetErr(err error)
- func (cmd *ClientInfoCmd) SetRawVal(rawVal any)
- func (cmd *ClientInfoCmd) SetVal(val *ClientInfo)
- func (cmd *ClientInfoCmd) Val() *ClientInfo
- type ClusterNode
- type ClusterShard
- type ClusterShardsCmd
- func (cmd *ClusterShardsCmd) Err() error
- func (cmd *ClusterShardsCmd) RawResult() (any, error)
- func (cmd *ClusterShardsCmd) RawVal() any
- func (cmd *ClusterShardsCmd) Result() (T, error)
- func (cmd *ClusterShardsCmd) SetErr(err error)
- func (cmd *ClusterShardsCmd) SetRawVal(rawVal any)
- func (cmd *ClusterShardsCmd) SetVal(val T)
- func (cmd *ClusterShardsCmd) Val() T
- type ClusterSlot
- type ClusterSlotsCmd
- func (cmd *ClusterSlotsCmd) Err() error
- func (cmd *ClusterSlotsCmd) RawResult() (any, error)
- func (cmd *ClusterSlotsCmd) RawVal() any
- func (cmd *ClusterSlotsCmd) Result() (T, error)
- func (cmd *ClusterSlotsCmd) SetErr(err error)
- func (cmd *ClusterSlotsCmd) SetRawVal(rawVal any)
- func (cmd *ClusterSlotsCmd) SetVal(val T)
- func (cmd *ClusterSlotsCmd) Val() T
- type Cmd
- func (cmd *Cmd) Bool() (bool, error)
- func (cmd *Cmd) BoolSlice() ([]bool, error)
- func (cmd *Cmd) Err() error
- func (cmd *Cmd) Float32() (float32, error)
- func (cmd *Cmd) Float32Slice() ([]float32, error)
- func (cmd *Cmd) Float64() (float64, error)
- func (cmd *Cmd) Float64Slice() ([]float64, error)
- func (cmd *Cmd) Int() (int, error)
- func (cmd *Cmd) Int64() (int64, error)
- func (cmd *Cmd) Int64Slice() ([]int64, error)
- func (cmd *Cmd) RawResult() (any, error)
- func (cmd *Cmd) RawVal() any
- func (cmd *Cmd) Result() (T, error)
- func (cmd *Cmd) SetErr(err error)
- func (cmd *Cmd) SetRawVal(rawVal any)
- func (cmd *Cmd) SetVal(val T)
- func (cmd *Cmd) Slice() ([]any, error)
- func (cmd *Cmd) StringSlice() ([]string, error)
- func (cmd *Cmd) Text() (string, error)
- func (cmd *Cmd) Uint64() (uint64, error)
- func (cmd *Cmd) Uint64Slice() ([]uint64, error)
- func (cmd *Cmd) Val() T
- type Cmdable
- type Cmder
- type CommandInfo
- type CommandsInfoCmd
- func (cmd *CommandsInfoCmd) Err() error
- func (cmd *CommandsInfoCmd) RawResult() (any, error)
- func (cmd *CommandsInfoCmd) RawVal() any
- func (cmd *CommandsInfoCmd) Result() (T, error)
- func (cmd *CommandsInfoCmd) SetErr(err error)
- func (cmd *CommandsInfoCmd) SetRawVal(rawVal any)
- func (cmd *CommandsInfoCmd) SetVal(val T)
- func (cmd *CommandsInfoCmd) Val() T
- type Compat
- func (c *Compat) ACLDryRun(ctx context.Context, username string, command ...any) *StringCmd
- func (c *Compat) Append(ctx context.Context, key, value string) *IntCmd
- func (c *Compat) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Compat) BFCard(ctx context.Context, key string) *IntCmd
- func (c *Compat) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Compat) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c *Compat) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c *Compat) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c *Compat) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c *Compat) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c *Compat) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c *Compat) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c *Compat) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c *Compat) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c *Compat) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Compat) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Compat) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c *Compat) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c *Compat) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c *Compat) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c *Compat) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c *Compat) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c *Compat) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c *Compat) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c *Compat) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c *Compat) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmd
- func (c *Compat) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c *Compat) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c *Compat) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c *Compat) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c *Compat) BgSave(ctx context.Context) *StatusCmd
- func (c *Compat) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c *Compat) BitField(ctx context.Context, key string, args ...any) *IntSliceCmd
- func (c *Compat) BitFieldRO(ctx context.Context, key string, args ...any) *IntSliceCmd
- func (c *Compat) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c *Compat) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c *Compat) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c *Compat) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c *Compat) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c *Compat) BitPosSpan(ctx context.Context, key string, bit, start, end int64, span string) *IntCmd
- func (c *Compat) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Compat) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Compat) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c *Compat) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Compat) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Compat) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c *Compat) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c *Compat) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c *Compat) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c *Compat) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Compat) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c *Compat) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c *Compat) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c *Compat) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c *Compat) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c *Compat) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c *Compat) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c *Compat) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c *Compat) CMSInitByDim(ctx context.Context, key string, width, height int64) *StatusCmd
- func (c *Compat) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c *Compat) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c *Compat) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c *Compat) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c *Compat) Cache(ttl time.Duration) CacheCompat
- func (c *Compat) ClientGetName(ctx context.Context) *StringCmd
- func (c *Compat) ClientID(ctx context.Context) *IntCmd
- func (c *Compat) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c *Compat) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c *Compat) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c *Compat) ClientList(ctx context.Context) *StringCmd
- func (c *Compat) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c *Compat) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c *Compat) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c *Compat) ClientUnpause(ctx context.Context) *BoolCmd
- func (c *Compat) ClusterAddSlots(ctx context.Context, slots ...int64) *StatusCmd
- func (c *Compat) ClusterAddSlotsRange(ctx context.Context, min, max int64) *StatusCmd
- func (c *Compat) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c *Compat) ClusterCountKeysInSlot(ctx context.Context, slot int64) *IntCmd
- func (c *Compat) ClusterDelSlots(ctx context.Context, slots ...int64) *StatusCmd
- func (c *Compat) ClusterDelSlotsRange(ctx context.Context, min, max int64) *StatusCmd
- func (c *Compat) ClusterFailover(ctx context.Context) *StatusCmd
- func (c *Compat) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c *Compat) ClusterGetKeysInSlot(ctx context.Context, slot int64, count int64) *StringSliceCmd
- func (c *Compat) ClusterInfo(ctx context.Context) *StringCmd
- func (c *Compat) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c *Compat) ClusterMeet(ctx context.Context, host string, port int64) *StatusCmd
- func (c *Compat) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c *Compat) ClusterNodes(ctx context.Context) *StringCmd
- func (c *Compat) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c *Compat) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c *Compat) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c *Compat) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c *Compat) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c *Compat) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
- func (c *Compat) ClusterSlots(ctx context.Context) *ClusterSlotsCmd
- func (c *Compat) Command(ctx context.Context) *CommandsInfoCmd
- func (c *Compat) CommandGetKeys(ctx context.Context, commands ...any) *StringSliceCmd
- func (c *Compat) CommandGetKeysAndFlags(ctx context.Context, commands ...any) *KeyFlagsCmd
- func (c *Compat) CommandList(ctx context.Context, filter FilterBy) *StringSliceCmd
- func (c *Compat) ConfigGet(ctx context.Context, parameter string) *StringStringMapCmd
- func (c *Compat) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c *Compat) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c *Compat) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c *Compat) Copy(ctx context.Context, source string, destination string, db int64, replace bool) *IntCmd
- func (c *Compat) DBSize(ctx context.Context) *IntCmd
- func (c *Compat) DebugObject(ctx context.Context, key string) *StringCmd
- func (c *Compat) Decr(ctx context.Context, key string) *IntCmd
- func (c *Compat) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c *Compat) Del(ctx context.Context, keys ...string) *IntCmd
- func (c *Compat) Dump(ctx context.Context, key string) *StringCmd
- func (c *Compat) Echo(ctx context.Context, message any) *StringCmd
- func (c *Compat) Eval(ctx context.Context, script string, keys []string, args ...any) *Cmd
- func (c *Compat) EvalRO(ctx context.Context, script string, keys []string, args ...any) *Cmd
- func (c *Compat) EvalSha(ctx context.Context, sha1 string, keys []string, args ...any) *Cmd
- func (c *Compat) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...any) *Cmd
- func (c *Compat) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c *Compat) Expire(ctx context.Context, key string, seconds time.Duration) *BoolCmd
- func (c *Compat) ExpireAt(ctx context.Context, key string, timestamp time.Time) *BoolCmd
- func (c *Compat) ExpireGT(ctx context.Context, key string, seconds time.Duration) *BoolCmd
- func (c *Compat) ExpireLT(ctx context.Context, key string, seconds time.Duration) *BoolCmd
- func (c *Compat) ExpireNX(ctx context.Context, key string, seconds time.Duration) *BoolCmd
- func (c *Compat) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c *Compat) ExpireXX(ctx context.Context, key string, seconds time.Duration) *BoolCmd
- func (c *Compat) FCall(ctx context.Context, function string, keys []string, args ...any) *Cmd
- func (c *Compat) FCallRO(ctx context.Context, function string, keys []string, args ...any) *Cmd
- func (c *Compat) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c *Compat) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c *Compat) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c *Compat) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c *Compat) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c *Compat) FTAlter(ctx context.Context, index string, skipInitalScan bool, ...) *StatusCmd
- func (c *Compat) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
- func (c *Compat) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmd
- func (c *Compat) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c *Compat) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c *Compat) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c *Compat) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c *Compat) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c *Compat) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c *Compat) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c *Compat) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c *Compat) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c *Compat) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c *Compat) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c *Compat) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c *Compat) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c *Compat) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c *Compat) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c *Compat) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c *Compat) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c *Compat) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c *Compat) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c *Compat) FT_List(ctx context.Context) *StringSliceCmd
- func (c *Compat) FlushAll(ctx context.Context) *StatusCmd
- func (c *Compat) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c *Compat) FlushDB(ctx context.Context) *StatusCmd
- func (c *Compat) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c *Compat) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c *Compat) FunctionDump(ctx context.Context) *StringCmd
- func (c *Compat) FunctionFlush(ctx context.Context) *StringCmd
- func (c *Compat) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c *Compat) FunctionKill(ctx context.Context) *StringCmd
- func (c *Compat) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c *Compat) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c *Compat) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c *Compat) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c *Compat) GeoAdd(ctx context.Context, key string, geoLocation ...GeoLocation) *IntCmd
- func (c *Compat) GeoDist(ctx context.Context, key, member1, member2, unit string) *FloatCmd
- func (c *Compat) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c *Compat) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c *Compat) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmd
- func (c *Compat) GeoRadiusByMember(ctx context.Context, key, member string, query GeoRadiusQuery) *GeoLocationCmd
- func (c *Compat) GeoRadiusByMemberStore(ctx context.Context, key, member string, query GeoRadiusQuery) *IntCmd
- func (c *Compat) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c *Compat) GeoSearch(ctx context.Context, key string, q GeoSearchQuery) *StringSliceCmd
- func (c *Compat) GeoSearchLocation(ctx context.Context, key string, q GeoSearchLocationQuery) *GeoLocationCmd
- func (c *Compat) GeoSearchStore(ctx context.Context, src, dest string, q GeoSearchStoreQuery) *IntCmd
- func (c *Compat) Get(ctx context.Context, key string) *StringCmd
- func (c *Compat) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c *Compat) GetDel(ctx context.Context, key string) *StringCmd
- func (c *Compat) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c *Compat) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c *Compat) GetSet(ctx context.Context, key string, value any) *StringCmd
- func (c *Compat) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c *Compat) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c *Compat) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c *Compat) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c *Compat) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c *Compat) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Compat) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c *Compat) HGet(ctx context.Context, key, field string) *StringCmd
- func (c *Compat) HGetAll(ctx context.Context, key string) *StringStringMapCmd
- func (c *Compat) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c *Compat) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c *Compat) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c *Compat) HLen(ctx context.Context, key string) *IntCmd
- func (c *Compat) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c *Compat) HMSet(ctx context.Context, key string, values ...any) *BoolCmd
- func (c *Compat) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c *Compat) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c *Compat) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c *Compat) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Compat) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c *Compat) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Compat) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Compat) HRandField(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Compat) HRandFieldWithValues(ctx context.Context, key string, count int64) *KeyValueSliceCmd
- func (c *Compat) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Compat) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Compat) HSet(ctx context.Context, key string, values ...any) *IntCmd
- func (c *Compat) HSetNX(ctx context.Context, key, field string, value any) *BoolCmd
- func (c *Compat) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Compat) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c *Compat) Incr(ctx context.Context, key string) *IntCmd
- func (c *Compat) IncrBy(ctx context.Context, key string, increment int64) *IntCmd
- func (c *Compat) IncrByFloat(ctx context.Context, key string, increment float64) *FloatCmd
- func (c *Compat) Info(ctx context.Context, section ...string) *StringCmd
- func (c *Compat) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c *Compat) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c *Compat) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c *Compat) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c *Compat) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c *Compat) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c *Compat) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c *Compat) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c *Compat) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c *Compat) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c *Compat) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c *Compat) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c *Compat) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c *Compat) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c *Compat) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c *Compat) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c *Compat) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c *Compat) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c *Compat) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c *Compat) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c *Compat) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *Compat) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c *Compat) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c *Compat) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c *Compat) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *Compat) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *Compat) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c *Compat) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c *Compat) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c *Compat) LInsert(ctx context.Context, key, op string, pivot, element any) *IntCmd
- func (c *Compat) LInsertAfter(ctx context.Context, key string, pivot, element any) *IntCmd
- func (c *Compat) LInsertBefore(ctx context.Context, key string, pivot, element any) *IntCmd
- func (c *Compat) LLen(ctx context.Context, key string) *IntCmd
- func (c *Compat) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c *Compat) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c *Compat) LPop(ctx context.Context, key string) *StringCmd
- func (c *Compat) LPopCount(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Compat) LPos(ctx context.Context, key string, element string, a LPosArgs) *IntCmd
- func (c *Compat) LPosCount(ctx context.Context, key string, element string, count int64, a LPosArgs) *IntSliceCmd
- func (c *Compat) LPush(ctx context.Context, key string, elements ...any) *IntCmd
- func (c *Compat) LPushX(ctx context.Context, key string, elements ...any) *IntCmd
- func (c *Compat) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c *Compat) LRem(ctx context.Context, key string, count int64, element any) *IntCmd
- func (c *Compat) LSet(ctx context.Context, key string, index int64, element any) *StatusCmd
- func (c *Compat) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c *Compat) LastSave(ctx context.Context) *IntCmd
- func (c *Compat) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c *Compat) MSet(ctx context.Context, values ...any) *StatusCmd
- func (c *Compat) MSetNX(ctx context.Context, values ...any) *BoolCmd
- func (c *Compat) MemoryUsage(ctx context.Context, key string, samples ...int64) *IntCmd
- func (c *Compat) Migrate(ctx context.Context, host string, port int64, key string, db int64, ...) *StatusCmd
- func (c *Compat) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c *Compat) Move(ctx context.Context, key string, db int64) *BoolCmd
- func (c *Compat) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c *Compat) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c *Compat) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c *Compat) PExpire(ctx context.Context, key string, milliseconds time.Duration) *BoolCmd
- func (c *Compat) PExpireAt(ctx context.Context, key string, millisecondsTimestamp time.Time) *BoolCmd
- func (c *Compat) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c *Compat) PFAdd(ctx context.Context, key string, els ...any) *IntCmd
- func (c *Compat) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c *Compat) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (c *Compat) PSubscribe(ctx context.Context, patterns ...string) PubSub
- func (c *Compat) PTTL(ctx context.Context, key string) *DurationCmd
- func (c *Compat) Persist(ctx context.Context, key string) *BoolCmd
- func (c *Compat) Ping(ctx context.Context) *StatusCmd
- func (c *Compat) Pipeline() Pipeliner
- func (c *Compat) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Compat) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c *Compat) PubSubNumPat(ctx context.Context) *IntCmd
- func (c *Compat) PubSubNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
- func (c *Compat) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c *Compat) PubSubShardNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
- func (c *Compat) Publish(ctx context.Context, channel string, message any) *IntCmd
- func (c *Compat) Quit(ctx context.Context) *StatusCmd
- func (c *Compat) RPop(ctx context.Context, key string) *StringCmd
- func (c *Compat) RPopCount(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Compat) RPopLPush(ctx context.Context, source, destination string) *StringCmd
- func (c *Compat) RPush(ctx context.Context, key string, elements ...any) *IntCmd
- func (c *Compat) RPushX(ctx context.Context, key string, elements ...any) *IntCmd
- func (c *Compat) RandomKey(ctx context.Context) *StringCmd
- func (c *Compat) ReadOnly(ctx context.Context) *StatusCmd
- func (c *Compat) ReadWrite(ctx context.Context) *StatusCmd
- func (c *Compat) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c *Compat) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c *Compat) Restore(ctx context.Context, key string, ttl time.Duration, serializedValue string) *StatusCmd
- func (c *Compat) RestoreReplace(ctx context.Context, key string, ttl time.Duration, serializedValue string) *StatusCmd
- func (c *Compat) SAdd(ctx context.Context, key string, members ...any) *IntCmd
- func (c *Compat) SCard(ctx context.Context, key string) *IntCmd
- func (c *Compat) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Compat) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Compat) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Compat) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c *Compat) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Compat) SIsMember(ctx context.Context, key string, member any) *BoolCmd
- func (c *Compat) SMIsMember(ctx context.Context, key string, members ...any) *BoolSliceCmd
- func (c *Compat) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c *Compat) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c *Compat) SMove(ctx context.Context, source, destination string, member any) *BoolCmd
- func (c *Compat) SPop(ctx context.Context, key string) *StringCmd
- func (c *Compat) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Compat) SPublish(ctx context.Context, channel string, message any) *IntCmd
- func (c *Compat) SRandMember(ctx context.Context, key string) *StringCmd
- func (c *Compat) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Compat) SRem(ctx context.Context, key string, members ...any) *IntCmd
- func (c *Compat) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Compat) SSubscribe(ctx context.Context, channels ...string) PubSub
- func (c *Compat) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Compat) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Compat) Save(ctx context.Context) *StatusCmd
- func (c *Compat) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c *Compat) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (c *Compat) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (c *Compat) ScriptFlush(ctx context.Context) *StatusCmd
- func (c *Compat) ScriptKill(ctx context.Context) *StatusCmd
- func (c *Compat) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c *Compat) Set(ctx context.Context, key string, value any, expiration time.Duration) *StatusCmd
- func (c *Compat) SetArgs(ctx context.Context, key string, value any, a SetArgs) *StatusCmd
- func (c *Compat) SetBit(ctx context.Context, key string, offset int64, value int64) *IntCmd
- func (c *Compat) SetEX(ctx context.Context, key string, value any, expiration time.Duration) *StatusCmd
- func (c *Compat) SetNX(ctx context.Context, key string, value any, expiration time.Duration) *BoolCmd
- func (c *Compat) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c *Compat) SetXX(ctx context.Context, key string, value any, expiration time.Duration) *BoolCmd
- func (c *Compat) Shutdown(ctx context.Context) *StatusCmd
- func (c *Compat) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c *Compat) ShutdownSave(ctx context.Context) *StatusCmd
- func (c *Compat) SlaveOf(ctx context.Context, host, port string) *StatusCmd
- func (c *Compat) Sort(ctx context.Context, key string, sort Sort) *StringSliceCmd
- func (c *Compat) SortInterfaces(ctx context.Context, key string, sort Sort) *SliceCmd
- func (c *Compat) SortRO(ctx context.Context, key string, sort Sort) *StringSliceCmd
- func (c *Compat) SortStore(ctx context.Context, key, store string, sort Sort) *IntCmd
- func (c *Compat) StrLen(ctx context.Context, key string) *IntCmd
- func (c *Compat) Subscribe(ctx context.Context, channels ...string) PubSub
- func (c *Compat) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c *Compat) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c *Compat) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c *Compat) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c *Compat) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c *Compat) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c *Compat) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c *Compat) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c *Compat) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c *Compat) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c *Compat) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c *Compat) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c *Compat) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c *Compat) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c *Compat) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c *Compat) TFCall(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
- func (c *Compat) TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
- func (c *Compat) TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, ...) *Cmd
- func (c *Compat) TFCallArgs(ctx context.Context, libName string, funcName string, numKeys int, ...) *Cmd
- func (c *Compat) TFunctionDelete(ctx context.Context, libName string) *StatusCmd
- func (c *Compat) TFunctionList(ctx context.Context) *MapStringInterfaceSliceCmd
- func (c *Compat) TFunctionListArgs(ctx context.Context, options *TFunctionListOptions) *MapStringInterfaceSliceCmd
- func (c *Compat) TFunctionLoad(ctx context.Context, lib string) *StatusCmd
- func (c *Compat) TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd
- func (c *Compat) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c *Compat) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c *Compat) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c *Compat) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c *Compat) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c *Compat) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c *Compat) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c *Compat) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c *Compat) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c *Compat) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c *Compat) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c *Compat) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c *Compat) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c *Compat) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c *Compat) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c *Compat) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c *Compat) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c *Compat) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c *Compat) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c *Compat) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c *Compat) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c *Compat) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c *Compat) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c *Compat) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c *Compat) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c *Compat) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c *Compat) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c *Compat) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c *Compat) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c *Compat) TTL(ctx context.Context, key string) *DurationCmd
- func (c *Compat) Time(ctx context.Context) *TimeCmd
- func (c *Compat) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c *Compat) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c *Compat) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c *Compat) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c *Compat) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c *Compat) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c *Compat) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Compat) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c *Compat) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c *Compat) Touch(ctx context.Context, keys ...string) *IntCmd
- func (c *Compat) TxPipeline() Pipeliner
- func (c *Compat) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Compat) Type(ctx context.Context, key string) *StatusCmd
- func (c *Compat) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c *Compat) Watch(ctx context.Context, fn func(Tx) error, keys ...string) error
- func (c *Compat) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c *Compat) XAdd(ctx context.Context, a XAddArgs) *StringCmd
- func (c *Compat) XAutoClaim(ctx context.Context, a XAutoClaimArgs) *XAutoClaimCmd
- func (c *Compat) XAutoClaimJustID(ctx context.Context, a XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c *Compat) XClaim(ctx context.Context, a XClaimArgs) *XMessageSliceCmd
- func (c *Compat) XClaimJustID(ctx context.Context, a XClaimArgs) *StringSliceCmd
- func (c *Compat) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c *Compat) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c *Compat) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c *Compat) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c *Compat) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c *Compat) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c *Compat) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c *Compat) XInfoConsumers(ctx context.Context, key, group string) *XInfoConsumersCmd
- func (c *Compat) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c *Compat) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c *Compat) XInfoStreamFull(ctx context.Context, key string, count int64) *XInfoStreamFullCmd
- func (c *Compat) XLen(ctx context.Context, stream string) *IntCmd
- func (c *Compat) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c *Compat) XPendingExt(ctx context.Context, a XPendingExtArgs) *XPendingExtCmd
- func (c *Compat) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c *Compat) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c *Compat) XRead(ctx context.Context, a XReadArgs) *XStreamSliceCmd
- func (c *Compat) XReadGroup(ctx context.Context, a XReadGroupArgs) *XStreamSliceCmd
- func (c *Compat) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c *Compat) XRevRange(ctx context.Context, stream, stop, start string) *XMessageSliceCmd
- func (c *Compat) XRevRangeN(ctx context.Context, stream, stop, start string, count int64) *XMessageSliceCmd
- func (c *Compat) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c *Compat) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c *Compat) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c *Compat) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c *Compat) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Compat) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c *Compat) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c *Compat) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Compat) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Compat) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Compat) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Compat) ZCard(ctx context.Context, key string) *IntCmd
- func (c *Compat) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c *Compat) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Compat) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Compat) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c *Compat) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c *Compat) ZInter(ctx context.Context, store ZStore) *StringSliceCmd
- func (c *Compat) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c *Compat) ZInterStore(ctx context.Context, destination string, store ZStore) *IntCmd
- func (c *Compat) ZInterWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- func (c *Compat) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c *Compat) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c *Compat) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c *Compat) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c *Compat) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c *Compat) ZRandMember(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Compat) ZRandMemberWithScores(ctx context.Context, key string, count int64) *ZSliceCmd
- func (c *Compat) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c *Compat) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c *Compat) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c *Compat) ZRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Compat) ZRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Compat) ZRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd
- func (c *Compat) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c *Compat) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c *Compat) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c *Compat) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c *Compat) ZRem(ctx context.Context, key string, members ...any) *IntCmd
- func (c *Compat) ZRemRangeByLex(ctx context.Context, key string, min, max string) *IntCmd
- func (c *Compat) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c *Compat) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c *Compat) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c *Compat) ZRevRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Compat) ZRevRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Compat) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd
- func (c *Compat) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c *Compat) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c *Compat) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c *Compat) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Compat) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c *Compat) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c *Compat) ZUnionStore(ctx context.Context, dest string, store ZStore) *IntCmd
- func (c *Compat) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type CoreCmdable
- type CursorStats
- type Document
- type DurationCmd
- func (cmd *DurationCmd) Err() error
- func (cmd *DurationCmd) RawResult() (any, error)
- func (cmd *DurationCmd) RawVal() any
- func (cmd *DurationCmd) Result() (T, error)
- func (cmd *DurationCmd) SetErr(err error)
- func (cmd *DurationCmd) SetRawVal(rawVal any)
- func (cmd *DurationCmd) SetVal(val T)
- func (cmd *DurationCmd) Val() T
- type FTAggregateApply
- type FTAggregateGroupBy
- type FTAggregateLoad
- type FTAggregateOptions
- type FTAggregateReducer
- type FTAggregateResult
- type FTAggregateSortBy
- type FTAggregateWithCursor
- type FTAttribute
- type FTCreateOptions
- type FTDropIndexOptions
- type FTExplainOptions
- type FTFlatOptions
- type FTHNSWOptions
- type FTInfoCmd
- func (cmd *FTInfoCmd) Err() error
- func (cmd *FTInfoCmd) RawResult() (any, error)
- func (cmd *FTInfoCmd) RawVal() any
- func (cmd *FTInfoCmd) Result() (T, error)
- func (cmd *FTInfoCmd) SetErr(err error)
- func (cmd *FTInfoCmd) SetRawVal(rawVal any)
- func (cmd *FTInfoCmd) SetVal(val T)
- func (cmd *FTInfoCmd) Val() T
- type FTInfoResult
- type FTSearchCmd
- func (cmd *FTSearchCmd) Err() error
- func (cmd *FTSearchCmd) RawResult() (any, error)
- func (cmd *FTSearchCmd) RawVal() any
- func (cmd *FTSearchCmd) Result() (T, error)
- func (cmd *FTSearchCmd) SetErr(err error)
- func (cmd *FTSearchCmd) SetRawVal(rawVal any)
- func (cmd *FTSearchCmd) SetVal(val T)
- func (cmd *FTSearchCmd) Val() T
- type FTSearchFilter
- type FTSearchGeoFilter
- type FTSearchOptions
- type FTSearchResult
- type FTSearchReturn
- type FTSearchSortBy
- type FTSpellCheckCmd
- func (cmd *FTSpellCheckCmd) Err() error
- func (cmd *FTSpellCheckCmd) RawResult() (any, error)
- func (cmd *FTSpellCheckCmd) RawVal() any
- func (cmd *FTSpellCheckCmd) Result() ([]SpellCheckResult, error)
- func (cmd *FTSpellCheckCmd) SetErr(err error)
- func (cmd *FTSpellCheckCmd) SetRawVal(rawVal any)
- func (cmd *FTSpellCheckCmd) SetVal(val T)
- func (cmd *FTSpellCheckCmd) Val() []SpellCheckResult
- type FTSpellCheckOptions
- type FTSpellCheckTerms
- type FTSynDumpCmd
- func (cmd *FTSynDumpCmd) Err() error
- func (cmd *FTSynDumpCmd) RawResult() (any, error)
- func (cmd *FTSynDumpCmd) RawVal() any
- func (cmd *FTSynDumpCmd) Result() (T, error)
- func (cmd *FTSynDumpCmd) SetErr(err error)
- func (cmd *FTSynDumpCmd) SetRawVal(rawVal any)
- func (cmd *FTSynDumpCmd) SetVal(val T)
- func (cmd *FTSynDumpCmd) Val() T
- type FTSynDumpResult
- type FTSynUpdateOptions
- type FTVectorArgs
- type FieldSchema
- type FieldStatistic
- type FilterBy
- type FloatCmd
- type FloatSliceCmd
- func (cmd *FloatSliceCmd) Err() error
- func (cmd *FloatSliceCmd) RawResult() (any, error)
- func (cmd *FloatSliceCmd) RawVal() any
- func (cmd *FloatSliceCmd) Result() (T, error)
- func (cmd *FloatSliceCmd) SetErr(err error)
- func (cmd *FloatSliceCmd) SetRawVal(rawVal any)
- func (cmd *FloatSliceCmd) SetVal(val T)
- func (cmd *FloatSliceCmd) Val() T
- type Function
- type FunctionListCmd
- func (cmd *FunctionListCmd) Err() error
- func (cmd *FunctionListCmd) First() (*Library, error)
- func (cmd *FunctionListCmd) RawResult() (any, error)
- func (cmd *FunctionListCmd) RawVal() any
- func (cmd *FunctionListCmd) Result() (T, error)
- func (cmd *FunctionListCmd) SetErr(err error)
- func (cmd *FunctionListCmd) SetRawVal(rawVal any)
- func (cmd *FunctionListCmd) SetVal(val T)
- func (cmd *FunctionListCmd) Val() T
- type FunctionListQuery
- type GCStats
- type GearsCmdable
- type GeoLocation
- type GeoLocationCmd
- func (cmd *GeoLocationCmd) Err() error
- func (cmd *GeoLocationCmd) RawResult() (any, error)
- func (cmd *GeoLocationCmd) RawVal() any
- func (cmd *GeoLocationCmd) Result() (T, error)
- func (cmd *GeoLocationCmd) SetErr(err error)
- func (cmd *GeoLocationCmd) SetRawVal(rawVal any)
- func (cmd *GeoLocationCmd) SetVal(val T)
- func (cmd *GeoLocationCmd) Val() T
- type GeoPos
- type GeoPosCmd
- func (cmd *GeoPosCmd) Err() error
- func (cmd *GeoPosCmd) RawResult() (any, error)
- func (cmd *GeoPosCmd) RawVal() any
- func (cmd *GeoPosCmd) Result() (T, error)
- func (cmd *GeoPosCmd) SetErr(err error)
- func (cmd *GeoPosCmd) SetRawVal(rawVal any)
- func (cmd *GeoPosCmd) SetVal(val T)
- func (cmd *GeoPosCmd) Val() T
- type GeoRadiusQuery
- type GeoSearchLocationQuery
- type GeoSearchQuery
- type GeoSearchStoreQuery
- type HExpireArgs
- type IndexDefinition
- type IndexErrors
- type IntCmd
- func (cmd *IntCmd) Err() error
- func (cmd *IntCmd) RawResult() (any, error)
- func (cmd *IntCmd) RawVal() any
- func (cmd *IntCmd) Result() (T, error)
- func (cmd *IntCmd) SetErr(err error)
- func (cmd *IntCmd) SetRawVal(rawVal any)
- func (cmd *IntCmd) SetVal(val T)
- func (cmd *IntCmd) Uint64() (uint64, error)
- func (cmd *IntCmd) Val() T
- type IntPointerSliceCmd
- func (cmd *IntPointerSliceCmd) Err() error
- func (cmd *IntPointerSliceCmd) RawResult() (any, error)
- func (cmd *IntPointerSliceCmd) RawVal() any
- func (cmd *IntPointerSliceCmd) Result() (T, error)
- func (cmd *IntPointerSliceCmd) SetErr(err error)
- func (cmd *IntPointerSliceCmd) SetRawVal(rawVal any)
- func (cmd *IntPointerSliceCmd) SetVal(val T)
- func (cmd *IntPointerSliceCmd) Val() T
- type IntSliceCmd
- type JSONArrIndexArgs
- type JSONArrTrimArgs
- type JSONCmd
- func (cmd *JSONCmd) Err() error
- func (cmd *JSONCmd) Expanded() (any, error)
- func (cmd *JSONCmd) RawResult() (any, error)
- func (cmd *JSONCmd) RawVal() any
- func (cmd *JSONCmd) Result() (string, error)
- func (cmd *JSONCmd) SetErr(err error)
- func (cmd *JSONCmd) SetRawVal(rawVal any)
- func (cmd *JSONCmd) SetVal(val T)
- func (cmd *JSONCmd) Val() string
- type JSONCmdable
- type JSONGetArgs
- type JSONSetArgs
- type JSONSliceCmd
- func (cmd *JSONSliceCmd) Err() error
- func (cmd *JSONSliceCmd) RawResult() (any, error)
- func (cmd *JSONSliceCmd) RawVal() any
- func (cmd *JSONSliceCmd) Result() (T, error)
- func (cmd *JSONSliceCmd) SetErr(err error)
- func (cmd *JSONSliceCmd) SetRawVal(rawVal any)
- func (cmd *JSONSliceCmd) SetVal(val T)
- func (cmd *JSONSliceCmd) Val() T
- type KeyFlags
- type KeyFlagsCmd
- func (cmd *KeyFlagsCmd) Err() error
- func (cmd *KeyFlagsCmd) RawResult() (any, error)
- func (cmd *KeyFlagsCmd) RawVal() any
- func (cmd *KeyFlagsCmd) Result() (T, error)
- func (cmd *KeyFlagsCmd) SetErr(err error)
- func (cmd *KeyFlagsCmd) SetRawVal(rawVal any)
- func (cmd *KeyFlagsCmd) SetVal(val T)
- func (cmd *KeyFlagsCmd) Val() T
- type KeyValue
- type KeyValueSliceCmd
- func (cmd *KeyValueSliceCmd) Err() error
- func (cmd *KeyValueSliceCmd) RawResult() (any, error)
- func (cmd *KeyValueSliceCmd) RawVal() any
- func (cmd *KeyValueSliceCmd) Result() (T, error)
- func (cmd *KeyValueSliceCmd) SetErr(err error)
- func (cmd *KeyValueSliceCmd) SetRawVal(rawVal any)
- func (cmd *KeyValueSliceCmd) SetVal(val T)
- func (cmd *KeyValueSliceCmd) Val() T
- type KeyValuesCmd
- type LPosArgs
- type Library
- type MapMapStringInterfaceCmd
- func (cmd *MapMapStringInterfaceCmd) Err() error
- func (cmd *MapMapStringInterfaceCmd) RawResult() (any, error)
- func (cmd *MapMapStringInterfaceCmd) RawVal() any
- func (cmd *MapMapStringInterfaceCmd) Result() (T, error)
- func (cmd *MapMapStringInterfaceCmd) SetErr(err error)
- func (cmd *MapMapStringInterfaceCmd) SetRawVal(rawVal any)
- func (cmd *MapMapStringInterfaceCmd) SetVal(val T)
- func (cmd *MapMapStringInterfaceCmd) Val() T
- type MapStringIntCmd
- func (cmd *MapStringIntCmd) Err() error
- func (cmd *MapStringIntCmd) RawResult() (any, error)
- func (cmd *MapStringIntCmd) RawVal() any
- func (cmd *MapStringIntCmd) Result() (T, error)
- func (cmd *MapStringIntCmd) SetErr(err error)
- func (cmd *MapStringIntCmd) SetRawVal(rawVal any)
- func (cmd *MapStringIntCmd) SetVal(val T)
- func (cmd *MapStringIntCmd) Val() T
- type MapStringInterfaceCmd
- func (cmd *MapStringInterfaceCmd) Err() error
- func (cmd *MapStringInterfaceCmd) RawResult() (any, error)
- func (cmd *MapStringInterfaceCmd) RawVal() any
- func (cmd *MapStringInterfaceCmd) Result() (T, error)
- func (cmd *MapStringInterfaceCmd) SetErr(err error)
- func (cmd *MapStringInterfaceCmd) SetRawVal(rawVal any)
- func (cmd *MapStringInterfaceCmd) SetVal(val T)
- func (cmd *MapStringInterfaceCmd) Val() T
- type MapStringInterfaceSliceCmd
- func (cmd *MapStringInterfaceSliceCmd) Err() error
- func (cmd *MapStringInterfaceSliceCmd) RawResult() (any, error)
- func (cmd *MapStringInterfaceSliceCmd) RawVal() any
- func (cmd *MapStringInterfaceSliceCmd) Result() (T, error)
- func (cmd *MapStringInterfaceSliceCmd) SetErr(err error)
- func (cmd *MapStringInterfaceSliceCmd) SetRawVal(rawVal any)
- func (cmd *MapStringInterfaceSliceCmd) SetVal(val T)
- func (cmd *MapStringInterfaceSliceCmd) Val() T
- type MapStringSliceInterfaceCmd
- func (cmd *MapStringSliceInterfaceCmd) Err() error
- func (cmd *MapStringSliceInterfaceCmd) RawResult() (any, error)
- func (cmd *MapStringSliceInterfaceCmd) RawVal() any
- func (cmd *MapStringSliceInterfaceCmd) Result() (T, error)
- func (cmd *MapStringSliceInterfaceCmd) SetErr(err error)
- func (cmd *MapStringSliceInterfaceCmd) SetRawVal(rawVal any)
- func (cmd *MapStringSliceInterfaceCmd) SetVal(val T)
- func (cmd *MapStringSliceInterfaceCmd) Val() T
- type Message
- type ModuleLoadexConfig
- type Node
- type Pipeline
- func (c *Pipeline) ACLDryRun(ctx context.Context, username string, command ...any) *StringCmd
- func (c *Pipeline) Append(ctx context.Context, key, value string) *IntCmd
- func (c *Pipeline) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Pipeline) BFCard(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Pipeline) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c *Pipeline) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c *Pipeline) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c *Pipeline) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c *Pipeline) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c *Pipeline) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c *Pipeline) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c *Pipeline) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c *Pipeline) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c *Pipeline) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Pipeline) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Pipeline) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c *Pipeline) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c *Pipeline) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c *Pipeline) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c *Pipeline) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c *Pipeline) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c *Pipeline) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c *Pipeline) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c *Pipeline) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c *Pipeline) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmd
- func (c *Pipeline) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c *Pipeline) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c *Pipeline) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c *Pipeline) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c *Pipeline) BgSave(ctx context.Context) *StatusCmd
- func (c *Pipeline) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c *Pipeline) BitField(ctx context.Context, key string, args ...any) *IntSliceCmd
- func (c *Pipeline) BitFieldRO(ctx context.Context, key string, args ...any) *IntSliceCmd
- func (c *Pipeline) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c *Pipeline) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c *Pipeline) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c *Pipeline) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c *Pipeline) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c *Pipeline) BitPosSpan(ctx context.Context, key string, bit int64, start, end int64, span string) *IntCmd
- func (c *Pipeline) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Pipeline) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Pipeline) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c *Pipeline) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Pipeline) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c *Pipeline) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c *Pipeline) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c *Pipeline) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c *Pipeline) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c *Pipeline) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Pipeline) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c *Pipeline) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c *Pipeline) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c *Pipeline) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c *Pipeline) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c *Pipeline) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c *Pipeline) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c *Pipeline) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c *Pipeline) CMSInitByDim(ctx context.Context, key string, width, height int64) *StatusCmd
- func (c *Pipeline) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c *Pipeline) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c *Pipeline) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c *Pipeline) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c *Pipeline) ClientGetName(ctx context.Context) *StringCmd
- func (c *Pipeline) ClientID(ctx context.Context) *IntCmd
- func (c *Pipeline) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c *Pipeline) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c *Pipeline) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c *Pipeline) ClientList(ctx context.Context) *StringCmd
- func (c *Pipeline) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c *Pipeline) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c *Pipeline) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c *Pipeline) ClientUnpause(ctx context.Context) *BoolCmd
- func (c *Pipeline) ClusterAddSlots(ctx context.Context, slots ...int64) *StatusCmd
- func (c *Pipeline) ClusterAddSlotsRange(ctx context.Context, min, max int64) *StatusCmd
- func (c *Pipeline) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c *Pipeline) ClusterCountKeysInSlot(ctx context.Context, slot int64) *IntCmd
- func (c *Pipeline) ClusterDelSlots(ctx context.Context, slots ...int64) *StatusCmd
- func (c *Pipeline) ClusterDelSlotsRange(ctx context.Context, min, max int64) *StatusCmd
- func (c *Pipeline) ClusterFailover(ctx context.Context) *StatusCmd
- func (c *Pipeline) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c *Pipeline) ClusterGetKeysInSlot(ctx context.Context, slot int64, count int64) *StringSliceCmd
- func (c *Pipeline) ClusterInfo(ctx context.Context) *StringCmd
- func (c *Pipeline) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) ClusterMeet(ctx context.Context, host string, port int64) *StatusCmd
- func (c *Pipeline) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c *Pipeline) ClusterNodes(ctx context.Context) *StringCmd
- func (c *Pipeline) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c *Pipeline) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c *Pipeline) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c *Pipeline) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c *Pipeline) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c *Pipeline) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
- func (c *Pipeline) ClusterSlots(ctx context.Context) *ClusterSlotsCmd
- func (c *Pipeline) Command(ctx context.Context) *CommandsInfoCmd
- func (c *Pipeline) CommandGetKeys(ctx context.Context, commands ...any) *StringSliceCmd
- func (c *Pipeline) CommandGetKeysAndFlags(ctx context.Context, commands ...any) *KeyFlagsCmd
- func (c *Pipeline) CommandList(ctx context.Context, filter FilterBy) *StringSliceCmd
- func (c *Pipeline) ConfigGet(ctx context.Context, parameter string) *StringStringMapCmd
- func (c *Pipeline) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c *Pipeline) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c *Pipeline) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c *Pipeline) Copy(ctx context.Context, sourceKey string, destKey string, db int64, replace bool) *IntCmd
- func (c *Pipeline) DBSize(ctx context.Context) *IntCmd
- func (c *Pipeline) DebugObject(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) Decr(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c *Pipeline) Del(ctx context.Context, keys ...string) *IntCmd
- func (c *Pipeline) Discard()
- func (c *Pipeline) Do(_ context.Context, args ...interface{}) *Cmd
- func (c *Pipeline) Dump(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) Echo(ctx context.Context, message any) *StringCmd
- func (c *Pipeline) Eval(ctx context.Context, script string, keys []string, args ...any) *Cmd
- func (c *Pipeline) EvalRO(ctx context.Context, script string, keys []string, args ...any) *Cmd
- func (c *Pipeline) EvalSha(ctx context.Context, sha1 string, keys []string, args ...any) *Cmd
- func (c *Pipeline) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...any) *Cmd
- func (c *Pipeline) Exec(ctx context.Context) ([]Cmder, error)
- func (c *Pipeline) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c *Pipeline) Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c *Pipeline) ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c *Pipeline) ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c *Pipeline) ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c *Pipeline) ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c *Pipeline) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c *Pipeline) ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c *Pipeline) FCall(ctx context.Context, function string, keys []string, args ...any) *Cmd
- func (c *Pipeline) FCallRO(ctx context.Context, function string, keys []string, args ...any) *Cmd
- func (c *Pipeline) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c *Pipeline) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c *Pipeline) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c *Pipeline) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c *Pipeline) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c *Pipeline) FTAlter(ctx context.Context, index string, skipInitalScan bool, ...) *StatusCmd
- func (c *Pipeline) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
- func (c *Pipeline) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmd
- func (c *Pipeline) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c *Pipeline) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c *Pipeline) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c *Pipeline) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c *Pipeline) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c *Pipeline) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c *Pipeline) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c *Pipeline) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c *Pipeline) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c *Pipeline) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c *Pipeline) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c *Pipeline) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c *Pipeline) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c *Pipeline) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c *Pipeline) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c *Pipeline) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c *Pipeline) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c *Pipeline) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c *Pipeline) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c *Pipeline) FT_List(ctx context.Context) *StringSliceCmd
- func (c *Pipeline) FlushAll(ctx context.Context) *StatusCmd
- func (c *Pipeline) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c *Pipeline) FlushDB(ctx context.Context) *StatusCmd
- func (c *Pipeline) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c *Pipeline) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c *Pipeline) FunctionDump(ctx context.Context) *StringCmd
- func (c *Pipeline) FunctionFlush(ctx context.Context) *StringCmd
- func (c *Pipeline) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c *Pipeline) FunctionKill(ctx context.Context) *StringCmd
- func (c *Pipeline) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c *Pipeline) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c *Pipeline) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c *Pipeline) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c *Pipeline) GeoAdd(ctx context.Context, key string, geoLocation ...GeoLocation) *IntCmd
- func (c *Pipeline) GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
- func (c *Pipeline) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c *Pipeline) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c *Pipeline) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmd
- func (c *Pipeline) GeoRadiusByMember(ctx context.Context, key, member string, query GeoRadiusQuery) *GeoLocationCmd
- func (c *Pipeline) GeoRadiusByMemberStore(ctx context.Context, key, member string, query GeoRadiusQuery) *IntCmd
- func (c *Pipeline) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c *Pipeline) GeoSearch(ctx context.Context, key string, q GeoSearchQuery) *StringSliceCmd
- func (c *Pipeline) GeoSearchLocation(ctx context.Context, key string, q GeoSearchLocationQuery) *GeoLocationCmd
- func (c *Pipeline) GeoSearchStore(ctx context.Context, key, store string, q GeoSearchStoreQuery) *IntCmd
- func (c *Pipeline) Get(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c *Pipeline) GetDel(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c *Pipeline) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c *Pipeline) GetSet(ctx context.Context, key string, value any) *StringCmd
- func (c *Pipeline) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c *Pipeline) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c *Pipeline) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c *Pipeline) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c *Pipeline) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c *Pipeline) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Pipeline) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c *Pipeline) HGet(ctx context.Context, key, field string) *StringCmd
- func (c *Pipeline) HGetAll(ctx context.Context, key string) *StringStringMapCmd
- func (c *Pipeline) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c *Pipeline) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c *Pipeline) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c *Pipeline) HLen(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c *Pipeline) HMSet(ctx context.Context, key string, values ...any) *BoolCmd
- func (c *Pipeline) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c *Pipeline) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c *Pipeline) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c *Pipeline) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Pipeline) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c *Pipeline) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Pipeline) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Pipeline) HRandField(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Pipeline) HRandFieldWithValues(ctx context.Context, key string, count int64) *KeyValueSliceCmd
- func (c *Pipeline) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Pipeline) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Pipeline) HSet(ctx context.Context, key string, values ...any) *IntCmd
- func (c *Pipeline) HSetNX(ctx context.Context, key, field string, value any) *BoolCmd
- func (c *Pipeline) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c *Pipeline) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c *Pipeline) Incr(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) IncrBy(ctx context.Context, key string, value int64) *IntCmd
- func (c *Pipeline) IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd
- func (c *Pipeline) Info(ctx context.Context, section ...string) *StringCmd
- func (c *Pipeline) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c *Pipeline) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c *Pipeline) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c *Pipeline) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c *Pipeline) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c *Pipeline) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c *Pipeline) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c *Pipeline) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c *Pipeline) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c *Pipeline) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c *Pipeline) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c *Pipeline) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c *Pipeline) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c *Pipeline) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c *Pipeline) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c *Pipeline) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c *Pipeline) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c *Pipeline) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c *Pipeline) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c *Pipeline) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c *Pipeline) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *Pipeline) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c *Pipeline) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c *Pipeline) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c *Pipeline) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *Pipeline) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c *Pipeline) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c *Pipeline) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c *Pipeline) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c *Pipeline) LInsert(ctx context.Context, key, op string, pivot, value any) *IntCmd
- func (c *Pipeline) LInsertAfter(ctx context.Context, key string, pivot, value any) *IntCmd
- func (c *Pipeline) LInsertBefore(ctx context.Context, key string, pivot, value any) *IntCmd
- func (c *Pipeline) LLen(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c *Pipeline) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c *Pipeline) LPop(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) LPopCount(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Pipeline) LPos(ctx context.Context, key string, value string, args LPosArgs) *IntCmd
- func (c *Pipeline) LPosCount(ctx context.Context, key string, value string, count int64, args LPosArgs) *IntSliceCmd
- func (c *Pipeline) LPush(ctx context.Context, key string, values ...any) *IntCmd
- func (c *Pipeline) LPushX(ctx context.Context, key string, values ...any) *IntCmd
- func (c *Pipeline) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c *Pipeline) LRem(ctx context.Context, key string, count int64, value any) *IntCmd
- func (c *Pipeline) LSet(ctx context.Context, key string, index int64, value any) *StatusCmd
- func (c *Pipeline) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c *Pipeline) LastSave(ctx context.Context) *IntCmd
- func (c *Pipeline) Len() int
- func (c *Pipeline) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c *Pipeline) MSet(ctx context.Context, values ...any) *StatusCmd
- func (c *Pipeline) MSetNX(ctx context.Context, values ...any) *BoolCmd
- func (c *Pipeline) MemoryUsage(ctx context.Context, key string, samples ...int64) *IntCmd
- func (c *Pipeline) Migrate(ctx context.Context, host string, port int64, key string, db int64, ...) *StatusCmd
- func (c *Pipeline) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c *Pipeline) Move(ctx context.Context, key string, db int64) *BoolCmd
- func (c *Pipeline) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c *Pipeline) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c *Pipeline) PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c *Pipeline) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c *Pipeline) PFAdd(ctx context.Context, key string, els ...any) *IntCmd
- func (c *Pipeline) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c *Pipeline) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (c *Pipeline) PTTL(ctx context.Context, key string) *DurationCmd
- func (c *Pipeline) Persist(ctx context.Context, key string) *BoolCmd
- func (c *Pipeline) Ping(ctx context.Context) *StatusCmd
- func (c *Pipeline) Pipeline() Pipeliner
- func (c *Pipeline) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Pipeline) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c *Pipeline) PubSubNumPat(ctx context.Context) *IntCmd
- func (c *Pipeline) PubSubNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
- func (c *Pipeline) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c *Pipeline) PubSubShardNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
- func (c *Pipeline) Publish(ctx context.Context, channel string, message any) *IntCmd
- func (c *Pipeline) Quit(ctx context.Context) *StatusCmd
- func (c *Pipeline) RPop(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) RPopCount(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Pipeline) RPopLPush(ctx context.Context, source, destination string) *StringCmd
- func (c *Pipeline) RPush(ctx context.Context, key string, values ...any) *IntCmd
- func (c *Pipeline) RPushX(ctx context.Context, key string, values ...any) *IntCmd
- func (c *Pipeline) RandomKey(ctx context.Context) *StringCmd
- func (c *Pipeline) ReadOnly(ctx context.Context) *StatusCmd
- func (c *Pipeline) ReadWrite(ctx context.Context) *StatusCmd
- func (c *Pipeline) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c *Pipeline) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c *Pipeline) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c *Pipeline) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c *Pipeline) SAdd(ctx context.Context, key string, members ...any) *IntCmd
- func (c *Pipeline) SCard(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Pipeline) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Pipeline) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Pipeline) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c *Pipeline) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Pipeline) SIsMember(ctx context.Context, key string, member any) *BoolCmd
- func (c *Pipeline) SMIsMember(ctx context.Context, key string, members ...any) *BoolSliceCmd
- func (c *Pipeline) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c *Pipeline) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c *Pipeline) SMove(ctx context.Context, source, destination string, member any) *BoolCmd
- func (c *Pipeline) SPop(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Pipeline) SPublish(ctx context.Context, channel string, message any) *IntCmd
- func (c *Pipeline) SRandMember(ctx context.Context, key string) *StringCmd
- func (c *Pipeline) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Pipeline) SRem(ctx context.Context, key string, members ...any) *IntCmd
- func (c *Pipeline) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Pipeline) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Pipeline) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Pipeline) Save(ctx context.Context) *StatusCmd
- func (c *Pipeline) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c *Pipeline) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (c *Pipeline) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (c *Pipeline) ScriptFlush(ctx context.Context) *StatusCmd
- func (c *Pipeline) ScriptKill(ctx context.Context) *StatusCmd
- func (c *Pipeline) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c *Pipeline) Set(ctx context.Context, key string, value any, expiration time.Duration) *StatusCmd
- func (c *Pipeline) SetArgs(ctx context.Context, key string, value any, a SetArgs) *StatusCmd
- func (c *Pipeline) SetBit(ctx context.Context, key string, offset int64, value int64) *IntCmd
- func (c *Pipeline) SetEX(ctx context.Context, key string, value any, expiration time.Duration) *StatusCmd
- func (c *Pipeline) SetNX(ctx context.Context, key string, value any, expiration time.Duration) *BoolCmd
- func (c *Pipeline) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c *Pipeline) SetXX(ctx context.Context, key string, value any, expiration time.Duration) *BoolCmd
- func (c *Pipeline) Shutdown(ctx context.Context) *StatusCmd
- func (c *Pipeline) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c *Pipeline) ShutdownSave(ctx context.Context) *StatusCmd
- func (c *Pipeline) SlaveOf(ctx context.Context, host, port string) *StatusCmd
- func (c *Pipeline) Sort(ctx context.Context, key string, sort Sort) *StringSliceCmd
- func (c *Pipeline) SortInterfaces(ctx context.Context, key string, sort Sort) *SliceCmd
- func (c *Pipeline) SortRO(ctx context.Context, key string, sort Sort) *StringSliceCmd
- func (c *Pipeline) SortStore(ctx context.Context, key, store string, sort Sort) *IntCmd
- func (c *Pipeline) StrLen(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c *Pipeline) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c *Pipeline) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c *Pipeline) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c *Pipeline) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c *Pipeline) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c *Pipeline) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c *Pipeline) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c *Pipeline) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c *Pipeline) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c *Pipeline) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c *Pipeline) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c *Pipeline) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c *Pipeline) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c *Pipeline) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c *Pipeline) TFCall(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
- func (c *Pipeline) TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
- func (c *Pipeline) TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, ...) *Cmd
- func (c *Pipeline) TFCallArgs(ctx context.Context, libName string, funcName string, numKeys int, ...) *Cmd
- func (c *Pipeline) TFunctionDelete(ctx context.Context, libName string) *StatusCmd
- func (c *Pipeline) TFunctionList(ctx context.Context) *MapStringInterfaceSliceCmd
- func (c *Pipeline) TFunctionListArgs(ctx context.Context, options *TFunctionListOptions) *MapStringInterfaceSliceCmd
- func (c *Pipeline) TFunctionLoad(ctx context.Context, lib string) *StatusCmd
- func (c *Pipeline) TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd
- func (c *Pipeline) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c *Pipeline) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c *Pipeline) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c *Pipeline) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c *Pipeline) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c *Pipeline) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c *Pipeline) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c *Pipeline) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c *Pipeline) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c *Pipeline) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c *Pipeline) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c *Pipeline) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c *Pipeline) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c *Pipeline) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c *Pipeline) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c *Pipeline) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c *Pipeline) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c *Pipeline) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c *Pipeline) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c *Pipeline) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c *Pipeline) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c *Pipeline) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c *Pipeline) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c *Pipeline) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c *Pipeline) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c *Pipeline) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c *Pipeline) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c *Pipeline) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c *Pipeline) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c *Pipeline) TTL(ctx context.Context, key string) *DurationCmd
- func (c *Pipeline) Time(ctx context.Context) *TimeCmd
- func (c *Pipeline) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c *Pipeline) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c *Pipeline) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c *Pipeline) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c *Pipeline) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c *Pipeline) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c *Pipeline) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c *Pipeline) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c *Pipeline) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c *Pipeline) Touch(ctx context.Context, keys ...string) *IntCmd
- func (c *Pipeline) TxPipeline() Pipeliner
- func (c *Pipeline) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Pipeline) Type(ctx context.Context, key string) *StatusCmd
- func (c *Pipeline) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c *Pipeline) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c *Pipeline) XAdd(ctx context.Context, a XAddArgs) *StringCmd
- func (c *Pipeline) XAutoClaim(ctx context.Context, a XAutoClaimArgs) *XAutoClaimCmd
- func (c *Pipeline) XAutoClaimJustID(ctx context.Context, a XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c *Pipeline) XClaim(ctx context.Context, a XClaimArgs) *XMessageSliceCmd
- func (c *Pipeline) XClaimJustID(ctx context.Context, a XClaimArgs) *StringSliceCmd
- func (c *Pipeline) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c *Pipeline) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c *Pipeline) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c *Pipeline) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c *Pipeline) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c *Pipeline) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c *Pipeline) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c *Pipeline) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
- func (c *Pipeline) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c *Pipeline) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c *Pipeline) XInfoStreamFull(ctx context.Context, key string, count int64) *XInfoStreamFullCmd
- func (c *Pipeline) XLen(ctx context.Context, stream string) *IntCmd
- func (c *Pipeline) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c *Pipeline) XPendingExt(ctx context.Context, a XPendingExtArgs) *XPendingExtCmd
- func (c *Pipeline) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c *Pipeline) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c *Pipeline) XRead(ctx context.Context, a XReadArgs) *XStreamSliceCmd
- func (c *Pipeline) XReadGroup(ctx context.Context, a XReadGroupArgs) *XStreamSliceCmd
- func (c *Pipeline) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c *Pipeline) XRevRange(ctx context.Context, stream string, start, stop string) *XMessageSliceCmd
- func (c *Pipeline) XRevRangeN(ctx context.Context, stream string, start, stop string, count int64) *XMessageSliceCmd
- func (c *Pipeline) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c *Pipeline) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c *Pipeline) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c *Pipeline) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c *Pipeline) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Pipeline) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c *Pipeline) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c *Pipeline) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Pipeline) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Pipeline) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Pipeline) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c *Pipeline) ZCard(ctx context.Context, key string) *IntCmd
- func (c *Pipeline) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c *Pipeline) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c *Pipeline) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c *Pipeline) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c *Pipeline) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c *Pipeline) ZInter(ctx context.Context, store ZStore) *StringSliceCmd
- func (c *Pipeline) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c *Pipeline) ZInterStore(ctx context.Context, destination string, store ZStore) *IntCmd
- func (c *Pipeline) ZInterWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- func (c *Pipeline) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c *Pipeline) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c *Pipeline) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c *Pipeline) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c *Pipeline) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c *Pipeline) ZRandMember(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c *Pipeline) ZRandMemberWithScores(ctx context.Context, key string, count int64) *ZSliceCmd
- func (c *Pipeline) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c *Pipeline) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c *Pipeline) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c *Pipeline) ZRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Pipeline) ZRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Pipeline) ZRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd
- func (c *Pipeline) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c *Pipeline) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c *Pipeline) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c *Pipeline) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c *Pipeline) ZRem(ctx context.Context, key string, members ...any) *IntCmd
- func (c *Pipeline) ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd
- func (c *Pipeline) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c *Pipeline) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c *Pipeline) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c *Pipeline) ZRevRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Pipeline) ZRevRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
- func (c *Pipeline) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd
- func (c *Pipeline) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c *Pipeline) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c *Pipeline) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c *Pipeline) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Pipeline) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c *Pipeline) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c *Pipeline) ZUnionStore(ctx context.Context, dest string, store ZStore) *IntCmd
- func (c *Pipeline) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type Pipeliner
- type ProbabilisticCmdable
- type PubSub
- type RankScore
- type RankWithScoreCmd
- func (cmd *RankWithScoreCmd) Err() error
- func (cmd *RankWithScoreCmd) RawResult() (any, error)
- func (cmd *RankWithScoreCmd) RawVal() any
- func (cmd *RankWithScoreCmd) Result() (T, error)
- func (cmd *RankWithScoreCmd) SetErr(err error)
- func (cmd *RankWithScoreCmd) SetRawVal(rawVal any)
- func (cmd *RankWithScoreCmd) SetVal(val T)
- func (cmd *RankWithScoreCmd) Val() T
- type ScanCmd
- type ScanDump
- type ScanDumpCmd
- func (cmd *ScanDumpCmd) Err() error
- func (cmd *ScanDumpCmd) RawResult() (any, error)
- func (cmd *ScanDumpCmd) RawVal() any
- func (cmd *ScanDumpCmd) Result() (T, error)
- func (cmd *ScanDumpCmd) SetErr(err error)
- func (cmd *ScanDumpCmd) SetRawVal(rawVal any)
- func (cmd *ScanDumpCmd) SetVal(val T)
- func (cmd *ScanDumpCmd) Val() T
- type Scanner
- type Script
- func (s *Script) Eval(ctx context.Context, c Scripter, keys []string, args ...interface{}) *Cmd
- func (s *Script) EvalRO(ctx context.Context, c Scripter, keys []string, args ...interface{}) *Cmd
- func (s *Script) EvalSha(ctx context.Context, c Scripter, keys []string, args ...interface{}) *Cmd
- func (s *Script) EvalShaRO(ctx context.Context, c Scripter, keys []string, args ...interface{}) *Cmd
- func (s *Script) Exists(ctx context.Context, c Scripter) *BoolSliceCmd
- func (s *Script) Hash() string
- func (s *Script) Load(ctx context.Context, c Scripter) *StringCmd
- func (s *Script) Run(ctx context.Context, c Scripter, keys []string, args ...interface{}) *Cmd
- func (s *Script) RunRO(ctx context.Context, c Scripter, keys []string, args ...interface{}) *Cmd
- type Scripter
- type SearchAggregator
- type SearchCmdable
- type SearchFieldType
- type SetArgs
- type SliceCmd
- func (cmd *SliceCmd) Err() error
- func (cmd *SliceCmd) RawResult() (any, error)
- func (cmd *SliceCmd) RawVal() any
- func (cmd *SliceCmd) Result() (T, error)
- func (cmd *SliceCmd) Scan(dst any) error
- func (cmd *SliceCmd) SetErr(err error)
- func (cmd *SliceCmd) SetRawVal(rawVal any)
- func (cmd *SliceCmd) SetVal(val T)
- func (cmd *SliceCmd) Val() T
- type SlotRange
- type Sort
- type SpellCheckResult
- type SpellCheckSuggestion
- type SpellCheckTerms
- type StatusCmd
- type StringCmd
- func (cmd *StringCmd) Bool() (bool, error)
- func (cmd *StringCmd) Bytes() ([]byte, error)
- func (cmd *StringCmd) Err() error
- func (cmd *StringCmd) Float32() (float32, error)
- func (cmd *StringCmd) Float64() (float64, error)
- func (cmd *StringCmd) Int() (int, error)
- func (cmd *StringCmd) Int64() (int64, error)
- func (cmd *StringCmd) RawResult() (any, error)
- func (cmd *StringCmd) RawVal() any
- func (cmd *StringCmd) Result() (T, error)
- func (cmd *StringCmd) SetErr(err error)
- func (cmd *StringCmd) SetRawVal(rawVal any)
- func (cmd *StringCmd) SetVal(val T)
- func (cmd *StringCmd) String() string
- func (cmd *StringCmd) Time() (time.Time, error)
- func (cmd *StringCmd) Uint64() (uint64, error)
- func (cmd *StringCmd) Val() T
- type StringIntMapCmd
- func (cmd *StringIntMapCmd) Err() error
- func (cmd *StringIntMapCmd) RawResult() (any, error)
- func (cmd *StringIntMapCmd) RawVal() any
- func (cmd *StringIntMapCmd) Result() (T, error)
- func (cmd *StringIntMapCmd) SetErr(err error)
- func (cmd *StringIntMapCmd) SetRawVal(rawVal any)
- func (cmd *StringIntMapCmd) SetVal(val T)
- func (cmd *StringIntMapCmd) Val() T
- type StringSliceCmd
- func (cmd *StringSliceCmd) Err() error
- func (cmd *StringSliceCmd) RawResult() (any, error)
- func (cmd *StringSliceCmd) RawVal() any
- func (cmd *StringSliceCmd) Result() (T, error)
- func (cmd *StringSliceCmd) SetErr(err error)
- func (cmd *StringSliceCmd) SetRawVal(rawVal any)
- func (cmd *StringSliceCmd) SetVal(val T)
- func (cmd *StringSliceCmd) Val() T
- type StringStringMapCmd
- func (cmd *StringStringMapCmd) Err() error
- func (cmd *StringStringMapCmd) RawResult() (any, error)
- func (cmd *StringStringMapCmd) RawVal() any
- func (cmd *StringStringMapCmd) Result() (T, error)
- func (cmd *StringStringMapCmd) Scan(dest interface{}) error
- func (cmd *StringStringMapCmd) SetErr(err error)
- func (cmd *StringStringMapCmd) SetRawVal(rawVal any)
- func (cmd *StringStringMapCmd) SetVal(val T)
- func (cmd *StringStringMapCmd) Val() T
- type StringStructMapCmd
- func (cmd *StringStructMapCmd) Err() error
- func (cmd *StringStructMapCmd) RawResult() (any, error)
- func (cmd *StringStructMapCmd) RawVal() any
- func (cmd *StringStructMapCmd) Result() (T, error)
- func (cmd *StringStructMapCmd) SetErr(err error)
- func (cmd *StringStructMapCmd) SetRawVal(rawVal any)
- func (cmd *StringStructMapCmd) SetVal(val T)
- func (cmd *StringStructMapCmd) Val() T
- type StructValue
- type Subscription
- type TDigestInfo
- type TDigestInfoCmd
- func (cmd *TDigestInfoCmd) Err() error
- func (cmd *TDigestInfoCmd) RawResult() (any, error)
- func (cmd *TDigestInfoCmd) RawVal() any
- func (cmd *TDigestInfoCmd) Result() (T, error)
- func (cmd *TDigestInfoCmd) SetErr(err error)
- func (cmd *TDigestInfoCmd) SetRawVal(rawVal any)
- func (cmd *TDigestInfoCmd) SetVal(val T)
- func (cmd *TDigestInfoCmd) Val() T
- type TDigestMergeOptions
- type TFCallOptions
- type TFunctionListOptions
- type TFunctionLoadOptions
- type TSAlterOptions
- type TSCreateRuleOptions
- type TSGetOptions
- type TSIncrDecrOptions
- type TSInfoOptions
- type TSMGetOptions
- type TSMRangeOptions
- type TSMRevRangeOptions
- type TSOptions
- type TSRangeOptions
- type TSRevRangeOptions
- type TSTimestampValue
- type TSTimestampValueCmd
- func (cmd *TSTimestampValueCmd) Err() error
- func (cmd *TSTimestampValueCmd) RawResult() (any, error)
- func (cmd *TSTimestampValueCmd) RawVal() any
- func (cmd *TSTimestampValueCmd) Result() (T, error)
- func (cmd *TSTimestampValueCmd) SetErr(err error)
- func (cmd *TSTimestampValueCmd) SetRawVal(rawVal any)
- func (cmd *TSTimestampValueCmd) SetVal(val T)
- func (cmd *TSTimestampValueCmd) Val() T
- type TSTimestampValueSliceCmd
- func (cmd *TSTimestampValueSliceCmd) Err() error
- func (cmd *TSTimestampValueSliceCmd) RawResult() (any, error)
- func (cmd *TSTimestampValueSliceCmd) RawVal() any
- func (cmd *TSTimestampValueSliceCmd) Result() (T, error)
- func (cmd *TSTimestampValueSliceCmd) SetErr(err error)
- func (cmd *TSTimestampValueSliceCmd) SetRawVal(rawVal any)
- func (cmd *TSTimestampValueSliceCmd) SetVal(val T)
- func (cmd *TSTimestampValueSliceCmd) Val() T
- type TimeCmd
- type TimeseriesCmdable
- type TopKInfo
- type TopKInfoCmd
- func (cmd *TopKInfoCmd) Err() error
- func (cmd *TopKInfoCmd) RawResult() (any, error)
- func (cmd *TopKInfoCmd) RawVal() any
- func (cmd *TopKInfoCmd) Result() (T, error)
- func (cmd *TopKInfoCmd) SetErr(err error)
- func (cmd *TopKInfoCmd) SetRawVal(rawVal any)
- func (cmd *TopKInfoCmd) SetVal(val T)
- func (cmd *TopKInfoCmd) Val() T
- type Tx
- type TxPipeline
- func (c *TxPipeline) Exec(ctx context.Context) ([]Cmder, error)
- func (c *TxPipeline) Pipeline() Pipeliner
- func (c *TxPipeline) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *TxPipeline) TxPipeline() Pipeliner
- func (c *TxPipeline) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- type XAddArgs
- type XAutoClaimArgs
- type XAutoClaimCmd
- type XAutoClaimJustIDCmd
- func (cmd *XAutoClaimJustIDCmd) Err() error
- func (cmd *XAutoClaimJustIDCmd) Result() (ids []string, start string, err error)
- func (cmd *XAutoClaimJustIDCmd) SetErr(err error)
- func (cmd *XAutoClaimJustIDCmd) SetVal(val []string, start string)
- func (cmd *XAutoClaimJustIDCmd) Val() (ids []string, start string)
- type XClaimArgs
- type XInfoConsumer
- type XInfoConsumersCmd
- func (cmd *XInfoConsumersCmd) Err() error
- func (cmd *XInfoConsumersCmd) RawResult() (any, error)
- func (cmd *XInfoConsumersCmd) RawVal() any
- func (cmd *XInfoConsumersCmd) Result() (T, error)
- func (cmd *XInfoConsumersCmd) SetErr(err error)
- func (cmd *XInfoConsumersCmd) SetRawVal(rawVal any)
- func (cmd *XInfoConsumersCmd) SetVal(val T)
- func (cmd *XInfoConsumersCmd) Val() T
- type XInfoGroup
- type XInfoGroupsCmd
- func (cmd *XInfoGroupsCmd) Err() error
- func (cmd *XInfoGroupsCmd) RawResult() (any, error)
- func (cmd *XInfoGroupsCmd) RawVal() any
- func (cmd *XInfoGroupsCmd) Result() (T, error)
- func (cmd *XInfoGroupsCmd) SetErr(err error)
- func (cmd *XInfoGroupsCmd) SetRawVal(rawVal any)
- func (cmd *XInfoGroupsCmd) SetVal(val T)
- func (cmd *XInfoGroupsCmd) Val() T
- type XInfoStream
- type XInfoStreamCmd
- func (cmd *XInfoStreamCmd) Err() error
- func (cmd *XInfoStreamCmd) RawResult() (any, error)
- func (cmd *XInfoStreamCmd) RawVal() any
- func (cmd *XInfoStreamCmd) Result() (T, error)
- func (cmd *XInfoStreamCmd) SetErr(err error)
- func (cmd *XInfoStreamCmd) SetRawVal(rawVal any)
- func (cmd *XInfoStreamCmd) SetVal(val T)
- func (cmd *XInfoStreamCmd) Val() T
- type XInfoStreamConsumer
- type XInfoStreamConsumerPending
- type XInfoStreamFull
- type XInfoStreamFullCmd
- func (cmd *XInfoStreamFullCmd) Err() error
- func (cmd *XInfoStreamFullCmd) RawResult() (any, error)
- func (cmd *XInfoStreamFullCmd) RawVal() any
- func (cmd *XInfoStreamFullCmd) Result() (T, error)
- func (cmd *XInfoStreamFullCmd) SetErr(err error)
- func (cmd *XInfoStreamFullCmd) SetRawVal(rawVal any)
- func (cmd *XInfoStreamFullCmd) SetVal(val T)
- func (cmd *XInfoStreamFullCmd) Val() T
- type XInfoStreamGroup
- type XInfoStreamGroupPending
- type XMessage
- type XMessageSliceCmd
- func (cmd *XMessageSliceCmd) Err() error
- func (cmd *XMessageSliceCmd) RawResult() (any, error)
- func (cmd *XMessageSliceCmd) RawVal() any
- func (cmd *XMessageSliceCmd) Result() (T, error)
- func (cmd *XMessageSliceCmd) SetErr(err error)
- func (cmd *XMessageSliceCmd) SetRawVal(rawVal any)
- func (cmd *XMessageSliceCmd) SetVal(val T)
- func (cmd *XMessageSliceCmd) Val() T
- type XPending
- type XPendingCmd
- func (cmd *XPendingCmd) Err() error
- func (cmd *XPendingCmd) RawResult() (any, error)
- func (cmd *XPendingCmd) RawVal() any
- func (cmd *XPendingCmd) Result() (T, error)
- func (cmd *XPendingCmd) SetErr(err error)
- func (cmd *XPendingCmd) SetRawVal(rawVal any)
- func (cmd *XPendingCmd) SetVal(val T)
- func (cmd *XPendingCmd) Val() T
- type XPendingExt
- type XPendingExtArgs
- type XPendingExtCmd
- func (cmd *XPendingExtCmd) Err() error
- func (cmd *XPendingExtCmd) RawResult() (any, error)
- func (cmd *XPendingExtCmd) RawVal() any
- func (cmd *XPendingExtCmd) Result() (T, error)
- func (cmd *XPendingExtCmd) SetErr(err error)
- func (cmd *XPendingExtCmd) SetRawVal(rawVal any)
- func (cmd *XPendingExtCmd) SetVal(val T)
- func (cmd *XPendingExtCmd) Val() T
- type XReadArgs
- type XReadGroupArgs
- type XStream
- type XStreamSliceCmd
- func (cmd *XStreamSliceCmd) Err() error
- func (cmd *XStreamSliceCmd) RawResult() (any, error)
- func (cmd *XStreamSliceCmd) RawVal() any
- func (cmd *XStreamSliceCmd) Result() (T, error)
- func (cmd *XStreamSliceCmd) SetErr(err error)
- func (cmd *XStreamSliceCmd) SetRawVal(rawVal any)
- func (cmd *XStreamSliceCmd) SetVal(val T)
- func (cmd *XStreamSliceCmd) Val() T
- type Z
- type ZAddArgs
- type ZRangeArgs
- type ZRangeBy
- type ZSliceCmd
- func (cmd *ZSliceCmd) Err() error
- func (cmd *ZSliceCmd) RawResult() (any, error)
- func (cmd *ZSliceCmd) RawVal() any
- func (cmd *ZSliceCmd) Result() (T, error)
- func (cmd *ZSliceCmd) SetErr(err error)
- func (cmd *ZSliceCmd) SetRawVal(rawVal any)
- func (cmd *ZSliceCmd) SetVal(val T)
- func (cmd *ZSliceCmd) Val() T
- type ZSliceWithKeyCmd
- type ZStore
- type ZWithKey
- type ZWithKeyCmd
- func (cmd *ZWithKeyCmd) Err() error
- func (cmd *ZWithKeyCmd) RawResult() (any, error)
- func (cmd *ZWithKeyCmd) RawVal() any
- func (cmd *ZWithKeyCmd) Result() (T, error)
- func (cmd *ZWithKeyCmd) SetErr(err error)
- func (cmd *ZWithKeyCmd) SetRawVal(rawVal any)
- func (cmd *ZWithKeyCmd) SetVal(val T)
- func (cmd *ZWithKeyCmd) Val() T
Examples ¶
Constants ¶
const ( KeepTTL = -1 BitCountIndexByte = "BYTE" BitCountIndexBit = "BIT" )
const ( Invalid = Aggregator(iota) Avg Sum Min Max Range Count First Last StdP StdS VarP VarS Twa )
const ( TYP_STRING jsonCmdTyp = iota TYP_ARRAY )
const ( SearchInvalid = SearchAggregator(iota) SearchAvg SearchSum SearchMin SearchMax SearchCount SearchCountDistinct SearchCountDistinctish SearchStdDev SearchQuantile SearchToList SearchFirstValue SearchRandomSample )
const ( SearchFieldTypeInvalid = SearchFieldType(iota) SearchFieldTypeNumeric SearchFieldTypeTag SearchFieldTypeText SearchFieldTypeGeo SearchFieldTypeVector SearchFieldTypeGeoShape )
Variables ¶
var Nil = rueidis.Nil
var TxFailedErr = errors.New("redis: transaction failed")
Functions ¶
func BytesToString ¶ added in v1.0.50
func ReplaceSpaces ¶ added in v1.0.50
func Scan ¶
Scan scans the results from a key-value Redis map result set to a destination struct. The Redis keys are matched to the struct's field with the `redis` tag. NOTE: vals' element's underlying type should be string
func StringToBytes ¶ added in v1.0.50
func ToStringSlice ¶ added in v1.0.50
func ToStringSlice(val interface{}) []string
Types ¶
type AggregateCmd ¶ added in v1.0.50
type AggregateCmd struct {
// contains filtered or unexported fields
}
type AggregateRow ¶ added in v1.0.50
type Aggregator ¶
type Aggregator int
func (Aggregator) String ¶
func (a Aggregator) String() string
type BFInsertOptions ¶
type BFReserveOptions ¶
type BitField ¶
type BitField struct { Get *BitFieldArg Set *BitFieldArg IncrBy *BitFieldArg Overflow string Increment int64 }
type BitFieldArg ¶
type BoolSliceCmd ¶
type BoolSliceCmd struct {
// contains filtered or unexported fields
}
type CFInfo ¶
type CFInfo struct { Size int64 `redis:"Size"` NumBuckets int64 `redis:"Number of buckets"` NumFilters int64 `redis:"Number of filters"` NumItemsInserted int64 `redis:"Number of items inserted"` NumItemsDeleted int64 `redis:"Number of items deleted"` BucketSize int64 `redis:"Bucket size"` ExpansionRate int64 `redis:"Expansion rate"` MaxIteration int64 `redis:"Max iterations"` }
type CFInsertOptions ¶
type CFReserveOptions ¶
type CMSInfoCmd ¶
type CMSInfoCmd struct {
// contains filtered or unexported fields
}
type CacheCompat ¶
type CacheCompat struct {
// contains filtered or unexported fields
}
CacheCompat implements commands that support client-side caching.
func (CacheCompat) BFExists ¶
func (c CacheCompat) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
func (CacheCompat) BFInfoArg ¶
func (c CacheCompat) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
func (CacheCompat) BFInfoCapacity ¶
func (c CacheCompat) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
func (CacheCompat) BFInfoExpansion ¶
func (c CacheCompat) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
func (CacheCompat) BFInfoFilters ¶
func (c CacheCompat) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
func (CacheCompat) BFInfoItems ¶
func (c CacheCompat) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
func (CacheCompat) BFInfoSize ¶
func (c CacheCompat) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
func (CacheCompat) BitFieldRO ¶ added in v1.0.52
func (c CacheCompat) BitFieldRO(ctx context.Context, key string, args ...any) *IntSliceCmd
func (CacheCompat) BitPosSpan ¶
func (*CacheCompat) CFCount ¶
func (c *CacheCompat) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
func (*CacheCompat) CFExists ¶
func (c *CacheCompat) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
func (*CacheCompat) CFInfo ¶
func (c *CacheCompat) CFInfo(ctx context.Context, key string) *CFInfoCmd
func (*CacheCompat) CMSInfo ¶
func (c *CacheCompat) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
func (*CacheCompat) CMSQuery ¶
func (c *CacheCompat) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
func (CacheCompat) GeoDist ¶
func (c CacheCompat) GeoDist(ctx context.Context, key, member1, member2, unit string) *FloatCmd
func (CacheCompat) GeoHash ¶
func (c CacheCompat) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
func (CacheCompat) GeoRadius ¶
func (c CacheCompat) GeoRadius(ctx context.Context, key string, longitude, latitude float64, query GeoRadiusQuery) *GeoLocationCmd
GeoRadius is a read-only GEORADIUS_RO command.
func (CacheCompat) GeoRadiusByMember ¶
func (c CacheCompat) GeoRadiusByMember(ctx context.Context, key, member string, query GeoRadiusQuery) *GeoLocationCmd
GeoRadiusByMember is a read-only GEORADIUSBYMEMBER_RO command.
func (CacheCompat) GeoSearch ¶
func (c CacheCompat) GeoSearch(ctx context.Context, key string, q GeoSearchQuery) *StringSliceCmd
func (CacheCompat) HExists ¶
func (c CacheCompat) HExists(ctx context.Context, key, field string) *BoolCmd
func (CacheCompat) HGet ¶
func (c CacheCompat) HGet(ctx context.Context, key, field string) *StringCmd
func (CacheCompat) HGetAll ¶
func (c CacheCompat) HGetAll(ctx context.Context, key string) *StringStringMapCmd
func (CacheCompat) HKeys ¶
func (c CacheCompat) HKeys(ctx context.Context, key string) *StringSliceCmd
func (CacheCompat) HVals ¶
func (c CacheCompat) HVals(ctx context.Context, key string) *StringSliceCmd
func (*CacheCompat) JSONArrIndex ¶
func (c *CacheCompat) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
func (*CacheCompat) JSONArrLen ¶
func (c *CacheCompat) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
func (*CacheCompat) JSONMGet ¶
func (c *CacheCompat) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
func (*CacheCompat) JSONObjKeys ¶
func (c *CacheCompat) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
func (*CacheCompat) JSONObjLen ¶
func (c *CacheCompat) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*CacheCompat) JSONStrLen ¶
func (c *CacheCompat) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*CacheCompat) JSONType ¶
func (c *CacheCompat) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
func (CacheCompat) LRange ¶
func (c CacheCompat) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
func (CacheCompat) PTTL ¶
func (c CacheCompat) PTTL(ctx context.Context, key string) *DurationCmd
func (CacheCompat) SMIsMember ¶
func (c CacheCompat) SMIsMember(ctx context.Context, key string, members ...any) *BoolSliceCmd
func (CacheCompat) SMembers ¶
func (c CacheCompat) SMembers(ctx context.Context, key string) *StringSliceCmd
func (CacheCompat) SortRO ¶
func (c CacheCompat) SortRO(ctx context.Context, key string, sort Sort) *StringSliceCmd
func (CacheCompat) TTL ¶
func (c CacheCompat) TTL(ctx context.Context, key string) *DurationCmd
func (*CacheCompat) TopKInfo ¶
func (c *CacheCompat) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
func (*CacheCompat) TopKList ¶
func (c *CacheCompat) TopKList(ctx context.Context, key string) *StringSliceCmd
func (*CacheCompat) TopKQuery ¶
func (c *CacheCompat) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (CacheCompat) ZCount ¶
func (c CacheCompat) ZCount(ctx context.Context, key, min, max string) *IntCmd
func (CacheCompat) ZLexCount ¶
func (c CacheCompat) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
func (CacheCompat) ZMScore ¶
func (c CacheCompat) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
func (CacheCompat) ZRangeArgs ¶
func (c CacheCompat) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
func (CacheCompat) ZRangeArgsWithScores ¶
func (c CacheCompat) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
func (CacheCompat) ZRangeByLex ¶
func (c CacheCompat) ZRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
func (CacheCompat) ZRangeByScore ¶
func (c CacheCompat) ZRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
func (CacheCompat) ZRangeByScoreWithScores ¶
func (CacheCompat) ZRangeWithScores ¶
func (CacheCompat) ZRank ¶
func (c CacheCompat) ZRank(ctx context.Context, key, member string) *IntCmd
func (CacheCompat) ZRankWithScore ¶
func (c CacheCompat) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
func (CacheCompat) ZRevRange ¶
func (c CacheCompat) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
func (CacheCompat) ZRevRangeByLex ¶
func (c CacheCompat) ZRevRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
func (CacheCompat) ZRevRangeByScore ¶
func (c CacheCompat) ZRevRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd
func (CacheCompat) ZRevRangeByScoreWithScores ¶
func (CacheCompat) ZRevRangeWithScores ¶
func (CacheCompat) ZRevRank ¶
func (c CacheCompat) ZRevRank(ctx context.Context, key, member string) *IntCmd
func (CacheCompat) ZRevRankWithScore ¶
func (c CacheCompat) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
type ChannelOption ¶ added in v1.0.42
type ChannelOption func(c *chopt)
func WithChannelHealthCheckInterval ¶ added in v1.0.42
func WithChannelHealthCheckInterval(_ time.Duration) ChannelOption
WithChannelHealthCheckInterval is an empty ChannelOption to keep compatibility
func WithChannelSendTimeout ¶ added in v1.0.42
func WithChannelSendTimeout(_ time.Duration) ChannelOption
WithChannelSendTimeout is an empty ChannelOption to keep compatibility
func WithChannelSize ¶ added in v1.0.42
func WithChannelSize(size int) ChannelOption
WithChannelSize specifies the Go chan size that is used to buffer incoming messages. The default is 1000 messages.
type ClientFlags ¶ added in v1.0.52
type ClientFlags uint64
ClientFlags is redis-server client flags, copy from redis/src/server.h (redis 7.0)
const ( ClientSlave ClientFlags = 1 << 0 /* This client is a replica */ ClientMaster ClientFlags = 1 << 1 /* This client is a master */ ClientMonitor ClientFlags = 1 << 2 /* This client is a slave monitor, see MONITOR */ ClientMulti ClientFlags = 1 << 3 /* This client is in a MULTI context */ ClientBlocked ClientFlags = 1 << 4 /* The client is waiting in a blocking operation */ ClientDirtyCAS ClientFlags = 1 << 5 /* Watched keys modified. EXEC will fail. */ ClientCloseAfterReply ClientFlags = 1 << 6 /* Close after writing entire reply. */ ClientUnBlocked ClientFlags = 1 << 7 /* This client was unblocked and is stored in server.unblocked_clients */ ClientScript ClientFlags = 1 << 8 /* This is a non-connected client used by Lua */ ClientAsking ClientFlags = 1 << 9 /* Client issued the ASKING command */ ClientCloseASAP ClientFlags = 1 << 10 /* Close this client ASAP */ ClientUnixSocket ClientFlags = 1 << 11 /* Client connected via Unix domain socket */ ClientDirtyExec ClientFlags = 1 << 12 /* EXEC will fail for errors while queueing */ ClientMasterForceReply ClientFlags = 1 << 13 /* Queue replies even if is master */ ClientForceAOF ClientFlags = 1 << 14 /* Force AOF propagation of current cmd. */ ClientForceRepl ClientFlags = 1 << 15 /* Force replication of current cmd. */ ClientPrePSync ClientFlags = 1 << 16 /* Instance don't understand PSYNC. */ ClientReadOnly ClientFlags = 1 << 17 /* Cluster client is in read-only state. */ ClientPubSub ClientFlags = 1 << 18 /* Client is in Pub/Sub mode. */ ClientPreventAOFProp ClientFlags = 1 << 19 /* Don't propagate to AOF. */ ClientPreventReplProp ClientFlags = 1 << 20 /* Don't propagate to slaves. */ ClientPreventProp ClientFlags = ClientPreventAOFProp | ClientPreventReplProp ClientPendingWrite ClientFlags = 1 << 21 /* Client has output to send but a-write handler is yet not installed. */ ClientReplyOff ClientFlags = 1 << 22 /* Don't send replies to client. */ ClientReplySkipNext ClientFlags = 1 << 23 /* Set ClientREPLY_SKIP for next cmd */ ClientReplySkip ClientFlags = 1 << 24 /* Don't send just this reply. */ ClientLuaDebug ClientFlags = 1 << 25 /* Run EVAL in debug mode. */ ClientLuaDebugSync ClientFlags = 1 << 26 /* EVAL debugging without fork() */ ClientModule ClientFlags = 1 << 27 /* Non connected client used by some module. */ ClientProtected ClientFlags = 1 << 28 /* Client should not be freed for now. */ ClientExecutingCommand ClientFlags = 1 << 29 /* Indicates that the client is currently in the process of handling a command. usually this will be marked only during call() however, blocked clients might have this flag kept until they will try to reprocess the command. */ ClientPendingCommand ClientFlags = 1 << 30 /* Indicates the client has a fully * parsed command ready for execution. */ ClientTracking ClientFlags = 1 << 31 /* Client enabled keys tracking in order to perform client side caching. */ ClientTrackingBrokenRedir ClientFlags = 1 << 32 /* Target client is invalid. */ ClientTrackingBCAST ClientFlags = 1 << 33 /* Tracking in BCAST mode. */ ClientTrackingOptIn ClientFlags = 1 << 34 /* Tracking in opt-in mode. */ ClientTrackingOptOut ClientFlags = 1 << 35 /* Tracking in opt-out mode. */ ClientTrackingCaching ClientFlags = 1 << 36 /* CACHING yes/no was given, depending on optin/optout mode. */ ClientTrackingNoLoop ClientFlags = 1 << 37 /* Don't send invalidation messages about writes performed by myself.*/ ClientInTimeoutTable ClientFlags = 1 << 38 /* This client is in the timeout table. */ ClientProtocolError ClientFlags = 1 << 39 /* Protocol error chatting with it. */ ClientCloseAfterCommand ClientFlags = 1 << 40 /* Close after executing commands * and writing entire reply. */ ClientDenyBlocking ClientFlags = 1 << 41 /* Indicate that the client should not be blocked. currently, turned on inside MULTI, Lua, RM_Call, and AOF client */ ClientReplRDBOnly ClientFlags = 1 << 42 /* This client is a replica that only wants RDB without replication buffer. */ ClientNoEvict ClientFlags = 1 << 43 /* This client is protected against client memory eviction. */ ClientAllowOOM ClientFlags = 1 << 44 /* Client used by RM_Call is allowed to fully execute scripts even when in OOM */ ClientNoTouch ClientFlags = 1 << 45 /* This client will not touch LFU/LRU stats. */ ClientPushing ClientFlags = 1 << 46 /* This client is pushing notifications. */ )
type ClientInfo ¶ added in v1.0.52
type ClientInfo struct { ID int64 // redis version 2.8.12, a unique 64-bit client ID Addr string // address/port of the client LAddr string // address/port of local address client connected to (bind address) FD int64 // file descriptor corresponding to the socket Name string // the name set by the client with CLIENT SETNAME Age time.Duration // total duration of the connection in seconds Idle time.Duration // idle time of the connection in seconds Flags ClientFlags // client flags (see below) DB int // current database ID Sub int // number of channel subscriptions PSub int // number of pattern matching subscriptions SSub int // redis version 7.0.3, number of shard channel subscriptions Multi int // number of commands in a MULTI/EXEC context Watch int // redis version 7.4 RC1, number of keys this client is currently watching. QueryBuf int // qbuf, query buffer length (0 means no query pending) QueryBufFree int // qbuf-free, free space of the query buffer (0 means the buffer is full) ArgvMem int // incomplete arguments for the next command (already extracted from query buffer) MultiMem int // redis version 7.0, memory is used up by buffered multi commands BufferSize int // rbs, usable size of buffer BufferPeak int // rbp, peak used size of buffer in last 5 sec interval OutputBufferLength int // obl, output buffer length OutputListLength int // oll, output list length (replies are queued in this list when the buffer is full) OutputMemory int // omem, output buffer memory usage TotalMemory int // tot-mem, total memory consumed by this client in its various buffers Events string // file descriptor events (see below) LastCmd string // cmd, last command played User string // the authenticated username of the client Redir int64 // client id of current client tracking redirection Resp int // redis version 7.0, client RESP protocol version LibName string // redis version 7.2, client library name LibVer string // redis version 7.2, client library version }
ClientInfo is redis-server ClientInfo
type ClientInfoCmd ¶ added in v1.0.52
type ClientInfoCmd struct {
// contains filtered or unexported fields
}
func (*ClientInfoCmd) Result ¶ added in v1.0.52
func (cmd *ClientInfoCmd) Result() (*ClientInfo, error)
func (*ClientInfoCmd) SetVal ¶ added in v1.0.52
func (cmd *ClientInfoCmd) SetVal(val *ClientInfo)
func (*ClientInfoCmd) Val ¶ added in v1.0.52
func (cmd *ClientInfoCmd) Val() *ClientInfo
type ClusterNode ¶
type ClusterShard ¶
type ClusterShardsCmd ¶
type ClusterShardsCmd struct {
// contains filtered or unexported fields
}
type ClusterSlot ¶
type ClusterSlot struct { Nodes []ClusterNode Start int64 End int64 }
type ClusterSlotsCmd ¶
type ClusterSlotsCmd struct {
// contains filtered or unexported fields
}
type Cmd ¶
type Cmd struct {
// contains filtered or unexported fields
}
func (*Cmd) Float32Slice ¶
func (*Cmd) Float64Slice ¶
func (*Cmd) Int64Slice ¶
func (*Cmd) StringSlice ¶
func (*Cmd) Uint64Slice ¶
type Cmdable ¶
type Cmdable interface { CoreCmdable Cache(ttl time.Duration) CacheCompat Subscribe(ctx context.Context, channels ...string) PubSub PSubscribe(ctx context.Context, patterns ...string) PubSub SSubscribe(ctx context.Context, channels ...string) PubSub Watch(ctx context.Context, fn func(Tx) error, keys ...string) error }
func NewAdapter ¶
type CommandInfo ¶
type CommandsInfoCmd ¶
type CommandsInfoCmd struct {
// contains filtered or unexported fields
}
type Compat ¶
type Compat struct {
// contains filtered or unexported fields
}
func (*Compat) BFInfoCapacity ¶
func (*Compat) BFInfoExpansion ¶
func (*Compat) BFInfoFilters ¶
func (*Compat) BFInfoItems ¶
func (*Compat) BFInsert ¶
func (c *Compat) BFInsert(ctx context.Context, key string, options *BFInsertOptions, elements ...interface{}) *BoolSliceCmd
func (*Compat) BFLoadChunk ¶
func (*Compat) BFMAdd ¶
func (c *Compat) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Compat) BFMExists ¶
func (c *Compat) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Compat) BFReserveExpansion ¶
func (*Compat) BFReserveNonScaling ¶
func (*Compat) BFReserveWithArgs ¶
func (*Compat) BFScanDump ¶
func (*Compat) BRPopLPush ¶
func (*Compat) BitFieldRO ¶ added in v1.0.52
func (*Compat) BitPosSpan ¶
func (*Compat) CFInsert ¶
func (c *Compat) CFInsert(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *BoolSliceCmd
func (*Compat) CFInsertNX ¶
func (c *Compat) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *IntSliceCmd
func (*Compat) CFLoadChunk ¶
func (*Compat) CFMExists ¶
func (c *Compat) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Compat) CFReserveBucketSize ¶
func (*Compat) CFReserveExpansion ¶
func (*Compat) CFReserveMaxIterations ¶
func (*Compat) CFReserveWithArgs ¶
func (*Compat) CFScanDump ¶
func (*Compat) CMSIncrBy ¶
func (c *Compat) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
func (*Compat) CMSInitByDim ¶
func (*Compat) CMSInitByProb ¶
func (*Compat) CMSMergeWithWeight ¶
func (*Compat) CMSQuery ¶
func (c *Compat) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
func (*Compat) ClientInfo ¶ added in v1.0.52
func (c *Compat) ClientInfo(ctx context.Context) *ClientInfoCmd
func (*Compat) ClientKill ¶
func (*Compat) ClientKillByFilter ¶
func (*Compat) ClientPause ¶
func (*Compat) ClientUnblock ¶
func (*Compat) ClientUnblockWithError ¶
func (*Compat) ClusterAddSlots ¶
func (*Compat) ClusterAddSlotsRange ¶
func (*Compat) ClusterCountFailureReports ¶
func (*Compat) ClusterCountKeysInSlot ¶
func (*Compat) ClusterDelSlots ¶
func (*Compat) ClusterDelSlotsRange ¶
func (*Compat) ClusterForget ¶
func (*Compat) ClusterGetKeysInSlot ¶
func (*Compat) ClusterKeySlot ¶
func (*Compat) ClusterMeet ¶
func (*Compat) ClusterMyShardID ¶ added in v1.0.52
func (*Compat) ClusterReplicate ¶
func (*Compat) ClusterSaveConfig ¶
func (*Compat) ClusterShards ¶
func (c *Compat) ClusterShards(ctx context.Context) *ClusterShardsCmd
func (*Compat) ClusterSlaves ¶
func (c *Compat) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
func (*Compat) ClusterSlots ¶
func (c *Compat) ClusterSlots(ctx context.Context) *ClusterSlotsCmd
func (*Compat) CommandGetKeys ¶
func (c *Compat) CommandGetKeys(ctx context.Context, commands ...any) *StringSliceCmd
func (*Compat) CommandGetKeysAndFlags ¶
func (c *Compat) CommandGetKeysAndFlags(ctx context.Context, commands ...any) *KeyFlagsCmd
func (*Compat) CommandList ¶
func (c *Compat) CommandList(ctx context.Context, filter FilterBy) *StringSliceCmd
func (*Compat) ConfigGet ¶
func (c *Compat) ConfigGet(ctx context.Context, parameter string) *StringStringMapCmd
func (*Compat) DebugObject ¶
func (*Compat) ExpireTime ¶
func (c *Compat) ExpireTime(ctx context.Context, key string) *DurationCmd
func (*Compat) FTAggregate ¶ added in v1.0.50
func (c *Compat) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
FTAggregate - Performs a search query on an index and applies a series of aggregate transformations to the result. The 'index' parameter specifies the index to search, and the 'query' parameter specifies the search query. For more information, please refer to the Redis documentation: [FT.AGGREGATE]: (https://redis.io/commands/ft.aggregate/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L473
func (*Compat) FTAggregateWithArgs ¶ added in v1.0.50
func (c *Compat) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
FTAggregateWithArgs - Performs a search query on an index and applies a series of aggregate transformations to the result. The 'index' parameter specifies the index to search, and the 'query' parameter specifies the search query. This function also allows for specifying additional options such as: Verbatim, LoadAll, Load, Timeout, GroupBy, SortBy, SortByMax, Apply, LimitOffset, Limit, Filter, WithCursor, Params, and DialectVersion. For more information, please refer to the Redis documentation: [FT.AGGREGATE]: (https://redis.io/commands/ft.aggregate/) see: go-redis v9.7.0: https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L671
func (*Compat) FTAliasAdd ¶ added in v1.0.50
FTAliasAdd - Adds an alias to an index. The 'index' parameter specifies the index to which the alias is added, and the 'alias' parameter specifies the alias. For more information, please refer to the Redis documentation: [FT.ALIASADD]: (https://redis.io/commands/ft.aliasadd/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L782
func (*Compat) FTAliasDel ¶ added in v1.0.50
FTAliasDel - Removes an alias from an index. The 'alias' parameter specifies the alias to be removed. For more information, please refer to the Redis documentation: [FT.ALIASDEL]: (https://redis.io/commands/ft.aliasdel/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L793
func (*Compat) FTAliasUpdate ¶ added in v1.0.50
FTAliasUpdate - Updates an alias to an index. The 'index' parameter specifies the index to which the alias is updated, and the 'alias' parameter specifies the alias. If the alias already exists for a different index, it updates the alias to point to the specified index instead. For more information, please refer to the Redis documentation: [FT.ALIASUPDATE]: (https://redis.io/commands/ft.aliasupdate/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L804
func (*Compat) FTAlter ¶ added in v1.0.50
func (c *Compat) FTAlter(ctx context.Context, index string, skipInitalScan bool, definition []interface{}) *StatusCmd
FTAlter - Alters the definition of an existing index. The 'index' parameter specifies the index to alter, and the 'skipInitialScan' parameter specifies whether to skip the initial scan. The 'definition' parameter specifies the new definition for the index. For more information, please refer to the Redis documentation: [FT.ALTER]: (https://redis.io/commands/ft.alter/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L815
func (*Compat) FTConfigGet ¶ added in v1.0.50
func (c *Compat) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
FTConfigGet - Retrieves the value of a RediSearch configuration parameter. The 'option' parameter specifies the configuration parameter to retrieve. For more information, please refer to the Redis documentation: [FT.CONFIG GET]: (https://redis.io/commands/ft.config-get/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L831
func (*Compat) FTConfigSet ¶ added in v1.0.50
FTConfigSet - Sets the value of a RediSearch configuration parameter. The 'option' parameter specifies the configuration parameter to set, and the 'value' parameter specifies the new value. For more information, please refer to the Redis documentation: [FT.CONFIG SET]: (https://redis.io/commands/ft.config-set/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L841
func (*Compat) FTCreate ¶ added in v1.0.50
func (c *Compat) FTCreate(ctx context.Context, index string, options *FTCreateOptions, schema ...*FieldSchema) *StatusCmd
FTCreate - Creates a new index with the given options and schema. The 'index' parameter specifies the name of the index to create. The 'options' parameter specifies various options for the index, such as: whether to index hashes or JSONs, prefixes, filters, default language, score, score field, payload field, etc. The 'schema' parameter specifies the schema for the index, which includes the field name, field type, etc. For more information, please refer to the Redis documentation: [FT.CREATE]: (https://redis.io/commands/ft.create/) FTCreate aligns with go-redis v9.7.0. see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L854
func (*Compat) FTCursorDel ¶ added in v1.0.50
FTCursorDel - Deletes a cursor from an existing index. The 'index' parameter specifies the index from which to delete the cursor, and the 'cursorId' parameter specifies the ID of the cursor to delete. For more information, please refer to the Redis documentation: [FT.CURSOR DEL]: (https://redis.io/commands/ft.cursor-del/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1032
func (*Compat) FTCursorRead ¶ added in v1.0.50
func (c *Compat) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
FTCursorRead - Reads the next results from an existing cursor. The 'index' parameter specifies the index from which to read the cursor, the 'cursorId' parameter specifies the ID of the cursor to read, and the 'count' parameter specifies the number of results to read. For more information, please refer to the Redis documentation: [FT.CURSOR READ]: (https://redis.io/commands/ft.cursor-read/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1042
func (*Compat) FTDictAdd ¶ added in v1.0.50
FTDictAdd - Adds terms to a dictionary. The 'dict' parameter specifies the dictionary to which to add the terms, and the 'term' parameter specifies the terms to add. For more information, please refer to the Redis documentation: [FT.DICTADD]: (https://redis.io/commands/ft.dictadd/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1056
func (*Compat) FTDictDel ¶ added in v1.0.50
FTDictDel - Deletes terms from a dictionary. The 'dict' parameter specifies the dictionary from which to delete the terms, and the 'term' parameter specifies the terms to delete. For more information, please refer to the Redis documentation: [FT.DICTDEL]: (https://redis.io/commands/ft.dictdel/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1068
func (*Compat) FTDictDump ¶ added in v1.0.50
func (c *Compat) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
FTDictDump - Returns all terms in the specified dictionary. The 'dict' parameter specifies the dictionary from which to return the terms. For more information, please refer to the Redis documentation: [FT.DICTDUMP]: (https://redis.io/commands/ft.dictdump/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1080
func (*Compat) FTDropIndex ¶ added in v1.0.50
FTDropIndex - Deletes an index. The 'index' parameter specifies the index to delete. For more information, please refer to the Redis documentation: [FT.DROPINDEX]: (https://redis.io/commands/ft.dropindex/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1090
func (*Compat) FTDropIndexWithArgs ¶ added in v1.0.50
func (c *Compat) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
FTDropIndexWithArgs - Deletes an index with options. The 'index' parameter specifies the index to delete, and the 'options' parameter specifies the DeleteDocs option for docs deletion. For more information, please refer to the Redis documentation: [FT.DROPINDEX]: (https://redis.io/commands/ft.dropindex/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1101
func (*Compat) FTExplain ¶ added in v1.0.50
FTExplain - Returns the execution plan for a complex query. The 'index' parameter specifies the index to query, and the 'query' parameter specifies the query string. For more information, please refer to the Redis documentation: [FT.EXPLAIN]: (https://redis.io/commands/ft.explain/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1117
func (*Compat) FTExplainWithArgs ¶ added in v1.0.50
func (c *Compat) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
FTExplainWithArgs - Returns the execution plan for a complex query with options. The 'index' parameter specifies the index to query, the 'query' parameter specifies the query string, and the 'options' parameter specifies the Dialect for the query. For more information, please refer to the Redis documentation: [FT.EXPLAIN]: (https://redis.io/commands/ft.explain/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1127
func (*Compat) FTInfo ¶ added in v1.0.50
FTInfo - Retrieves information about an index. The 'index' parameter specifies the index to retrieve information about. For more information, please refer to the Redis documentation: [FT.INFO]: (https://redis.io/commands/ft.info/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1393
func (*Compat) FTSearch ¶ added in v1.0.50
FTSearch - Executes a search query on an index. The 'index' parameter specifies the index to search, and the 'query' parameter specifies the search query. For more information, please refer to the Redis documentation: [FT.SEARCH]: (https://redis.io/commands/ft.search/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1679
func (*Compat) FTSearchWithArgs ¶ added in v1.0.50
func (c *Compat) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
FTSearchWithArgs - Executes a search query on an index with additional options. The 'index' parameter specifies the index to search, the 'query' parameter specifies the search query, and the 'options' parameter specifies additional options for the search. For more information, please refer to the Redis documentation: [FT.SEARCH]: (https://redis.io/commands/ft.search/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1802
func (*Compat) FTSpellCheck ¶ added in v1.0.50
FTSpellCheck - Checks a query string for spelling errors. For more details about spellcheck query please follow: https://redis.io/docs/interact/search-and-query/advanced-concepts/spellcheck/ For more information, please refer to the Redis documentation: [FT.SPELLCHECK]: (https://redis.io/commands/ft.spellcheck/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1404
func (*Compat) FTSpellCheckWithArgs ¶ added in v1.0.50
func (c *Compat) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
FTSpellCheckWithArgs - Checks a query string for spelling errors with additional options. For more details about spellcheck query please follow: https://redis.io/docs/interact/search-and-query/advanced-concepts/spellcheck/ For more information, please refer to the Redis documentation: [FT.SPELLCHECK]: (https://redis.io/commands/ft.spellcheck/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1416
func (*Compat) FTSynDump ¶ added in v1.0.50
func (c *Compat) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
FTSynDump - Dumps the contents of a synonym group. The 'index' parameter specifies the index to dump. For more information, please refer to the Redis documentation: [FT.SYNDUMP]: (https://redis.io/commands/ft.syndump/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1987
func (*Compat) FTSynUpdate ¶ added in v1.0.50
func (c *Compat) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
FTSynUpdate - Creates or updates a synonym group with additional terms. The 'index' parameter specifies the index to update, the 'synGroupId' parameter specifies the synonym group id, and the 'terms' parameter specifies the additional terms. For more information, please refer to the Redis documentation: [FT.SYNUPDATE]: (https://redis.io/commands/ft.synupdate/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L1997
func (*Compat) FTSynUpdateWithArgs ¶ added in v1.0.50
func (c *Compat) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, options *FTSynUpdateOptions, terms []interface{}) *StatusCmd
FTSynUpdateWithArgs - Creates or updates a synonym group with additional terms and options. The 'index' parameter specifies the index to update, the 'synGroupId' parameter specifies the synonym group id, the 'options' parameter specifies additional options for the update, and the 'terms' parameter specifies the additional terms. For more information, please refer to the Redis documentation: [FT.SYNUPDATE]: (https://redis.io/commands/ft.synupdate/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L2009
func (*Compat) FTTagVals ¶ added in v1.0.50
FTTagVals - Returns all distinct values indexed in a tag field. The 'index' parameter specifies the index to check, and the 'field' parameter specifies the tag field to retrieve values from. For more information, please refer to the Redis documentation: [FT.TAGVALS]: (https://redis.io/commands/ft.tagvals/) see go-redis v9.7.0 https://github.com/redis/go-redis/blob/v9.7.0/search_commands.go#L2024
func (*Compat) FT_List ¶ added in v1.0.50
func (c *Compat) FT_List(ctx context.Context) *StringSliceCmd
func (*Compat) FunctionDelete ¶
func (*Compat) FunctionFlushAsync ¶
func (*Compat) FunctionList ¶
func (c *Compat) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
func (*Compat) FunctionLoad ¶
func (*Compat) FunctionLoadReplace ¶
func (*Compat) FunctionRestore ¶
func (*Compat) GeoRadius ¶
func (c *Compat) GeoRadius(ctx context.Context, key string, longitude, latitude float64, query GeoRadiusQuery) *GeoLocationCmd
GeoRadius is a read-only GEORADIUS_RO command.
func (*Compat) GeoRadiusByMember ¶
func (c *Compat) GeoRadiusByMember(ctx context.Context, key, member string, query GeoRadiusQuery) *GeoLocationCmd
GeoRadiusByMember is a read-only GEORADIUSBYMEMBER_RO command.
func (*Compat) GeoRadiusByMemberStore ¶
func (c *Compat) GeoRadiusByMemberStore(ctx context.Context, key, member string, query GeoRadiusQuery) *IntCmd
GeoRadiusByMemberStore is a writing GEORADIUSBYMEMBER command.
func (*Compat) GeoRadiusStore ¶
func (c *Compat) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, query GeoRadiusQuery) *IntCmd
GeoRadiusStore is a writing GEORADIUS command.
func (*Compat) GeoSearch ¶
func (c *Compat) GeoSearch(ctx context.Context, key string, q GeoSearchQuery) *StringSliceCmd
func (*Compat) GeoSearchLocation ¶
func (c *Compat) GeoSearchLocation(ctx context.Context, key string, q GeoSearchLocationQuery) *GeoLocationCmd
func (*Compat) GeoSearchStore ¶
func (*Compat) GetEx ¶
GetEx An expiration of zero removes the TTL associated with the key (i.e. GETEX key persist). Requires Redis >= 6.2.0.
func (*Compat) HExpireAtWithArgs ¶ added in v1.0.45
func (c *Compat) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Compat) HExpireTime ¶ added in v1.0.45
func (*Compat) HExpireWithArgs ¶ added in v1.0.45
func (c *Compat) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Compat) HGetAll ¶
func (c *Compat) HGetAll(ctx context.Context, key string) *StringStringMapCmd
func (*Compat) HIncrByFloat ¶
func (*Compat) HPExpireAt ¶ added in v1.0.45
func (*Compat) HPExpireAtWithArgs ¶ added in v1.0.45
func (c *Compat) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Compat) HPExpireTime ¶ added in v1.0.45
func (*Compat) HPExpireWithArgs ¶ added in v1.0.45
func (c *Compat) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Compat) HRandField ¶
func (*Compat) HRandFieldWithValues ¶
func (*Compat) HScanNoValues ¶ added in v1.0.52
func (*Compat) IncrByFloat ¶
func (*Compat) JSONArrAppend ¶
func (c *Compat) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
JSONArrAppend adds the provided JSON values to the end of the array at the given path. For more information, see https://redis.io/commands/json.arrappend
func (*Compat) JSONArrIndex ¶
func (c *Compat) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
JSONArrIndex searches for the first occurrence of the provided JSON value in the array at the given path. For more information, see https://redis.io/commands/json.arrindex NOTE: value should have the format value start [stop]
func (*Compat) JSONArrIndexWithArgs ¶
func (c *Compat) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, value ...interface{}) *IntSliceCmd
JSONArrIndex searches for the first occurrence of the provided JSON value in the array at the given path. For more information, see https://redis.io/commands/json.arrindex
func (*Compat) JSONArrInsert ¶
func (*Compat) JSONArrLen ¶
func (c *Compat) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
func (*Compat) JSONArrPop ¶
func (*Compat) JSONArrTrim ¶
func (c *Compat) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
func (*Compat) JSONArrTrimWithArgs ¶
func (c *Compat) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
func (*Compat) JSONDebugMemory ¶
func (*Compat) JSONForget ¶
func (*Compat) JSONGetWithArgs ¶
func (*Compat) JSONMSetArgs ¶
func (c *Compat) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
func (*Compat) JSONNumIncrBy ¶
func (*Compat) JSONObjKeys ¶
func (*Compat) JSONObjLen ¶
func (c *Compat) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*Compat) JSONSetMode ¶
func (c *Compat) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
JSONSetMode sets the JSON value at the given path in the given key and allows the mode to be set (the mode value must be "XX" or "NX"). The value must be something that can be marshaled to JSON (using encoding/JSON) unless the argument is a string or []byte when we assume that it can be passed directly as JSON. For more information, see https://redis.io/commands/json.set
func (*Compat) JSONStrAppend ¶
func (c *Compat) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
func (*Compat) JSONStrLen ¶
func (c *Compat) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*Compat) JSONToggle ¶
func (c *Compat) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*Compat) JSONType ¶
func (c *Compat) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
func (*Compat) LInsertAfter ¶
func (*Compat) LInsertBefore ¶
func (*Compat) MemoryUsage ¶
func (*Compat) ModuleLoadex ¶ added in v1.0.52
func (c *Compat) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
func (*Compat) ObjectEncoding ¶
func (*Compat) ObjectIdleTime ¶
func (c *Compat) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
func (*Compat) ObjectRefCount ¶
func (*Compat) PExpireTime ¶
func (c *Compat) PExpireTime(ctx context.Context, key string) *DurationCmd
func (*Compat) PSubscribe ¶ added in v1.0.42
func (*Compat) PubSubChannels ¶
func (c *Compat) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
func (*Compat) PubSubNumSub ¶
func (c *Compat) PubSubNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
func (*Compat) PubSubShardChannels ¶
func (c *Compat) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
func (*Compat) PubSubShardNumSub ¶
func (c *Compat) PubSubShardNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
func (*Compat) RestoreReplace ¶
func (*Compat) SDiffStore ¶
func (*Compat) SInter ¶
func (c *Compat) SInter(ctx context.Context, keys ...string) *StringSliceCmd
func (*Compat) SInterCard ¶
func (*Compat) SInterStore ¶
func (*Compat) SMIsMember ¶
func (*Compat) SMembers ¶
func (c *Compat) SMembers(ctx context.Context, key string) *StringSliceCmd
func (*Compat) SMembersMap ¶
func (c *Compat) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
func (*Compat) SRandMember ¶
func (*Compat) SRandMemberN ¶
func (*Compat) SSubscribe ¶ added in v1.0.42
func (*Compat) SUnion ¶
func (c *Compat) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
func (*Compat) SUnionStore ¶
func (*Compat) ScriptExists ¶
func (c *Compat) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
func (*Compat) ScriptLoad ¶
func (*Compat) Set ¶
func (c *Compat) Set(ctx context.Context, key string, value any, expiration time.Duration) *StatusCmd
Set key value [expiration]
For no expiration use 0.
For KEEPTTL use -1.
For more options, use SetArgs.
func (*Compat) SortInterfaces ¶
func (*Compat) TDigestAdd ¶
func (*Compat) TDigestByRank ¶
func (*Compat) TDigestByRevRank ¶
func (*Compat) TDigestCDF ¶
func (*Compat) TDigestCreate ¶
func (*Compat) TDigestCreateWithCompression ¶
func (*Compat) TDigestInfo ¶
func (c *Compat) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
func (*Compat) TDigestMerge ¶
func (*Compat) TDigestQuantile ¶
func (*Compat) TDigestRank ¶
func (*Compat) TDigestReset ¶
func (*Compat) TDigestRevRank ¶
func (*Compat) TDigestTrimmedMean ¶
func (*Compat) TFCallASYNC ¶
func (*Compat) TFCallASYNCArgs ¶
func (*Compat) TFCallArgs ¶
func (*Compat) TFunctionDelete ¶
func (*Compat) TFunctionList ¶
func (c *Compat) TFunctionList(ctx context.Context) *MapStringInterfaceSliceCmd
func (*Compat) TFunctionListArgs ¶
func (c *Compat) TFunctionListArgs(ctx context.Context, options *TFunctionListOptions) *MapStringInterfaceSliceCmd
func (*Compat) TFunctionLoad ¶
func (*Compat) TFunctionLoadArgs ¶
func (c *Compat) TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd
FIXME: should check nil of options
func (*Compat) TSAdd ¶
func (c *Compat) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
TSAdd - Adds one or more observations to a t-digest sketch. For more information - https://redis.io/commands/ts.add/
func (*Compat) TSAddWithArgs ¶
func (c *Compat) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, options *TSOptions) *IntCmd
TSAddWithArgs - Adds one or more observations to a t-digest sketch. This function also allows for specifying additional options such as: Retention, ChunkSize, Encoding, DuplicatePolicy and Labels. For more information - https://redis.io/commands/ts.add/
func (*Compat) TSAlter ¶
TSAlter - Alters an existing time-series key with additional options. This function allows for specifying additional options such as: Retention, ChunkSize and DuplicatePolicy. For more information - https://redis.io/commands/ts.alter/
func (*Compat) TSCreate ¶
TSCreate - Creates a new time-series key. For more information - https://redis.io/commands/ts.create/
func (*Compat) TSCreateRule ¶
func (c *Compat) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, bucketDuration int) *StatusCmd
TSCreateRule - Creates a compaction rule from sourceKey to destKey. For more information - https://redis.io/commands/ts.createrule/
func (*Compat) TSCreateRuleWithArgs ¶
func (c *Compat) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, bucketDuration int, options *TSCreateRuleOptions) *StatusCmd
TSCreateRuleWithArgs - Creates a compaction rule from sourceKey to destKey with additional option. This function allows for specifying additional option such as: AlignTimestamp. For more information - https://redis.io/commands/ts.createrule/
func (*Compat) TSCreateWithArgs ¶
TSCreateWithArgs - Creates a new time-series key with additional options. This function allows for specifying additional options such as: Retention, ChunkSize, Encoding, DuplicatePolicy and Labels. For more information - https://redis.io/commands/ts.create/
func (*Compat) TSDecrBy ¶
TSDecrBy - Decrements the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.decrby/ FIXME: timestamp should be subtrahend
func (*Compat) TSDecrByWithArgs ¶
func (c *Compat) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
TSDecrByWithArgs - Decrements the value of a time-series key by the specified timestamp with additional options. This function allows for specifying additional options such as: Timestamp, Retention, ChunkSize, Uncompressed and Labels. For more information - https://redis.io/commands/ts.decrby/
func (*Compat) TSDel ¶
TSDel - Deletes a range of samples from a time-series key. For more information - https://redis.io/commands/ts.del/
func (*Compat) TSDeleteRule ¶
TSDeleteRule - Deletes a compaction rule from sourceKey to destKey. For more information - https://redis.io/commands/ts.deleterule/
func (*Compat) TSGet ¶
func (c *Compat) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
TSGet - Gets the last sample of a time-series key. For more information - https://redis.io/commands/ts.get/
func (*Compat) TSGetWithArgs ¶
func (c *Compat) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
TSGetWithArgs - Gets the last sample of a time-series key with additional option. This function allows for specifying additional option such as: Latest. For more information - https://redis.io/commands/ts.get/
func (*Compat) TSIncrBy ¶
TSIncrBy - Increments the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.incrby/ FIXME: timestamp should be addend
func (*Compat) TSIncrByWithArgs ¶
func (c *Compat) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
TSIncrByWithArgs - Increments the value of a time-series key by the specified timestamp with additional options. This function allows for specifying additional options such as: Timestamp, Retention, ChunkSize, Uncompressed and Labels. For more information - https://redis.io/commands/ts.incrby/ FIXME: timestamp should be addend
func (*Compat) TSInfo ¶
func (c *Compat) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
TSInfo - Returns information about a time-series key. For more information - https://redis.io/commands/ts.info/
func (*Compat) TSInfoWithArgs ¶
func (c *Compat) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
TSInfoWithArgs - Returns information about a time-series key with additional option. This function allows for specifying additional option such as: Debug. For more information - https://redis.io/commands/ts.info/
func (*Compat) TSMAdd ¶
func (c *Compat) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
TSMAdd - Adds multiple samples to multiple time-series keys. For more information - https://redis.io/commands/ts.madd/
func (*Compat) TSMGet ¶
func (c *Compat) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
TSMGet - Returns the last sample of multiple time-series keys. For more information - https://redis.io/commands/ts.mget/
func (*Compat) TSMGetWithArgs ¶
func (c *Compat) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
TSMGetWithArgs - Returns the last sample of multiple time-series keys with additional options. This function allows for specifying additional options such as: Latest, WithLabels and SelectedLabels. For more information - https://redis.io/commands/ts.mget/
func (*Compat) TSMRange ¶
func (c *Compat) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
TSMRange - Returns a range of samples from multiple time-series keys. For more information - https://redis.io/commands/ts.mrange/
func (*Compat) TSMRangeWithArgs ¶
func (c *Compat) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRangeOptions) *MapStringSliceInterfaceCmd
TSMRangeWithArgs - Returns a range of samples from multiple time-series keys with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, WithLabels, SelectedLabels, Count, Align, Aggregator, BucketDuration, BucketTimestamp, Empty, GroupByLabel and Reducer. For more information - https://redis.io/commands/ts.mrange/
func (*Compat) TSMRevRange ¶
func (c *Compat) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
TSMRevRange - Returns a range of samples from multiple time-series keys in reverse order. For more information - https://redis.io/commands/ts.mrevrange/
func (*Compat) TSMRevRangeWithArgs ¶
func (c *Compat) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRevRangeOptions) *MapStringSliceInterfaceCmd
TSMRevRangeWithArgs - Returns a range of samples from multiple time-series keys in reverse order with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, WithLabels, SelectedLabels, Count, Align, Aggregator, BucketDuration, BucketTimestamp, Empty, GroupByLabel and Reducer. For more information - https://redis.io/commands/ts.mrevrange/
func (*Compat) TSQueryIndex ¶
func (c *Compat) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
TSQueryIndex - Returns all the keys matching the filter expression. For more information - https://redis.io/commands/ts.queryindex/
func (*Compat) TSRange ¶
func (c *Compat) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
TSRange - Returns a range of samples from a time-series key. For more information - https://redis.io/commands/ts.range/
func (*Compat) TSRangeWithArgs ¶
func (c *Compat) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *TSRangeOptions) *TSTimestampValueSliceCmd
TSRangeWithArgs - Returns a range of samples from a time-series key with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, Count, Align, Aggregator, BucketDuration, BucketTimestamp and Empty. For more information - https://redis.io/commands/ts.range/
func (*Compat) TSRevRange ¶
func (c *Compat) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
TSRevRange - Returns a range of samples from a time-series key in reverse order. For more information - https://redis.io/commands/ts.revrange/
func (*Compat) TSRevRangeWithArgs ¶
func (c *Compat) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *TSRevRangeOptions) *TSTimestampValueSliceCmd
TSRevRangeWithArgs - Returns a range of samples from a time-series key in reverse order with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, Count, Align, Aggregator, BucketDuration, BucketTimestamp and Empty. For more information - https://redis.io/commands/ts.revrange/
func (*Compat) TopKAdd ¶
func (c *Compat) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
func (*Compat) TopKCount ¶
func (c *Compat) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
func (*Compat) TopKIncrBy ¶
func (c *Compat) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
func (*Compat) TopKList ¶
func (c *Compat) TopKList(ctx context.Context, key string) *StringSliceCmd
func (*Compat) TopKListWithCount ¶
func (c *Compat) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
func (*Compat) TopKQuery ¶
func (c *Compat) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Compat) TopKReserve ¶
func (*Compat) TopKReserveWithOptions ¶
func (*Compat) TxPipeline ¶ added in v1.0.44
func (*Compat) TxPipelined ¶ added in v1.0.44
func (*Compat) XAutoClaim ¶
func (c *Compat) XAutoClaim(ctx context.Context, a XAutoClaimArgs) *XAutoClaimCmd
func (*Compat) XAutoClaimJustID ¶
func (c *Compat) XAutoClaimJustID(ctx context.Context, a XAutoClaimArgs) *XAutoClaimJustIDCmd
func (*Compat) XClaim ¶
func (c *Compat) XClaim(ctx context.Context, a XClaimArgs) *XMessageSliceCmd
func (*Compat) XClaimJustID ¶
func (c *Compat) XClaimJustID(ctx context.Context, a XClaimArgs) *StringSliceCmd
func (*Compat) XGroupCreate ¶
func (*Compat) XGroupCreateConsumer ¶
func (*Compat) XGroupCreateMkStream ¶
func (*Compat) XGroupDelConsumer ¶
func (*Compat) XGroupDestroy ¶
func (*Compat) XGroupSetID ¶
func (*Compat) XInfoConsumers ¶
func (c *Compat) XInfoConsumers(ctx context.Context, key, group string) *XInfoConsumersCmd
func (*Compat) XInfoGroups ¶
func (c *Compat) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
func (*Compat) XInfoStream ¶
func (c *Compat) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
func (*Compat) XInfoStreamFull ¶
func (*Compat) XPending ¶
func (c *Compat) XPending(ctx context.Context, stream, group string) *XPendingCmd
func (*Compat) XPendingExt ¶
func (c *Compat) XPendingExt(ctx context.Context, a XPendingExtArgs) *XPendingExtCmd
func (*Compat) XRange ¶
func (c *Compat) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
func (*Compat) XReadGroup ¶
func (c *Compat) XReadGroup(ctx context.Context, a XReadGroupArgs) *XStreamSliceCmd
func (*Compat) XReadStreams ¶
func (c *Compat) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
func (*Compat) XRevRange ¶
func (c *Compat) XRevRange(ctx context.Context, stream, stop, start string) *XMessageSliceCmd
func (*Compat) XRevRangeN ¶
func (*Compat) XTrimMaxLen ¶
XTrimMaxLen No `~` rules are used, `limit` cannot be used. cmd: XTRIM key MAXLEN maxLen
func (*Compat) XTrimMaxLenApprox ¶
XTrimMaxLenApprox LIMIT has a bug, please confirm it and use it. issue: https://github.com/redis/redis/issues/9046 cmd: XTRIM key MAXLEN ~ maxLen LIMIT limit
func (*Compat) XTrimMinID ¶
XTrimMinID No `~` rules are used, `limit` cannot be used. cmd: XTRIM key MINID minID
func (*Compat) XTrimMinIDApprox ¶
func (c *Compat) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
XTrimMinIDApprox LIMIT has a bug, please confirm it and use it. issue: https://github.com/redis/redis/issues/9046 cmd: XTRIM key MINID ~ minID LIMIT limit
func (*Compat) ZAddArgsIncr ¶
func (*Compat) ZDiffStore ¶
func (*Compat) ZDiffWithScores ¶
func (*Compat) ZInterCard ¶
func (*Compat) ZInterStore ¶
func (*Compat) ZInterWithScores ¶
func (*Compat) ZRandMember ¶
func (*Compat) ZRandMemberWithScores ¶
func (*Compat) ZRangeArgs ¶
func (c *Compat) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
func (*Compat) ZRangeArgsWithScores ¶
func (c *Compat) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
func (*Compat) ZRangeByLex ¶
func (*Compat) ZRangeByScore ¶
func (*Compat) ZRangeByScoreWithScores ¶
func (*Compat) ZRangeStore ¶
func (*Compat) ZRangeWithScores ¶
func (*Compat) ZRankWithScore ¶
func (c *Compat) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
func (*Compat) ZRemRangeByLex ¶
func (*Compat) ZRemRangeByRank ¶
func (*Compat) ZRemRangeByScore ¶
func (*Compat) ZRevRangeByLex ¶
func (*Compat) ZRevRangeByScore ¶
func (*Compat) ZRevRangeByScoreWithScores ¶
func (*Compat) ZRevRangeWithScores ¶
func (*Compat) ZRevRankWithScore ¶
func (c *Compat) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
func (*Compat) ZUnionStore ¶
type CoreCmdable ¶ added in v1.0.44
type CoreCmdable interface { Command(ctx context.Context) *CommandsInfoCmd CommandList(ctx context.Context, filter FilterBy) *StringSliceCmd CommandGetKeys(ctx context.Context, commands ...any) *StringSliceCmd CommandGetKeysAndFlags(ctx context.Context, commands ...any) *KeyFlagsCmd ClientGetName(ctx context.Context) *StringCmd Echo(ctx context.Context, message any) *StringCmd Ping(ctx context.Context) *StatusCmd Quit(ctx context.Context) *StatusCmd Del(ctx context.Context, keys ...string) *IntCmd Unlink(ctx context.Context, keys ...string) *IntCmd Dump(ctx context.Context, key string) *StringCmd Exists(ctx context.Context, keys ...string) *IntCmd Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd ExpireTime(ctx context.Context, key string) *DurationCmd ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd Keys(ctx context.Context, pattern string) *StringSliceCmd Migrate(ctx context.Context, host string, port int64, key string, db int64, timeout time.Duration) *StatusCmd Move(ctx context.Context, key string, db int64) *BoolCmd ObjectRefCount(ctx context.Context, key string) *IntCmd ObjectEncoding(ctx context.Context, key string) *StringCmd ObjectIdleTime(ctx context.Context, key string) *DurationCmd Persist(ctx context.Context, key string) *BoolCmd PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd PExpireTime(ctx context.Context, key string) *DurationCmd PTTL(ctx context.Context, key string) *DurationCmd RandomKey(ctx context.Context) *StringCmd Rename(ctx context.Context, key, newkey string) *StatusCmd RenameNX(ctx context.Context, key, newkey string) *BoolCmd Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd Sort(ctx context.Context, key string, sort Sort) *StringSliceCmd SortRO(ctx context.Context, key string, sort Sort) *StringSliceCmd SortStore(ctx context.Context, key, store string, sort Sort) *IntCmd SortInterfaces(ctx context.Context, key string, sort Sort) *SliceCmd Touch(ctx context.Context, keys ...string) *IntCmd TTL(ctx context.Context, key string) *DurationCmd Type(ctx context.Context, key string) *StatusCmd Append(ctx context.Context, key, value string) *IntCmd Decr(ctx context.Context, key string) *IntCmd DecrBy(ctx context.Context, key string, decrement int64) *IntCmd Get(ctx context.Context, key string) *StringCmd GetRange(ctx context.Context, key string, start, end int64) *StringCmd GetSet(ctx context.Context, key string, value any) *StringCmd GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd GetDel(ctx context.Context, key string) *StringCmd Incr(ctx context.Context, key string) *IntCmd IncrBy(ctx context.Context, key string, value int64) *IntCmd IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd MGet(ctx context.Context, keys ...string) *SliceCmd MSet(ctx context.Context, values ...any) *StatusCmd MSetNX(ctx context.Context, values ...any) *BoolCmd Set(ctx context.Context, key string, value any, expiration time.Duration) *StatusCmd SetArgs(ctx context.Context, key string, value any, a SetArgs) *StatusCmd SetEX(ctx context.Context, key string, value any, expiration time.Duration) *StatusCmd SetNX(ctx context.Context, key string, value any, expiration time.Duration) *BoolCmd SetXX(ctx context.Context, key string, value any, expiration time.Duration) *BoolCmd SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd StrLen(ctx context.Context, key string) *IntCmd Copy(ctx context.Context, sourceKey string, destKey string, db int64, replace bool) *IntCmd GetBit(ctx context.Context, key string, offset int64) *IntCmd SetBit(ctx context.Context, key string, offset int64, value int64) *IntCmd BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd BitOpNot(ctx context.Context, destKey string, key string) *IntCmd BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd BitPosSpan(ctx context.Context, key string, bit int64, start, end int64, span string) *IntCmd BitField(ctx context.Context, key string, args ...any) *IntSliceCmd BitFieldRO(ctx context.Context, key string, values ...any) *IntSliceCmd Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd HDel(ctx context.Context, key string, fields ...string) *IntCmd HExists(ctx context.Context, key, field string) *BoolCmd HGet(ctx context.Context, key, field string) *StringCmd HGetAll(ctx context.Context, key string) *StringStringMapCmd HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd HKeys(ctx context.Context, key string) *StringSliceCmd HLen(ctx context.Context, key string) *IntCmd HMGet(ctx context.Context, key string, fields ...string) *SliceCmd HSet(ctx context.Context, key string, values ...any) *IntCmd HMSet(ctx context.Context, key string, values ...any) *BoolCmd HSetNX(ctx context.Context, key, field string, value any) *BoolCmd HVals(ctx context.Context, key string) *StringSliceCmd HRandField(ctx context.Context, key string, count int64) *StringSliceCmd HRandFieldWithValues(ctx context.Context, key string, count int64) *KeyValueSliceCmd HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, keys ...string) *KeyValuesCmd BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmd // TODO LCS(ctx context.Context, q *LCSQuery) *LCSCmd LIndex(ctx context.Context, key string, index int64) *StringCmd LInsert(ctx context.Context, key, op string, pivot, value any) *IntCmd LInsertBefore(ctx context.Context, key string, pivot, value any) *IntCmd LInsertAfter(ctx context.Context, key string, pivot, value any) *IntCmd LLen(ctx context.Context, key string) *IntCmd LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd LPop(ctx context.Context, key string) *StringCmd LPopCount(ctx context.Context, key string, count int64) *StringSliceCmd LPos(ctx context.Context, key string, value string, args LPosArgs) *IntCmd LPosCount(ctx context.Context, key string, value string, count int64, args LPosArgs) *IntSliceCmd LPush(ctx context.Context, key string, values ...any) *IntCmd LPushX(ctx context.Context, key string, values ...any) *IntCmd LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd LRem(ctx context.Context, key string, count int64, value any) *IntCmd LSet(ctx context.Context, key string, index int64, value any) *StatusCmd LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd RPop(ctx context.Context, key string) *StringCmd RPopCount(ctx context.Context, key string, count int64) *StringSliceCmd RPopLPush(ctx context.Context, source, destination string) *StringCmd RPush(ctx context.Context, key string, values ...any) *IntCmd RPushX(ctx context.Context, key string, values ...any) *IntCmd LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd BLMove(ctx context.Context, source, destination, srcpos, destpos string, timeout time.Duration) *StringCmd SAdd(ctx context.Context, key string, members ...any) *IntCmd SCard(ctx context.Context, key string) *IntCmd SDiff(ctx context.Context, keys ...string) *StringSliceCmd SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd SInter(ctx context.Context, keys ...string) *StringSliceCmd SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd SIsMember(ctx context.Context, key string, member any) *BoolCmd SMIsMember(ctx context.Context, key string, members ...any) *BoolSliceCmd SMembers(ctx context.Context, key string) *StringSliceCmd SMembersMap(ctx context.Context, key string) *StringStructMapCmd SMove(ctx context.Context, source, destination string, member any) *BoolCmd SPop(ctx context.Context, key string) *StringCmd SPopN(ctx context.Context, key string, count int64) *StringSliceCmd SRandMember(ctx context.Context, key string) *StringCmd SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd SRem(ctx context.Context, key string, members ...any) *IntCmd SUnion(ctx context.Context, keys ...string) *StringSliceCmd SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd XAdd(ctx context.Context, a XAddArgs) *StringCmd XDel(ctx context.Context, stream string, ids ...string) *IntCmd XLen(ctx context.Context, stream string) *IntCmd XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd XRevRange(ctx context.Context, stream string, start, stop string) *XMessageSliceCmd XRevRangeN(ctx context.Context, stream string, start, stop string, count int64) *XMessageSliceCmd XRead(ctx context.Context, a XReadArgs) *XStreamSliceCmd XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd XGroupDestroy(ctx context.Context, stream, group string) *IntCmd XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd XReadGroup(ctx context.Context, a XReadGroupArgs) *XStreamSliceCmd XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd XPending(ctx context.Context, stream, group string) *XPendingCmd XPendingExt(ctx context.Context, a XPendingExtArgs) *XPendingExtCmd XClaim(ctx context.Context, a XClaimArgs) *XMessageSliceCmd XClaimJustID(ctx context.Context, a XClaimArgs) *StringSliceCmd XAutoClaim(ctx context.Context, a XAutoClaimArgs) *XAutoClaimCmd XAutoClaimJustID(ctx context.Context, a XAutoClaimArgs) *XAutoClaimJustIDCmd XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd XTrimMinID(ctx context.Context, key string, minID string) *IntCmd XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd XInfoStream(ctx context.Context, key string) *XInfoStreamCmd XInfoStreamFull(ctx context.Context, key string, count int64) *XInfoStreamFullCmd XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, keys ...string) *ZSliceWithKeyCmd ZAdd(ctx context.Context, key string, members ...Z) *IntCmd ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd ZCard(ctx context.Context, key string) *IntCmd ZCount(ctx context.Context, key, min, max string) *IntCmd ZLexCount(ctx context.Context, key, min, max string) *IntCmd ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd ZInter(ctx context.Context, store ZStore) *StringSliceCmd ZInterWithScores(ctx context.Context, store ZStore) *ZSliceCmd ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd ZInterStore(ctx context.Context, destination string, store ZStore) *IntCmd ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd ZRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd ZRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd ZRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd ZRank(ctx context.Context, key, member string) *IntCmd ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd ZRem(ctx context.Context, key string, members ...any) *IntCmd ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd ZRevRangeByScore(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd ZRevRangeByLex(ctx context.Context, key string, opt ZRangeBy) *StringSliceCmd ZRevRangeByScoreWithScores(ctx context.Context, key string, opt ZRangeBy) *ZSliceCmd ZRevRank(ctx context.Context, key, member string) *IntCmd ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd ZScore(ctx context.Context, key, member string) *FloatCmd ZUnionStore(ctx context.Context, dest string, store ZStore) *IntCmd ZRandMember(ctx context.Context, key string, count int64) *StringSliceCmd ZRandMemberWithScores(ctx context.Context, key string, count int64) *ZSliceCmd ZUnion(ctx context.Context, store ZStore) *StringSliceCmd ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd ZDiff(ctx context.Context, keys ...string) *StringSliceCmd ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd PFAdd(ctx context.Context, key string, els ...any) *IntCmd PFCount(ctx context.Context, keys ...string) *IntCmd PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd BgRewriteAOF(ctx context.Context) *StatusCmd BgSave(ctx context.Context) *StatusCmd ClientKill(ctx context.Context, ipPort string) *StatusCmd ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd ClientList(ctx context.Context) *StringCmd ClientInfo(ctx context.Context) *ClientInfoCmd ClientPause(ctx context.Context, dur time.Duration) *BoolCmd ClientUnpause(ctx context.Context) *BoolCmd ClientID(ctx context.Context) *IntCmd ClientUnblock(ctx context.Context, id int64) *IntCmd ClientUnblockWithError(ctx context.Context, id int64) *IntCmd ConfigGet(ctx context.Context, parameter string) *StringStringMapCmd ConfigResetStat(ctx context.Context) *StatusCmd ConfigSet(ctx context.Context, parameter, value string) *StatusCmd ConfigRewrite(ctx context.Context) *StatusCmd DBSize(ctx context.Context) *IntCmd FlushAll(ctx context.Context) *StatusCmd FlushAllAsync(ctx context.Context) *StatusCmd FlushDB(ctx context.Context) *StatusCmd FlushDBAsync(ctx context.Context) *StatusCmd Info(ctx context.Context, section ...string) *StringCmd LastSave(ctx context.Context) *IntCmd Save(ctx context.Context) *StatusCmd Shutdown(ctx context.Context) *StatusCmd ShutdownSave(ctx context.Context) *StatusCmd ShutdownNoSave(ctx context.Context) *StatusCmd SlaveOf(ctx context.Context, host, port string) *StatusCmd // TODO SlowLogGet(ctx context.Context, num int64) *SlowLogCmd Time(ctx context.Context) *TimeCmd DebugObject(ctx context.Context, key string) *StringCmd ReadOnly(ctx context.Context) *StatusCmd ReadWrite(ctx context.Context) *StatusCmd MemoryUsage(ctx context.Context, key string, samples ...int64) *IntCmd Eval(ctx context.Context, script string, keys []string, args ...any) *Cmd EvalSha(ctx context.Context, sha1 string, keys []string, args ...any) *Cmd EvalRO(ctx context.Context, script string, keys []string, args ...any) *Cmd EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...any) *Cmd ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd ScriptFlush(ctx context.Context) *StatusCmd ScriptKill(ctx context.Context) *StatusCmd ScriptLoad(ctx context.Context, script string) *StringCmd FunctionLoad(ctx context.Context, code string) *StringCmd FunctionLoadReplace(ctx context.Context, code string) *StringCmd FunctionDelete(ctx context.Context, libName string) *StringCmd FunctionFlush(ctx context.Context) *StringCmd FunctionKill(ctx context.Context) *StringCmd FunctionFlushAsync(ctx context.Context) *StringCmd FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd FunctionDump(ctx context.Context) *StringCmd FunctionRestore(ctx context.Context, libDump string) *StringCmd // TODO FunctionStats(ctx context.Context) *FunctionStatsCmd FCall(ctx context.Context, function string, keys []string, args ...any) *Cmd FCallRO(ctx context.Context, function string, keys []string, args ...any) *Cmd Publish(ctx context.Context, channel string, message any) *IntCmd SPublish(ctx context.Context, channel string, message any) *IntCmd PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd PubSubNumSub(ctx context.Context, channels ...string) *StringIntMapCmd PubSubNumPat(ctx context.Context) *IntCmd PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd PubSubShardNumSub(ctx context.Context, channels ...string) *StringIntMapCmd ClusterMyShardID(ctx context.Context) *StringCmd ClusterSlots(ctx context.Context) *ClusterSlotsCmd ClusterShards(ctx context.Context) *ClusterShardsCmd // TODO ClusterLinks(ctx context.Context) *ClusterLinksCmd ClusterNodes(ctx context.Context) *StringCmd ClusterMeet(ctx context.Context, host string, port int64) *StatusCmd ClusterForget(ctx context.Context, nodeID string) *StatusCmd ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd ClusterResetSoft(ctx context.Context) *StatusCmd ClusterResetHard(ctx context.Context) *StatusCmd ClusterInfo(ctx context.Context) *StringCmd ClusterKeySlot(ctx context.Context, key string) *IntCmd ClusterGetKeysInSlot(ctx context.Context, slot int64, count int64) *StringSliceCmd ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd ClusterCountKeysInSlot(ctx context.Context, slot int64) *IntCmd ClusterDelSlots(ctx context.Context, slots ...int64) *StatusCmd ClusterDelSlotsRange(ctx context.Context, min, max int64) *StatusCmd ClusterSaveConfig(ctx context.Context) *StatusCmd ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd ClusterFailover(ctx context.Context) *StatusCmd ClusterAddSlots(ctx context.Context, slots ...int64) *StatusCmd ClusterAddSlotsRange(ctx context.Context, min, max int64) *StatusCmd GeoAdd(ctx context.Context, key string, geoLocation ...GeoLocation) *IntCmd GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd GeoRadius(ctx context.Context, key string, longitude, latitude float64, query GeoRadiusQuery) *GeoLocationCmd GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, query GeoRadiusQuery) *IntCmd GeoRadiusByMember(ctx context.Context, key, member string, query GeoRadiusQuery) *GeoLocationCmd GeoRadiusByMemberStore(ctx context.Context, key, member string, query GeoRadiusQuery) *IntCmd GeoSearch(ctx context.Context, key string, q GeoSearchQuery) *StringSliceCmd GeoSearchLocation(ctx context.Context, key string, q GeoSearchLocationQuery) *GeoLocationCmd GeoSearchStore(ctx context.Context, key, store string, q GeoSearchStoreQuery) *IntCmd GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd ACLDryRun(ctx context.Context, username string, command ...any) *StringCmd ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd GearsCmdable ProbabilisticCmdable TimeseriesCmdable JSONCmdable SearchCmdable }
type CursorStats ¶ added in v1.0.50
type DurationCmd ¶
type DurationCmd struct {
// contains filtered or unexported fields
}
type FTAggregateApply ¶ added in v1.0.50
type FTAggregateGroupBy ¶ added in v1.0.50
type FTAggregateGroupBy struct { Fields []interface{} Reduce []FTAggregateReducer }
type FTAggregateLoad ¶ added in v1.0.50
type FTAggregateOptions ¶ added in v1.0.50
type FTAggregateOptions struct { Verbatim bool LoadAll bool Load []FTAggregateLoad Timeout int GroupBy []FTAggregateGroupBy SortBy []FTAggregateSortBy SortByMax int Apply []FTAggregateApply LimitOffset int Limit int Filter string WithCursor bool WithCursorOptions *FTAggregateWithCursor Params map[string]interface{} DialectVersion int }
type FTAggregateReducer ¶ added in v1.0.50
type FTAggregateReducer struct { Reducer SearchAggregator Args []interface{} As string }
Each AggregateReducer have different args. Please follow https://redis.io/docs/interact/search-and-query/search/aggregations/#supported-groupby-reducers for more information.
type FTAggregateResult ¶ added in v1.0.50
type FTAggregateResult struct { Total int Rows []AggregateRow }
type FTAggregateSortBy ¶ added in v1.0.50
type FTAggregateWithCursor ¶ added in v1.0.50
type FTAttribute ¶ added in v1.0.50
type FTCreateOptions ¶ added in v1.0.50
type FTDropIndexOptions ¶ added in v1.0.50
type FTDropIndexOptions struct {
DeleteDocs bool
}
type FTExplainOptions ¶ added in v1.0.50
type FTExplainOptions struct {
Dialect string
}
type FTFlatOptions ¶ added in v1.0.50
type FTHNSWOptions ¶ added in v1.0.50
type FTInfoCmd ¶ added in v1.0.50
type FTInfoCmd struct {
// contains filtered or unexported fields
}
type FTInfoResult ¶ added in v1.0.50
type FTInfoResult struct { IndexErrors IndexErrors `redis:"Index Errors"` Attributes []FTAttribute `redis:"attributes"` BytesPerRecordAvg string `redis:"bytes_per_record_avg"` Cleaning int `redis:"cleaning"` CursorStats CursorStats `redis:"cursor_stats"` DialectStats map[string]int `redis:"dialect_stats"` DocTableSizeMB float64 `redis:"doc_table_size_mb"` FieldStatistics []FieldStatistic `redis:"field statistics"` GCStats GCStats `redis:"gc_stats"` GeoshapesSzMB float64 `redis:"geoshapes_sz_mb"` HashIndexingFailures int `redis:"hash_indexing_failures"` IndexDefinition IndexDefinition `redis:"index_definition"` IndexName string `redis:"index_name"` IndexOptions []string `redis:"index_options"` Indexing int `redis:"indexing"` InvertedSzMB float64 `redis:"inverted_sz_mb"` KeyTableSizeMB float64 `redis:"key_table_size_mb"` MaxDocID int `redis:"max_doc_id"` NumDocs int `redis:"num_docs"` NumRecords int `redis:"num_records"` NumTerms int `redis:"num_terms"` NumberOfUses int `redis:"number_of_uses"` OffsetBitsPerRecordAvg string `redis:"offset_bits_per_record_avg"` OffsetVectorsSzMB float64 `redis:"offset_vectors_sz_mb"` OffsetsPerTermAvg string `redis:"offsets_per_term_avg"` PercentIndexed float64 `redis:"percent_indexed"` RecordsPerDocAvg string `redis:"records_per_doc_avg"` SortableValuesSizeMB float64 `redis:"sortable_values_size_mb"` TagOverheadSzMB float64 `redis:"tag_overhead_sz_mb"` TextOverheadSzMB float64 `redis:"text_overhead_sz_mb"` TotalIndexMemorySzMB float64 `redis:"total_index_memory_sz_mb"` TotalIndexingTime int `redis:"total_indexing_time"` TotalInvertedIndexBlocks int `redis:"total_inverted_index_blocks"` VectorIndexSzMB float64 `redis:"vector_index_sz_mb"` }
type FTSearchCmd ¶ added in v1.0.50
type FTSearchCmd struct {
// contains filtered or unexported fields
}
type FTSearchFilter ¶ added in v1.0.50
type FTSearchGeoFilter ¶ added in v1.0.50
type FTSearchOptions ¶ added in v1.0.50
type FTSearchOptions struct { NoContent bool Verbatim bool NoStopWords bool WithScores bool WithPayloads bool WithSortKeys bool Filters []FTSearchFilter GeoFilter []FTSearchGeoFilter InKeys []interface{} InFields []interface{} Return []FTSearchReturn Slop int Timeout int InOrder bool Language string Expander string Scorer string ExplainScore bool Payload string SortBy []FTSearchSortBy SortByWithCount bool LimitOffset int Limit int Params map[string]interface{} DialectVersion int }
type FTSearchResult ¶ added in v1.0.50
type FTSearchReturn ¶ added in v1.0.50
type FTSearchSortBy ¶ added in v1.0.50
type FTSpellCheckCmd ¶ added in v1.0.50
type FTSpellCheckCmd struct {
// contains filtered or unexported fields
}
func (*FTSpellCheckCmd) Result ¶ added in v1.0.50
func (cmd *FTSpellCheckCmd) Result() ([]SpellCheckResult, error)
func (*FTSpellCheckCmd) SetRawVal ¶ added in v1.0.50
func (cmd *FTSpellCheckCmd) SetRawVal(rawVal any)
func (*FTSpellCheckCmd) Val ¶ added in v1.0.50
func (cmd *FTSpellCheckCmd) Val() []SpellCheckResult
type FTSpellCheckOptions ¶ added in v1.0.50
type FTSpellCheckOptions struct { Distance int Terms *FTSpellCheckTerms Dialect int }
type FTSpellCheckTerms ¶ added in v1.0.50
type FTSynDumpCmd ¶ added in v1.0.50
type FTSynDumpCmd struct {
// contains filtered or unexported fields
}
type FTSynDumpResult ¶ added in v1.0.50
type FTSynUpdateOptions ¶ added in v1.0.50
type FTSynUpdateOptions struct {
SkipInitialScan bool
}
type FTVectorArgs ¶ added in v1.0.50
type FTVectorArgs struct { FlatOptions *FTFlatOptions HNSWOptions *FTHNSWOptions }
type FieldSchema ¶ added in v1.0.50
type FieldSchema struct { FieldName string As string FieldType SearchFieldType Sortable bool UNF bool NoStem bool NoIndex bool PhoneticMatcher string Weight float64 Separator string CaseSensitive bool WithSuffixtrie bool VectorArgs *FTVectorArgs GeoShapeFieldType string IndexEmpty bool IndexMissing bool }
type FieldStatistic ¶ added in v1.0.50
type FieldStatistic struct { Identifier string Attribute string IndexErrors IndexErrors }
type FloatSliceCmd ¶
type FloatSliceCmd struct {
// contains filtered or unexported fields
}
type FunctionListCmd ¶
type FunctionListCmd struct {
// contains filtered or unexported fields
}
func (*FunctionListCmd) First ¶
func (cmd *FunctionListCmd) First() (*Library, error)
type FunctionListQuery ¶
type GCStats ¶ added in v1.0.50
type GCStats struct { BytesCollected int `redis:"bytes_collected"` TotalMsRun int `redis:"total_ms_run"` TotalCycles int `redis:"total_cycles"` AverageCycleTimeMs string `redis:"average_cycle_time_ms"` LastRunTimeMs int `redis:"last_run_time_ms"` GCNumericTreesMissed int `redis:"gc_numeric_trees_missed"` GCBlocksDenied int `redis:"gc_blocks_denied"` }
type GearsCmdable ¶
type GearsCmdable interface { TFunctionLoad(ctx context.Context, lib string) *StatusCmd TFunctionLoadArgs(ctx context.Context, lib string, options *TFunctionLoadOptions) *StatusCmd TFunctionDelete(ctx context.Context, libName string) *StatusCmd TFunctionList(ctx context.Context) *MapStringInterfaceSliceCmd TFunctionListArgs(ctx context.Context, options *TFunctionListOptions) *MapStringInterfaceSliceCmd TFCall(ctx context.Context, libName string, funcName string, numKeys int) *Cmd TFCallArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd }
Align with go-redis https://github.com/redis/go-redis/blob/f994ff1cd96299a5c8029ae3403af7b17ef06e8a/gears_commands.go#L9-L19
type GeoLocation ¶
type GeoLocation = rueidis.GeoLocation
type GeoLocationCmd ¶
type GeoLocationCmd struct {
// contains filtered or unexported fields
}
type GeoRadiusQuery ¶
type GeoRadiusQuery struct { Unit string Sort string Store string StoreDist string Radius float64 Count int64 WithCoord bool WithDist bool WithGeoHash bool }
GeoRadiusQuery is used with GeoRadius to query geospatial index.
type GeoSearchLocationQuery ¶
type GeoSearchLocationQuery struct { GeoSearchQuery WithCoord bool WithDist bool WithHash bool }
type GeoSearchQuery ¶
type GeoSearchQuery struct { Member string RadiusUnit string BoxUnit string Sort string Longitude float64 Latitude float64 Radius float64 BoxWidth float64 BoxHeight float64 Count int64 CountAny bool }
GeoSearchQuery is used for GEOSearch/GEOSearchStore command query.
type GeoSearchStoreQuery ¶
type GeoSearchStoreQuery struct { GeoSearchQuery // When using the StoreDist option, the command stores the items in a // sorted set populated with their distance from the center of the circle or box, // as a floating-point number, in the same unit specified for that shape. StoreDist bool }
type IndexDefinition ¶ added in v1.0.50
type IndexErrors ¶ added in v1.0.50
type IntPointerSliceCmd ¶
type IntPointerSliceCmd struct {
// contains filtered or unexported fields
}
type IntSliceCmd ¶
type IntSliceCmd struct {
// contains filtered or unexported fields
}
func (*IntSliceCmd) Err ¶
func (cmd *IntSliceCmd) Err() error
func (*IntSliceCmd) Result ¶
func (cmd *IntSliceCmd) Result() ([]int64, error)
func (*IntSliceCmd) SetErr ¶
func (cmd *IntSliceCmd) SetErr(err error)
func (*IntSliceCmd) SetVal ¶
func (cmd *IntSliceCmd) SetVal(val []int64)
func (*IntSliceCmd) Val ¶
func (cmd *IntSliceCmd) Val() []int64
type JSONArrIndexArgs ¶
type JSONArrTrimArgs ¶
type JSONCmd ¶
type JSONCmd struct {
// contains filtered or unexported fields
}
type JSONCmdable ¶
type JSONCmdable interface { JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, value ...interface{}) *IntSliceCmd JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd JSONClear(ctx context.Context, key, path string) *IntCmd JSONDebugMemory(ctx context.Context, key, path string) *IntCmd JSONDel(ctx context.Context, key, path string) *IntCmd JSONForget(ctx context.Context, key, path string) *IntCmd JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd JSONObjKeys(ctx context.Context, key, path string) *SliceCmd JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd JSONType(ctx context.Context, key, path string) *JSONSliceCmd }
type JSONGetArgs ¶
type JSONSetArgs ¶
type JSONSliceCmd ¶
type JSONSliceCmd struct {
// contains filtered or unexported fields
}
type KeyFlagsCmd ¶
type KeyFlagsCmd struct {
// contains filtered or unexported fields
}
type KeyValueSliceCmd ¶
type KeyValueSliceCmd struct {
// contains filtered or unexported fields
}
type KeyValuesCmd ¶
type KeyValuesCmd struct {
// contains filtered or unexported fields
}
func (*KeyValuesCmd) Err ¶
func (cmd *KeyValuesCmd) Err() error
func (*KeyValuesCmd) SetErr ¶
func (cmd *KeyValuesCmd) SetErr(err error)
func (*KeyValuesCmd) SetVal ¶
func (cmd *KeyValuesCmd) SetVal(key string, val []string)
func (*KeyValuesCmd) Val ¶
func (cmd *KeyValuesCmd) Val() (string, []string)
type MapMapStringInterfaceCmd ¶ added in v1.0.50
type MapMapStringInterfaceCmd struct {
// contains filtered or unexported fields
}
func (*MapMapStringInterfaceCmd) Err ¶ added in v1.0.50
func (cmd *MapMapStringInterfaceCmd) Err() error
func (*MapMapStringInterfaceCmd) RawVal ¶ added in v1.0.50
func (cmd *MapMapStringInterfaceCmd) RawVal() any
func (*MapMapStringInterfaceCmd) Result ¶ added in v1.0.50
func (cmd *MapMapStringInterfaceCmd) Result() (T, error)
func (*MapMapStringInterfaceCmd) SetErr ¶ added in v1.0.50
func (cmd *MapMapStringInterfaceCmd) SetErr(err error)
func (*MapMapStringInterfaceCmd) SetRawVal ¶ added in v1.0.50
func (cmd *MapMapStringInterfaceCmd) SetRawVal(rawVal any)
type MapStringIntCmd ¶
type MapStringIntCmd struct {
// contains filtered or unexported fields
}
type MapStringInterfaceCmd ¶
type MapStringInterfaceCmd struct {
// contains filtered or unexported fields
}
func (*MapStringInterfaceCmd) RawVal ¶ added in v1.0.50
func (cmd *MapStringInterfaceCmd) RawVal() any
type MapStringInterfaceSliceCmd ¶
type MapStringInterfaceSliceCmd struct {
// contains filtered or unexported fields
}
func (*MapStringInterfaceSliceCmd) RawVal ¶ added in v1.0.50
func (cmd *MapStringInterfaceSliceCmd) RawVal() any
func (*MapStringInterfaceSliceCmd) Result ¶
func (cmd *MapStringInterfaceSliceCmd) Result() (T, error)
func (*MapStringInterfaceSliceCmd) SetErr ¶ added in v1.0.32
func (cmd *MapStringInterfaceSliceCmd) SetErr(err error)
type MapStringSliceInterfaceCmd ¶
type MapStringSliceInterfaceCmd struct {
// contains filtered or unexported fields
}
func (*MapStringSliceInterfaceCmd) RawVal ¶ added in v1.0.50
func (cmd *MapStringSliceInterfaceCmd) RawVal() any
func (*MapStringSliceInterfaceCmd) Result ¶
func (cmd *MapStringSliceInterfaceCmd) Result() (T, error)
func (*MapStringSliceInterfaceCmd) SetErr ¶
func (cmd *MapStringSliceInterfaceCmd) SetErr(err error)
type Message ¶ added in v1.0.42
Message received as result of a PUBLISH command issued by another client.
type ModuleLoadexConfig ¶ added in v1.0.52
ModuleLoadexConfig struct is used to specify the arguments for the MODULE LOADEX command of redis. `MODULE LOADEX path [CONFIG name value [CONFIG name value ...]] [ARGS args [args ...]]`
type Pipeline ¶ added in v1.0.44
type Pipeline struct {
// contains filtered or unexported fields
}
Pipeline implements pipelining as described in http://redis.io/topics/pipelining. Please note: it is not safe for concurrent use by multiple goroutines.
func (*Pipeline) BFInfoCapacity ¶ added in v1.0.44
func (*Pipeline) BFInfoExpansion ¶ added in v1.0.44
func (*Pipeline) BFInfoFilters ¶ added in v1.0.44
func (*Pipeline) BFInfoItems ¶ added in v1.0.44
func (*Pipeline) BFInfoSize ¶ added in v1.0.44
func (*Pipeline) BFInsert ¶ added in v1.0.44
func (c *Pipeline) BFInsert(ctx context.Context, key string, options *BFInsertOptions, elements ...interface{}) *BoolSliceCmd
func (*Pipeline) BFLoadChunk ¶ added in v1.0.44
func (*Pipeline) BFMAdd ¶ added in v1.0.44
func (c *Pipeline) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Pipeline) BFMExists ¶ added in v1.0.44
func (c *Pipeline) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Pipeline) BFReserveExpansion ¶ added in v1.0.44
func (*Pipeline) BFReserveNonScaling ¶ added in v1.0.44
func (*Pipeline) BFReserveWithArgs ¶ added in v1.0.44
func (*Pipeline) BFScanDump ¶ added in v1.0.44
func (*Pipeline) BRPopLPush ¶ added in v1.0.44
func (*Pipeline) BgRewriteAOF ¶ added in v1.0.44
func (*Pipeline) BitFieldRO ¶ added in v1.0.52
func (*Pipeline) BitPosSpan ¶ added in v1.0.44
func (*Pipeline) CFInsert ¶ added in v1.0.44
func (c *Pipeline) CFInsert(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *BoolSliceCmd
func (*Pipeline) CFInsertNX ¶ added in v1.0.44
func (c *Pipeline) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *IntSliceCmd
func (*Pipeline) CFLoadChunk ¶ added in v1.0.44
func (*Pipeline) CFMExists ¶ added in v1.0.44
func (c *Pipeline) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Pipeline) CFReserveBucketSize ¶ added in v1.0.44
func (*Pipeline) CFReserveExpansion ¶ added in v1.0.44
func (*Pipeline) CFReserveMaxIterations ¶ added in v1.0.44
func (*Pipeline) CFReserveWithArgs ¶ added in v1.0.44
func (*Pipeline) CFScanDump ¶ added in v1.0.44
func (*Pipeline) CMSIncrBy ¶ added in v1.0.44
func (c *Pipeline) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
func (*Pipeline) CMSInfo ¶ added in v1.0.44
func (c *Pipeline) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
func (*Pipeline) CMSInitByDim ¶ added in v1.0.44
func (*Pipeline) CMSInitByProb ¶ added in v1.0.44
func (*Pipeline) CMSMergeWithWeight ¶ added in v1.0.44
func (*Pipeline) CMSQuery ¶ added in v1.0.44
func (c *Pipeline) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
func (*Pipeline) ClientGetName ¶ added in v1.0.44
func (*Pipeline) ClientInfo ¶ added in v1.0.52
func (c *Pipeline) ClientInfo(ctx context.Context) *ClientInfoCmd
func (*Pipeline) ClientKill ¶ added in v1.0.44
func (*Pipeline) ClientKillByFilter ¶ added in v1.0.44
func (*Pipeline) ClientList ¶ added in v1.0.44
func (*Pipeline) ClientPause ¶ added in v1.0.44
func (*Pipeline) ClientUnblock ¶ added in v1.0.44
func (*Pipeline) ClientUnblockWithError ¶ added in v1.0.44
func (*Pipeline) ClientUnpause ¶ added in v1.0.44
func (*Pipeline) ClusterAddSlots ¶ added in v1.0.44
func (*Pipeline) ClusterAddSlotsRange ¶ added in v1.0.44
func (*Pipeline) ClusterCountFailureReports ¶ added in v1.0.44
func (*Pipeline) ClusterCountKeysInSlot ¶ added in v1.0.44
func (*Pipeline) ClusterDelSlots ¶ added in v1.0.44
func (*Pipeline) ClusterDelSlotsRange ¶ added in v1.0.44
func (*Pipeline) ClusterFailover ¶ added in v1.0.44
func (*Pipeline) ClusterForget ¶ added in v1.0.44
func (*Pipeline) ClusterGetKeysInSlot ¶ added in v1.0.44
func (*Pipeline) ClusterInfo ¶ added in v1.0.44
func (*Pipeline) ClusterKeySlot ¶ added in v1.0.44
func (*Pipeline) ClusterMeet ¶ added in v1.0.44
func (*Pipeline) ClusterMyShardID ¶ added in v1.0.52
func (*Pipeline) ClusterNodes ¶ added in v1.0.44
func (*Pipeline) ClusterReplicate ¶ added in v1.0.44
func (*Pipeline) ClusterResetHard ¶ added in v1.0.44
func (*Pipeline) ClusterResetSoft ¶ added in v1.0.44
func (*Pipeline) ClusterSaveConfig ¶ added in v1.0.44
func (*Pipeline) ClusterShards ¶ added in v1.0.44
func (c *Pipeline) ClusterShards(ctx context.Context) *ClusterShardsCmd
func (*Pipeline) ClusterSlaves ¶ added in v1.0.44
func (c *Pipeline) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
func (*Pipeline) ClusterSlots ¶ added in v1.0.44
func (c *Pipeline) ClusterSlots(ctx context.Context) *ClusterSlotsCmd
func (*Pipeline) Command ¶ added in v1.0.44
func (c *Pipeline) Command(ctx context.Context) *CommandsInfoCmd
func (*Pipeline) CommandGetKeys ¶ added in v1.0.44
func (c *Pipeline) CommandGetKeys(ctx context.Context, commands ...any) *StringSliceCmd
func (*Pipeline) CommandGetKeysAndFlags ¶ added in v1.0.44
func (c *Pipeline) CommandGetKeysAndFlags(ctx context.Context, commands ...any) *KeyFlagsCmd
func (*Pipeline) CommandList ¶ added in v1.0.44
func (c *Pipeline) CommandList(ctx context.Context, filter FilterBy) *StringSliceCmd
func (*Pipeline) ConfigGet ¶ added in v1.0.44
func (c *Pipeline) ConfigGet(ctx context.Context, parameter string) *StringStringMapCmd
func (*Pipeline) ConfigResetStat ¶ added in v1.0.44
func (*Pipeline) ConfigRewrite ¶ added in v1.0.44
func (*Pipeline) DebugObject ¶ added in v1.0.44
func (*Pipeline) Discard ¶ added in v1.0.44
func (c *Pipeline) Discard()
Discard resets the pipeline and discards queued commands.
func (*Pipeline) Exec ¶ added in v1.0.44
Exec executes all previously queued commands using one client-server roundtrip.
Exec always returns list of commands and error of the first failed command if any.
func (*Pipeline) ExpireTime ¶ added in v1.0.44
func (c *Pipeline) ExpireTime(ctx context.Context, key string) *DurationCmd
func (*Pipeline) FTAggregate ¶ added in v1.0.50
func (*Pipeline) FTAggregateWithArgs ¶ added in v1.0.50
func (c *Pipeline) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
func (*Pipeline) FTAliasAdd ¶ added in v1.0.50
func (*Pipeline) FTAliasDel ¶ added in v1.0.50
func (*Pipeline) FTAliasUpdate ¶ added in v1.0.50
func (*Pipeline) FTConfigGet ¶ added in v1.0.50
func (c *Pipeline) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
func (*Pipeline) FTConfigSet ¶ added in v1.0.50
func (*Pipeline) FTCreate ¶ added in v1.0.50
func (c *Pipeline) FTCreate(ctx context.Context, index string, options *FTCreateOptions, schema ...*FieldSchema) *StatusCmd
func (*Pipeline) FTCursorDel ¶ added in v1.0.50
func (*Pipeline) FTCursorRead ¶ added in v1.0.50
func (*Pipeline) FTDictDump ¶ added in v1.0.50
func (c *Pipeline) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
func (*Pipeline) FTDropIndex ¶ added in v1.0.50
func (*Pipeline) FTDropIndexWithArgs ¶ added in v1.0.50
func (*Pipeline) FTExplainWithArgs ¶ added in v1.0.50
func (*Pipeline) FTSearchWithArgs ¶ added in v1.0.50
func (c *Pipeline) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
func (*Pipeline) FTSpellCheck ¶ added in v1.0.50
func (*Pipeline) FTSpellCheckWithArgs ¶ added in v1.0.50
func (c *Pipeline) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
func (*Pipeline) FTSynDump ¶ added in v1.0.50
func (c *Pipeline) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
func (*Pipeline) FTSynUpdate ¶ added in v1.0.50
func (*Pipeline) FTSynUpdateWithArgs ¶ added in v1.0.50
func (*Pipeline) FT_List ¶ added in v1.0.50
func (c *Pipeline) FT_List(ctx context.Context) *StringSliceCmd
func (*Pipeline) FlushAllAsync ¶ added in v1.0.44
func (*Pipeline) FlushDBAsync ¶ added in v1.0.44
func (*Pipeline) FunctionDelete ¶ added in v1.0.44
func (*Pipeline) FunctionDump ¶ added in v1.0.44
func (*Pipeline) FunctionFlush ¶ added in v1.0.44
func (*Pipeline) FunctionFlushAsync ¶ added in v1.0.44
func (*Pipeline) FunctionKill ¶ added in v1.0.44
func (*Pipeline) FunctionList ¶ added in v1.0.44
func (c *Pipeline) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
func (*Pipeline) FunctionLoad ¶ added in v1.0.44
func (*Pipeline) FunctionLoadReplace ¶ added in v1.0.44
func (*Pipeline) FunctionRestore ¶ added in v1.0.44
func (*Pipeline) GeoRadius ¶ added in v1.0.44
func (c *Pipeline) GeoRadius(ctx context.Context, key string, longitude, latitude float64, query GeoRadiusQuery) *GeoLocationCmd
func (*Pipeline) GeoRadiusByMember ¶ added in v1.0.44
func (c *Pipeline) GeoRadiusByMember(ctx context.Context, key, member string, query GeoRadiusQuery) *GeoLocationCmd
func (*Pipeline) GeoRadiusByMemberStore ¶ added in v1.0.44
func (*Pipeline) GeoRadiusStore ¶ added in v1.0.44
func (*Pipeline) GeoSearch ¶ added in v1.0.44
func (c *Pipeline) GeoSearch(ctx context.Context, key string, q GeoSearchQuery) *StringSliceCmd
func (*Pipeline) GeoSearchLocation ¶ added in v1.0.44
func (c *Pipeline) GeoSearchLocation(ctx context.Context, key string, q GeoSearchLocationQuery) *GeoLocationCmd
func (*Pipeline) GeoSearchStore ¶ added in v1.0.44
func (*Pipeline) HExpireAtWithArgs ¶ added in v1.0.45
func (c *Pipeline) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Pipeline) HExpireTime ¶ added in v1.0.45
func (*Pipeline) HExpireWithArgs ¶ added in v1.0.45
func (c *Pipeline) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Pipeline) HGetAll ¶ added in v1.0.44
func (c *Pipeline) HGetAll(ctx context.Context, key string) *StringStringMapCmd
func (*Pipeline) HIncrByFloat ¶ added in v1.0.44
func (*Pipeline) HKeys ¶ added in v1.0.44
func (c *Pipeline) HKeys(ctx context.Context, key string) *StringSliceCmd
func (*Pipeline) HPExpireAt ¶ added in v1.0.45
func (*Pipeline) HPExpireAtWithArgs ¶ added in v1.0.45
func (c *Pipeline) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Pipeline) HPExpireTime ¶ added in v1.0.45
func (*Pipeline) HPExpireWithArgs ¶ added in v1.0.45
func (c *Pipeline) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (*Pipeline) HRandField ¶ added in v1.0.44
func (*Pipeline) HRandFieldWithValues ¶ added in v1.0.44
func (*Pipeline) HScanNoValues ¶ added in v1.0.52
func (*Pipeline) HVals ¶ added in v1.0.44
func (c *Pipeline) HVals(ctx context.Context, key string) *StringSliceCmd
func (*Pipeline) IncrByFloat ¶ added in v1.0.44
func (*Pipeline) JSONArrAppend ¶ added in v1.0.44
func (c *Pipeline) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
func (*Pipeline) JSONArrIndex ¶ added in v1.0.44
func (c *Pipeline) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
func (*Pipeline) JSONArrIndexWithArgs ¶ added in v1.0.44
func (c *Pipeline) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, value ...interface{}) *IntSliceCmd
func (*Pipeline) JSONArrInsert ¶ added in v1.0.44
func (*Pipeline) JSONArrLen ¶ added in v1.0.44
func (c *Pipeline) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
func (*Pipeline) JSONArrPop ¶ added in v1.0.44
func (*Pipeline) JSONArrTrim ¶ added in v1.0.44
func (c *Pipeline) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
func (*Pipeline) JSONArrTrimWithArgs ¶ added in v1.0.44
func (c *Pipeline) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
func (*Pipeline) JSONDebugMemory ¶ added in v1.0.44
func (*Pipeline) JSONForget ¶ added in v1.0.44
func (*Pipeline) JSONGetWithArgs ¶ added in v1.0.44
func (*Pipeline) JSONMSetArgs ¶ added in v1.0.44
func (c *Pipeline) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
func (*Pipeline) JSONNumIncrBy ¶ added in v1.0.44
func (*Pipeline) JSONObjKeys ¶ added in v1.0.44
func (*Pipeline) JSONObjLen ¶ added in v1.0.44
func (c *Pipeline) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*Pipeline) JSONSetMode ¶ added in v1.0.44
func (*Pipeline) JSONStrAppend ¶ added in v1.0.44
func (c *Pipeline) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
func (*Pipeline) JSONStrLen ¶ added in v1.0.44
func (c *Pipeline) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*Pipeline) JSONToggle ¶ added in v1.0.44
func (c *Pipeline) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
func (*Pipeline) JSONType ¶ added in v1.0.44
func (c *Pipeline) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
func (*Pipeline) Keys ¶ added in v1.0.44
func (c *Pipeline) Keys(ctx context.Context, pattern string) *StringSliceCmd
func (*Pipeline) LInsertAfter ¶ added in v1.0.44
func (*Pipeline) LInsertBefore ¶ added in v1.0.44
func (*Pipeline) MemoryUsage ¶ added in v1.0.44
func (*Pipeline) ModuleLoadex ¶ added in v1.0.52
func (c *Pipeline) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
func (*Pipeline) ObjectEncoding ¶ added in v1.0.44
func (*Pipeline) ObjectIdleTime ¶ added in v1.0.44
func (c *Pipeline) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
func (*Pipeline) ObjectRefCount ¶ added in v1.0.44
func (*Pipeline) PExpireTime ¶ added in v1.0.44
func (c *Pipeline) PExpireTime(ctx context.Context, key string) *DurationCmd
func (*Pipeline) PTTL ¶ added in v1.0.44
func (c *Pipeline) PTTL(ctx context.Context, key string) *DurationCmd
func (*Pipeline) PubSubChannels ¶ added in v1.0.44
func (c *Pipeline) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
func (*Pipeline) PubSubNumPat ¶ added in v1.0.44
func (*Pipeline) PubSubNumSub ¶ added in v1.0.44
func (c *Pipeline) PubSubNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
func (*Pipeline) PubSubShardChannels ¶ added in v1.0.44
func (c *Pipeline) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
func (*Pipeline) PubSubShardNumSub ¶ added in v1.0.44
func (c *Pipeline) PubSubShardNumSub(ctx context.Context, channels ...string) *StringIntMapCmd
func (*Pipeline) RestoreReplace ¶ added in v1.0.44
func (*Pipeline) SDiff ¶ added in v1.0.44
func (c *Pipeline) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
func (*Pipeline) SDiffStore ¶ added in v1.0.44
func (*Pipeline) SInter ¶ added in v1.0.44
func (c *Pipeline) SInter(ctx context.Context, keys ...string) *StringSliceCmd
func (*Pipeline) SInterCard ¶ added in v1.0.44
func (*Pipeline) SInterStore ¶ added in v1.0.44
func (*Pipeline) SMIsMember ¶ added in v1.0.44
func (*Pipeline) SMembers ¶ added in v1.0.44
func (c *Pipeline) SMembers(ctx context.Context, key string) *StringSliceCmd
func (*Pipeline) SMembersMap ¶ added in v1.0.44
func (c *Pipeline) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
func (*Pipeline) SRandMember ¶ added in v1.0.44
func (*Pipeline) SRandMemberN ¶ added in v1.0.44
func (*Pipeline) SUnion ¶ added in v1.0.44
func (c *Pipeline) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
func (*Pipeline) SUnionStore ¶ added in v1.0.44
func (*Pipeline) ScriptExists ¶ added in v1.0.44
func (c *Pipeline) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
func (*Pipeline) ScriptFlush ¶ added in v1.0.44
func (*Pipeline) ScriptKill ¶ added in v1.0.44
func (*Pipeline) ScriptLoad ¶ added in v1.0.44
func (*Pipeline) ShutdownNoSave ¶ added in v1.0.44
func (*Pipeline) ShutdownSave ¶ added in v1.0.44
func (*Pipeline) SortInterfaces ¶ added in v1.0.44
func (*Pipeline) TDigestAdd ¶ added in v1.0.44
func (*Pipeline) TDigestByRank ¶ added in v1.0.44
func (*Pipeline) TDigestByRevRank ¶ added in v1.0.44
func (*Pipeline) TDigestCDF ¶ added in v1.0.44
func (*Pipeline) TDigestCreate ¶ added in v1.0.44
func (*Pipeline) TDigestCreateWithCompression ¶ added in v1.0.44
func (*Pipeline) TDigestInfo ¶ added in v1.0.44
func (c *Pipeline) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
func (*Pipeline) TDigestMax ¶ added in v1.0.44
func (*Pipeline) TDigestMerge ¶ added in v1.0.44
func (*Pipeline) TDigestMin ¶ added in v1.0.44
func (*Pipeline) TDigestQuantile ¶ added in v1.0.44
func (*Pipeline) TDigestRank ¶ added in v1.0.44
func (*Pipeline) TDigestReset ¶ added in v1.0.44
func (*Pipeline) TDigestRevRank ¶ added in v1.0.44
func (*Pipeline) TDigestTrimmedMean ¶ added in v1.0.44
func (*Pipeline) TFCallASYNC ¶ added in v1.0.44
func (*Pipeline) TFCallASYNCArgs ¶ added in v1.0.44
func (*Pipeline) TFCallArgs ¶ added in v1.0.44
func (*Pipeline) TFunctionDelete ¶ added in v1.0.44
func (*Pipeline) TFunctionList ¶ added in v1.0.44
func (c *Pipeline) TFunctionList(ctx context.Context) *MapStringInterfaceSliceCmd
func (*Pipeline) TFunctionListArgs ¶ added in v1.0.44
func (c *Pipeline) TFunctionListArgs(ctx context.Context, options *TFunctionListOptions) *MapStringInterfaceSliceCmd
func (*Pipeline) TFunctionLoad ¶ added in v1.0.44
func (*Pipeline) TFunctionLoadArgs ¶ added in v1.0.44
func (*Pipeline) TSAddWithArgs ¶ added in v1.0.44
func (*Pipeline) TSCreateRule ¶ added in v1.0.44
func (*Pipeline) TSCreateRuleWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, bucketDuration int, options *TSCreateRuleOptions) *StatusCmd
func (*Pipeline) TSCreateWithArgs ¶ added in v1.0.44
func (*Pipeline) TSDecrByWithArgs ¶ added in v1.0.44
func (*Pipeline) TSDeleteRule ¶ added in v1.0.44
func (*Pipeline) TSGet ¶ added in v1.0.44
func (c *Pipeline) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
func (*Pipeline) TSGetWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
func (*Pipeline) TSIncrByWithArgs ¶ added in v1.0.44
func (*Pipeline) TSInfo ¶ added in v1.0.44
func (c *Pipeline) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
func (*Pipeline) TSInfoWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
func (*Pipeline) TSMAdd ¶ added in v1.0.44
func (c *Pipeline) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
func (*Pipeline) TSMGet ¶ added in v1.0.44
func (c *Pipeline) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
func (*Pipeline) TSMGetWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
func (*Pipeline) TSMRangeWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRangeOptions) *MapStringSliceInterfaceCmd
func (*Pipeline) TSMRevRange ¶ added in v1.0.44
func (*Pipeline) TSMRevRangeWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRevRangeOptions) *MapStringSliceInterfaceCmd
func (*Pipeline) TSQueryIndex ¶ added in v1.0.44
func (c *Pipeline) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
func (*Pipeline) TSRangeWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *TSRangeOptions) *TSTimestampValueSliceCmd
func (*Pipeline) TSRevRange ¶ added in v1.0.44
func (*Pipeline) TSRevRangeWithArgs ¶ added in v1.0.44
func (c *Pipeline) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *TSRevRangeOptions) *TSTimestampValueSliceCmd
func (*Pipeline) TTL ¶ added in v1.0.44
func (c *Pipeline) TTL(ctx context.Context, key string) *DurationCmd
func (*Pipeline) TopKAdd ¶ added in v1.0.44
func (c *Pipeline) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
func (*Pipeline) TopKCount ¶ added in v1.0.44
func (c *Pipeline) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
func (*Pipeline) TopKIncrBy ¶ added in v1.0.44
func (c *Pipeline) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
func (*Pipeline) TopKInfo ¶ added in v1.0.44
func (c *Pipeline) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
func (*Pipeline) TopKList ¶ added in v1.0.44
func (c *Pipeline) TopKList(ctx context.Context, key string) *StringSliceCmd
func (*Pipeline) TopKListWithCount ¶ added in v1.0.44
func (c *Pipeline) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
func (*Pipeline) TopKQuery ¶ added in v1.0.44
func (c *Pipeline) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
func (*Pipeline) TopKReserve ¶ added in v1.0.44
func (*Pipeline) TopKReserveWithOptions ¶ added in v1.0.44
func (*Pipeline) TxPipeline ¶ added in v1.0.44
func (*Pipeline) TxPipelined ¶ added in v1.0.44
func (*Pipeline) XAutoClaim ¶ added in v1.0.44
func (c *Pipeline) XAutoClaim(ctx context.Context, a XAutoClaimArgs) *XAutoClaimCmd
func (*Pipeline) XAutoClaimJustID ¶ added in v1.0.44
func (c *Pipeline) XAutoClaimJustID(ctx context.Context, a XAutoClaimArgs) *XAutoClaimJustIDCmd
func (*Pipeline) XClaim ¶ added in v1.0.44
func (c *Pipeline) XClaim(ctx context.Context, a XClaimArgs) *XMessageSliceCmd
func (*Pipeline) XClaimJustID ¶ added in v1.0.44
func (c *Pipeline) XClaimJustID(ctx context.Context, a XClaimArgs) *StringSliceCmd
func (*Pipeline) XGroupCreate ¶ added in v1.0.44
func (*Pipeline) XGroupCreateConsumer ¶ added in v1.0.44
func (*Pipeline) XGroupCreateMkStream ¶ added in v1.0.44
func (*Pipeline) XGroupDelConsumer ¶ added in v1.0.44
func (*Pipeline) XGroupDestroy ¶ added in v1.0.44
func (*Pipeline) XGroupSetID ¶ added in v1.0.44
func (*Pipeline) XInfoConsumers ¶ added in v1.0.44
func (*Pipeline) XInfoGroups ¶ added in v1.0.44
func (c *Pipeline) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
func (*Pipeline) XInfoStream ¶ added in v1.0.44
func (c *Pipeline) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
func (*Pipeline) XInfoStreamFull ¶ added in v1.0.44
func (*Pipeline) XPending ¶ added in v1.0.44
func (c *Pipeline) XPending(ctx context.Context, stream, group string) *XPendingCmd
func (*Pipeline) XPendingExt ¶ added in v1.0.44
func (c *Pipeline) XPendingExt(ctx context.Context, a XPendingExtArgs) *XPendingExtCmd
func (*Pipeline) XRange ¶ added in v1.0.44
func (c *Pipeline) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
func (*Pipeline) XRead ¶ added in v1.0.44
func (c *Pipeline) XRead(ctx context.Context, a XReadArgs) *XStreamSliceCmd
func (*Pipeline) XReadGroup ¶ added in v1.0.44
func (c *Pipeline) XReadGroup(ctx context.Context, a XReadGroupArgs) *XStreamSliceCmd
func (*Pipeline) XReadStreams ¶ added in v1.0.44
func (c *Pipeline) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
func (*Pipeline) XRevRangeN ¶ added in v1.0.44
func (*Pipeline) XTrimMaxLen ¶ added in v1.0.44
func (*Pipeline) XTrimMaxLenApprox ¶ added in v1.0.44
func (*Pipeline) XTrimMinID ¶ added in v1.0.44
func (*Pipeline) XTrimMinIDApprox ¶ added in v1.0.44
func (*Pipeline) ZAddArgsIncr ¶ added in v1.0.44
func (*Pipeline) ZDiff ¶ added in v1.0.44
func (c *Pipeline) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
func (*Pipeline) ZDiffStore ¶ added in v1.0.44
func (*Pipeline) ZDiffWithScores ¶ added in v1.0.44
func (*Pipeline) ZInter ¶ added in v1.0.44
func (c *Pipeline) ZInter(ctx context.Context, store ZStore) *StringSliceCmd
func (*Pipeline) ZInterCard ¶ added in v1.0.44
func (*Pipeline) ZInterStore ¶ added in v1.0.44
func (*Pipeline) ZInterWithScores ¶ added in v1.0.44
func (*Pipeline) ZRandMember ¶ added in v1.0.44
func (*Pipeline) ZRandMemberWithScores ¶ added in v1.0.44
func (*Pipeline) ZRangeArgs ¶ added in v1.0.44
func (c *Pipeline) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
func (*Pipeline) ZRangeArgsWithScores ¶ added in v1.0.44
func (c *Pipeline) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
func (*Pipeline) ZRangeByLex ¶ added in v1.0.44
func (*Pipeline) ZRangeByScore ¶ added in v1.0.44
func (*Pipeline) ZRangeByScoreWithScores ¶ added in v1.0.44
func (*Pipeline) ZRangeStore ¶ added in v1.0.44
func (*Pipeline) ZRangeWithScores ¶ added in v1.0.44
func (*Pipeline) ZRankWithScore ¶ added in v1.0.44
func (c *Pipeline) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
func (*Pipeline) ZRemRangeByLex ¶ added in v1.0.44
func (*Pipeline) ZRemRangeByRank ¶ added in v1.0.44
func (*Pipeline) ZRemRangeByScore ¶ added in v1.0.44
func (*Pipeline) ZRevRangeByLex ¶ added in v1.0.44
func (*Pipeline) ZRevRangeByScore ¶ added in v1.0.44
func (*Pipeline) ZRevRangeByScoreWithScores ¶ added in v1.0.44
func (*Pipeline) ZRevRangeWithScores ¶ added in v1.0.44
func (*Pipeline) ZRevRankWithScore ¶ added in v1.0.44
func (c *Pipeline) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
func (*Pipeline) ZUnion ¶ added in v1.0.44
func (c *Pipeline) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
func (*Pipeline) ZUnionStore ¶ added in v1.0.44
type Pipeliner ¶ added in v1.0.44
type Pipeliner interface { CoreCmdable // Len is to obtain the number of commands in the pipeline that have not yet been executed. Len() int // Do is an API for executing any command. // If a certain Redis command is not yet supported, you can use Do to execute it. Do(ctx context.Context, args ...interface{}) *Cmd // Discard is to discard all commands in the cache that have not yet been executed. Discard() // Exec is to send all the commands buffered in the pipeline to the redis-server. Exec(ctx context.Context) ([]Cmder, error) }
Pipeliner is a mechanism to realise Redis Pipeline technique.
Pipelining is a technique to extremely speed up processing by packing operations to batches, send them at once to Redis and read a replies in a single step. See https://redis.io/topics/pipelining
Pay attention, that Pipeline is not a transaction, so you can get unexpected results in case of big pipelines and small read/write timeouts. Redis client has retransmission logic in case of timeouts, pipeline can be retransmitted and commands can be executed more then once. To avoid this: it is good idea to use reasonable bigger read/write timeouts depends on your batch size and/or use TxPipeline.
type ProbabilisticCmdable ¶
type ProbabilisticCmdable interface { BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd BFCard(ctx context.Context, key string) *IntCmd BFExists(ctx context.Context, key string, element interface{}) *BoolCmd BFInfo(ctx context.Context, key string) *BFInfoCmd BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd BFInfoSize(ctx context.Context, key string) *BFInfoCmd BFInfoFilters(ctx context.Context, key string) *BFInfoCmd BFInfoItems(ctx context.Context, key string) *BFInfoCmd BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd BFInsert(ctx context.Context, key string, options *BFInsertOptions, elements ...interface{}) *BoolSliceCmd BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd CFCount(ctx context.Context, key string, element interface{}) *IntCmd CFDel(ctx context.Context, key string, element interface{}) *BoolCmd CFExists(ctx context.Context, key string, element interface{}) *BoolCmd CFInfo(ctx context.Context, key string) *CFInfoCmd CFInsert(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *BoolSliceCmd CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *IntSliceCmd CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd CMSInfo(ctx context.Context, key string) *CMSInfoCmd CMSInitByDim(ctx context.Context, key string, width, height int64) *StatusCmd CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd TopKInfo(ctx context.Context, key string) *TopKInfoCmd TopKList(ctx context.Context, key string) *StringSliceCmd TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd TopKReserve(ctx context.Context, key string, k int64) *StatusCmd TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd TDigestCreate(ctx context.Context, key string) *StatusCmd TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd TDigestMax(ctx context.Context, key string) *FloatCmd TDigestMin(ctx context.Context, key string) *FloatCmd TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, sourceKeys ...string) *StatusCmd TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd TDigestReset(ctx context.Context, key string) *StatusCmd TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd Pipeline() Pipeliner Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error) TxPipeline() Pipeliner TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error) }
https://github.com/redis/go-redis/blob/af4872cbd0de349855ce3f0978929c2f56eb995f/probabilistic.go#L10
type PubSub ¶ added in v1.0.42
type PubSub interface { Close() error Subscribe(ctx context.Context, channels ...string) error PSubscribe(ctx context.Context, patterns ...string) error SSubscribe(ctx context.Context, channels ...string) error Unsubscribe(ctx context.Context, channels ...string) error PUnsubscribe(ctx context.Context, patterns ...string) error SUnsubscribe(ctx context.Context, channels ...string) error Ping(ctx context.Context, payload ...string) error ReceiveTimeout(ctx context.Context, timeout time.Duration) (any, error) Receive(ctx context.Context) (any, error) ReceiveMessage(ctx context.Context) (*Message, error) Channel(opts ...ChannelOption) <-chan *Message ChannelWithSubscriptions(opts ...ChannelOption) <-chan any String() string }
type RankWithScoreCmd ¶
type RankWithScoreCmd struct {
// contains filtered or unexported fields
}
type ScanDumpCmd ¶
type ScanDumpCmd struct {
// contains filtered or unexported fields
}
type Scanner ¶
Scanner is the interface implemented by themselves, which will override the decoding behavior of decoderFunc.
type Script ¶ added in v1.0.44
type Script struct {
// contains filtered or unexported fields
}
Example ¶
ctx = context.Background() IncrByXX := NewScript(` if redis.call("GET", KEYS[1]) ~= false then return redis.call("INCRBY", KEYS[1], ARGV[1]) end return false `) client, err := rueidis.NewClient(rueidis.ClientOption{InitAddress: []string{"127.0.0.1:6379"}}) if err != nil { panic(err) } defer client.Close() rdb := NewAdapter(client) n, err := IncrByXX.Run(ctx, rdb, []string{"xx_counter"}, 2).Result() fmt.Println(n, err) err = rdb.Set(ctx, "xx_counter", "40", 0).Err() if err != nil { panic(err) } n, err = IncrByXX.Run(ctx, rdb, []string{"xx_counter"}, 2).Result() fmt.Println(n, err)
Output:
func (*Script) Exists ¶ added in v1.0.44
func (s *Script) Exists(ctx context.Context, c Scripter) *BoolSliceCmd
type Scripter ¶ added in v1.0.44
type Scripter interface { Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd ScriptLoad(ctx context.Context, script string) *StringCmd }
type SearchAggregator ¶ added in v1.0.50
type SearchAggregator int
func (SearchAggregator) String ¶ added in v1.0.50
func (a SearchAggregator) String() string
type SearchCmdable ¶ added in v1.0.50
type SearchCmdable interface { FT_List(ctx context.Context) *StringSliceCmd FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd FTAliasDel(ctx context.Context, alias string) *StatusCmd FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd FTAlter(ctx context.Context, index string, skipInitalScan bool, definition []interface{}) *StatusCmd FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmd FTCreate(ctx context.Context, index string, options *FTCreateOptions, schema ...*FieldSchema) *StatusCmd FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd FTDictDump(ctx context.Context, dict string) *StringSliceCmd FTDropIndex(ctx context.Context, index string) *StatusCmd FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd FTExplain(ctx context.Context, index string, query string) *StringCmd FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd FTInfo(ctx context.Context, index string) *FTInfoCmd FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd FTSearch(ctx context.Context, index string, query string) *FTSearchCmd FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd FTSynDump(ctx context.Context, index string) *FTSynDumpCmd FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, options *FTSynUpdateOptions, terms []interface{}) *StatusCmd FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd }
type SearchFieldType ¶ added in v1.0.50
type SearchFieldType int
func (SearchFieldType) String ¶ added in v1.0.50
func (t SearchFieldType) String() string
type SliceCmd ¶
type SliceCmd struct {
// contains filtered or unexported fields
}
type SpellCheckResult ¶ added in v1.0.50
type SpellCheckResult struct { Term string Suggestions []SpellCheckSuggestion }
type SpellCheckSuggestion ¶ added in v1.0.50
type SpellCheckTerms ¶ added in v1.0.50
type StringIntMapCmd ¶
type StringIntMapCmd struct {
// contains filtered or unexported fields
}
type StringSliceCmd ¶
type StringSliceCmd struct {
// contains filtered or unexported fields
}
type StringStringMapCmd ¶
type StringStringMapCmd struct {
// contains filtered or unexported fields
}
func (*StringStringMapCmd) Scan ¶
func (cmd *StringStringMapCmd) Scan(dest interface{}) error
Scan scans the results from the map into a destination struct. The map keys are matched in the Redis struct fields by the `redis:"field"` tag.
type StringStructMapCmd ¶
type StringStructMapCmd struct {
// contains filtered or unexported fields
}
type StructValue ¶
type StructValue struct {
// contains filtered or unexported fields
}
func Struct ¶
func Struct(dst interface{}) (StructValue, error)
type Subscription ¶ added in v1.0.42
type Subscription struct { // Can be "subscribe", "unsubscribe", "psubscribe" or "punsubscribe". Kind string // Channel name we have subscribed to. Channel string // Number of channels we are currently subscribed to. Count int }
Subscription received after a successful subscription to channel.
func (*Subscription) String ¶ added in v1.0.42
func (m *Subscription) String() string
type TDigestInfo ¶
type TDigestInfo struct { Compression int64 `redis:"Compression"` Capacity int64 `redis:"Capacity"` MergedNodes int64 `redis:"Merged nodes"` UnmergedNodes int64 `redis:"UnmergedNodes"` MergedWeight int64 `redis:"MergedWeight"` UnmergedWeight int64 `redis:"Unmerged weight"` Observations int64 `redis:"Observations"` TotalCompressions int64 `redis:"Total compressions"` MemoryUsage int64 `redis:"Memory usage"` }
type TDigestInfoCmd ¶
type TDigestInfoCmd struct {
// contains filtered or unexported fields
}
type TDigestMergeOptions ¶
type TFCallOptions ¶
type TFunctionListOptions ¶
type TFunctionLoadOptions ¶
type TSAlterOptions ¶
type TSCreateRuleOptions ¶
type TSCreateRuleOptions struct {
AlignTimestamp int64
}
type TSGetOptions ¶
type TSGetOptions struct {
Latest bool
}
type TSIncrDecrOptions ¶
type TSInfoOptions ¶
type TSInfoOptions struct {
Debug bool
}
type TSMGetOptions ¶
type TSMRangeOptions ¶
type TSMRevRangeOptions ¶
type TSRangeOptions ¶
type TSRevRangeOptions ¶
type TSTimestampValue ¶
type TSTimestampValueCmd ¶
type TSTimestampValueCmd struct {
// contains filtered or unexported fields
}
type TSTimestampValueSliceCmd ¶
type TSTimestampValueSliceCmd struct {
// contains filtered or unexported fields
}
func (*TSTimestampValueSliceCmd) RawVal ¶ added in v1.0.50
func (cmd *TSTimestampValueSliceCmd) RawVal() any
type TimeseriesCmdable ¶
type TimeseriesCmdable interface { TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, options *TSOptions) *IntCmd TSCreate(ctx context.Context, key string) *StatusCmd TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, bucketDuration int) *StatusCmd TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, bucketDuration int, options *TSCreateRuleOptions) *StatusCmd TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd TSGet(ctx context.Context, key string) *TSTimestampValueCmd TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *TSRevRangeOptions) *TSTimestampValueSliceCmd TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, options *TSRangeOptions) *TSTimestampValueSliceCmd TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRangeOptions) *MapStringSliceInterfaceCmd TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRevRangeOptions) *MapStringSliceInterfaceCmd TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd }
type TopKInfoCmd ¶
type TopKInfoCmd struct {
// contains filtered or unexported fields
}
type TxPipeline ¶ added in v1.0.44
type TxPipeline struct {
// contains filtered or unexported fields
}
func (*TxPipeline) Exec ¶ added in v1.0.44
func (c *TxPipeline) Exec(ctx context.Context) ([]Cmder, error)
func (*TxPipeline) Pipeline ¶ added in v1.0.44
func (c *TxPipeline) Pipeline() Pipeliner
func (*TxPipeline) TxPipeline ¶ added in v1.0.44
func (c *TxPipeline) TxPipeline() Pipeliner
func (*TxPipeline) TxPipelined ¶ added in v1.0.44
type XAddArgs ¶
type XAddArgs struct { Values any Stream string MinID string ID string MaxLen int64 Limit int64 NoMkStream bool Approx bool }
Note: MaxLen/MaxLenApprox and MinID are in conflict, only one of them can be used.
type XAutoClaimArgs ¶
type XAutoClaimCmd ¶
type XAutoClaimCmd struct {
// contains filtered or unexported fields
}
func (*XAutoClaimCmd) Err ¶
func (cmd *XAutoClaimCmd) Err() error
func (*XAutoClaimCmd) Result ¶
func (cmd *XAutoClaimCmd) Result() (messages []XMessage, start string, err error)
func (*XAutoClaimCmd) SetErr ¶
func (cmd *XAutoClaimCmd) SetErr(err error)
func (*XAutoClaimCmd) SetVal ¶
func (cmd *XAutoClaimCmd) SetVal(val []XMessage, start string)
func (*XAutoClaimCmd) Val ¶
func (cmd *XAutoClaimCmd) Val() (messages []XMessage, start string)
type XAutoClaimJustIDCmd ¶
type XAutoClaimJustIDCmd struct {
// contains filtered or unexported fields
}
func (*XAutoClaimJustIDCmd) Err ¶
func (cmd *XAutoClaimJustIDCmd) Err() error
func (*XAutoClaimJustIDCmd) Result ¶
func (cmd *XAutoClaimJustIDCmd) Result() (ids []string, start string, err error)
func (*XAutoClaimJustIDCmd) SetErr ¶
func (cmd *XAutoClaimJustIDCmd) SetErr(err error)
func (*XAutoClaimJustIDCmd) SetVal ¶
func (cmd *XAutoClaimJustIDCmd) SetVal(val []string, start string)
func (*XAutoClaimJustIDCmd) Val ¶
func (cmd *XAutoClaimJustIDCmd) Val() (ids []string, start string)
type XClaimArgs ¶
type XInfoConsumersCmd ¶
type XInfoConsumersCmd struct {
// contains filtered or unexported fields
}
type XInfoGroup ¶
type XInfoGroupsCmd ¶
type XInfoGroupsCmd struct {
// contains filtered or unexported fields
}
type XInfoStream ¶
type XInfoStreamCmd ¶
type XInfoStreamCmd struct {
// contains filtered or unexported fields
}
type XInfoStreamConsumer ¶
type XInfoStreamConsumer struct { SeenTime time.Time Name string Pending []XInfoStreamConsumerPending PelCount int64 }
type XInfoStreamFull ¶
type XInfoStreamFullCmd ¶
type XInfoStreamFullCmd struct {
// contains filtered or unexported fields
}
type XInfoStreamGroup ¶
type XInfoStreamGroup struct { Name string LastDeliveredID string Pending []XInfoStreamGroupPending Consumers []XInfoStreamConsumer EntriesRead int64 Lag int64 PelCount int64 }
type XInfoStreamGroupPending ¶
type XMessageSliceCmd ¶
type XMessageSliceCmd struct {
// contains filtered or unexported fields
}
type XPendingCmd ¶
type XPendingCmd struct {
// contains filtered or unexported fields
}
type XPendingExt ¶
type XPendingExtArgs ¶
type XPendingExtCmd ¶
type XPendingExtCmd struct {
// contains filtered or unexported fields
}
type XReadGroupArgs ¶
type XStreamSliceCmd ¶
type XStreamSliceCmd struct {
// contains filtered or unexported fields
}
type ZRangeArgs ¶
type ZRangeArgs struct { Start any Stop any Key string Offset int64 Count int64 ByScore bool ByLex bool Rev bool }
ZRangeArgs is all the options of the ZRange command. In version> 6.2.0, you can replace the(cmd):
ZREVRANGE, ZRANGEBYSCORE, ZREVRANGEBYSCORE, ZRANGEBYLEX, ZREVRANGEBYLEX.
Please pay attention to your redis-server version.
Rev, ByScore, ByLex and Offset+Count options require redis-server 6.2.0 and higher.
type ZSliceWithKeyCmd ¶
type ZSliceWithKeyCmd struct {
// contains filtered or unexported fields
}
func (*ZSliceWithKeyCmd) Err ¶
func (cmd *ZSliceWithKeyCmd) Err() error
func (*ZSliceWithKeyCmd) SetErr ¶
func (cmd *ZSliceWithKeyCmd) SetErr(err error)
func (*ZSliceWithKeyCmd) SetVal ¶
func (cmd *ZSliceWithKeyCmd) SetVal(key string, val []Z)
func (*ZSliceWithKeyCmd) Val ¶
func (cmd *ZSliceWithKeyCmd) Val() (string, []Z)
type ZWithKey ¶
ZWithKey represents sorted set member including the name of the key where it was popped.
type ZWithKeyCmd ¶
type ZWithKeyCmd struct {
// contains filtered or unexported fields
}