Documentation
¶
Overview ¶
Package redis implements a Redis client.
Example (CustomCommand) ¶
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
Get := func(ctx context.Context, rdb *redis.Client, key string) *redis.StringCmd {
cmd := redis.NewStringCmd(ctx, "get", key)
rdb.Process(ctx, cmd)
return cmd
}
v, err := Get(ctx, rdb, "key_does_not_exist").Result()
fmt.Printf("%q %s", v, err)
}
Output: "" redis: nil
Example (CustomCommand2) ¶
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
v, err := rdb.Do(ctx, "get", "key_does_not_exist").Text()
fmt.Printf("%q %s", v, err)
}
Output: "" redis: nil
Example (Instrumentation) ¶
rdb := redis.NewClient(&redis.Options{
Addr: ":6379",
DisableIdentity: true,
})
rdb.AddHook(redisHook{})
rdb.Ping(ctx)
Output: starting processing: <[ping]> dialing tcp :6379 finished dialing tcp :6379 starting processing: <[hello 3]> finished processing: <[hello 3]> starting processing: <[client maint_notifications on moving-endpoint-type internal-ip]> finished processing: <[client maint_notifications on moving-endpoint-type internal-ip]> finished processing: <[ping]>
Index ¶
- Constants
- Variables
- func DialRetryBackoffConstant(d time.Duration) func(attempt int) time.Duration
- func DialRetryBackoffExponential(minBackoff, maxBackoff time.Duration) func(attempt int) time.Duration
- func ExtractCommandValue(cmd interface{}) (interface{}, error)
- func HasErrorPrefix(err error, prefix string) bool
- func IsAskError(err error) (addr string, ok bool)
- func IsAuthError(err error) bool
- func IsClusterDownError(err error) bool
- func IsExecAbortError(err error) bool
- func IsLoadingError(err error) bool
- func IsMasterDownError(err error) bool
- func IsMaxClientsError(err error) bool
- func IsMovedError(err error) (addr string, ok bool)
- func IsNoReplicasError(err error) bool
- func IsOOMError(err error) bool
- func IsPermissionError(err error) bool
- func IsReadOnlyError(err error) bool
- func IsTryAgainError(err error) bool
- func NewCommandInfoResolver(resolveFunc CommandInfoResolveFunc) *commandInfoResolver
- func NewDefaultCommandPolicyResolver() *commandInfoResolver
- func NewDialer(opt *Options) func(context.Context, string, string) (net.Conn, error)
- func NewPushNotificationProcessor() push.NotificationProcessor
- func NewVoidPushNotificationProcessor() push.NotificationProcessor
- func SetLogLevel(logLevel internal.LogLevelT)
- func SetLogger(logger internal.Logging)
- func SetOTelRecorder(r OTelRecorder)
- func Version() string
- type ACLCatArgs
- type ACLCmdable
- type ACLLogCmd
- func (cmd *ACLLogCmd) Args() []interface{}
- func (cmd *ACLLogCmd) Clone() Cmder
- func (cmd *ACLLogCmd) Err() error
- func (cmd *ACLLogCmd) FullName() string
- func (cmd *ACLLogCmd) GetCmdType() CmdType
- func (cmd *ACLLogCmd) Name() string
- func (cmd *ACLLogCmd) NoRetry() bool
- func (cmd *ACLLogCmd) Result() ([]*ACLLogEntry, error)
- func (cmd *ACLLogCmd) SetErr(e error)
- func (cmd *ACLLogCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ACLLogCmd) SetStepCount(stepCount int8)
- func (cmd *ACLLogCmd) SetVal(val []*ACLLogEntry)
- func (cmd *ACLLogCmd) String() string
- func (cmd *ACLLogCmd) Val() []*ACLLogEntry
- type ACLLogEntry
- type AREntry
- type AREntrySliceCmd
- func (cmd *AREntrySliceCmd) Args() []interface{}
- func (cmd *AREntrySliceCmd) Clone() Cmder
- func (cmd *AREntrySliceCmd) Err() error
- func (cmd *AREntrySliceCmd) FullName() string
- func (cmd *AREntrySliceCmd) GetCmdType() CmdType
- func (cmd *AREntrySliceCmd) Name() string
- func (cmd *AREntrySliceCmd) NoRetry() bool
- func (cmd *AREntrySliceCmd) Result() ([]AREntry, error)
- func (cmd *AREntrySliceCmd) SetErr(e error)
- func (cmd *AREntrySliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *AREntrySliceCmd) SetStepCount(stepCount int8)
- func (cmd *AREntrySliceCmd) SetVal(val []AREntry)
- func (cmd *AREntrySliceCmd) String() string
- func (cmd *AREntrySliceCmd) Val() []AREntry
- type ARGrepArgs
- type ARGrepPredicate
- type ARGrepPredicateType
- type ARRange
- type ARScanArgs
- type AggregateBuilder
- func (b *AggregateBuilder) AddScores() *AggregateBuilder
- func (b *AggregateBuilder) Apply(field string, alias ...string) *AggregateBuilder
- func (b *AggregateBuilder) Collect(o FTAggregateCollect) *AggregateBuilder
- func (b *AggregateBuilder) Dialect(version int) *AggregateBuilder
- func (b *AggregateBuilder) Filter(expr string) *AggregateBuilder
- func (b *AggregateBuilder) GroupBy(fields ...interface{}) *AggregateBuilder
- func (b *AggregateBuilder) Load(field string, alias ...string) *AggregateBuilder
- func (b *AggregateBuilder) LoadAll() *AggregateBuilder
- func (b *AggregateBuilder) Params(p map[string]interface{}) *AggregateBuilder
- func (b *AggregateBuilder) Reduce(fn SearchAggregator, args ...interface{}) *AggregateBuilder
- func (b *AggregateBuilder) ReduceAs(fn SearchAggregator, alias string, args ...interface{}) *AggregateBuilder
- func (b *AggregateBuilder) Run() (*FTAggregateResult, error)
- func (b *AggregateBuilder) Scorer(s string) *AggregateBuilder
- func (b *AggregateBuilder) SortBy(field string, asc bool) *AggregateBuilder
- func (b *AggregateBuilder) SortByMax(max int) *AggregateBuilder
- func (b *AggregateBuilder) Timeout(ms int) *AggregateBuilder
- func (b *AggregateBuilder) Verbatim() *AggregateBuilder
- func (b *AggregateBuilder) WithCursor(count, maxIdle int) *AggregateBuilder
- type AggregateCmd
- func (cmd *AggregateCmd) Args() []interface{}
- func (cmd *AggregateCmd) Clone() Cmder
- func (cmd *AggregateCmd) Err() error
- func (cmd *AggregateCmd) FullName() string
- func (cmd *AggregateCmd) GetCmdType() CmdType
- func (cmd *AggregateCmd) Name() string
- func (cmd *AggregateCmd) NoRetry() bool
- func (cmd *AggregateCmd) RawResult() (interface{}, error)
- func (cmd *AggregateCmd) RawVal() interface{}
- func (cmd *AggregateCmd) Result() (*FTAggregateResult, error)
- func (cmd *AggregateCmd) SetErr(e error)
- func (cmd *AggregateCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *AggregateCmd) SetStepCount(stepCount int8)
- func (cmd *AggregateCmd) SetVal(val *FTAggregateResult)
- func (cmd *AggregateCmd) String() string
- func (cmd *AggregateCmd) Val() *FTAggregateResult
- type AggregateQuery
- type AggregateRow
- type Aggregator
- type AliasBuilder
- type ArrayCmdable
- type AutoFuture
- type AutoPipelineOptions
- type AutoPipeliner
- func (c AutoPipeliner) ACLCat(ctx context.Context) *StringSliceCmd
- func (c AutoPipeliner) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
- func (c AutoPipeliner) ACLDelUser(ctx context.Context, username string) *IntCmd
- func (c AutoPipeliner) ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
- func (c AutoPipeliner) ACLGenPass(ctx context.Context, bit int) *StringCmd
- func (c AutoPipeliner) ACLList(ctx context.Context) *StringSliceCmd
- func (c AutoPipeliner) ACLLog(ctx context.Context, count int64) *ACLLogCmd
- func (c AutoPipeliner) ACLLogReset(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
- func (c AutoPipeliner) ACLUsers(ctx context.Context) *StringSliceCmd
- func (c AutoPipeliner) ACLWhoAmI(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ARCount(ctx context.Context, key string) *UintCmd
- func (c AutoPipeliner) ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
- func (c AutoPipeliner) ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
- func (c AutoPipeliner) ARGet(ctx context.Context, key string, index uint64) *StringCmd
- func (c AutoPipeliner) ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
- func (c AutoPipeliner) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
- func (c AutoPipeliner) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
- func (c AutoPipeliner) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c AutoPipeliner) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c AutoPipeliner) ARInsert(ctx context.Context, key string, values ...string) *UintCmd
- func (c AutoPipeliner) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
- func (c AutoPipeliner) ARLen(ctx context.Context, key string) *UintCmd
- func (c AutoPipeliner) ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
- func (c AutoPipeliner) ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
- func (c AutoPipeliner) ARNext(ctx context.Context, key string) *UintCmd
- func (c AutoPipeliner) AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c AutoPipeliner) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
- func (c AutoPipeliner) AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c AutoPipeliner) AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c AutoPipeliner) AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c AutoPipeliner) AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c AutoPipeliner) AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c AutoPipeliner) AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c AutoPipeliner) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
- func (c AutoPipeliner) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
- func (c AutoPipeliner) ARSeek(ctx context.Context, key string, index uint64) *IntCmd
- func (c AutoPipeliner) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
- func (ap *AutoPipeliner) AddHook(hook Hook)
- func (c AutoPipeliner) Append(ctx context.Context, key, value string) *IntCmd
- func (ap *AutoPipeliner) AsyncAutoPipeline() (*AutoPipeliner, error)
- func (ap *AutoPipeliner) AsyncAutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (ap *AutoPipeliner) AutoPipeline() (*AutoPipeliner, error)
- func (ap *AutoPipeliner) AutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (c AutoPipeliner) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c AutoPipeliner) BFCard(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c AutoPipeliner) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c AutoPipeliner) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c AutoPipeliner) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c AutoPipeliner) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c AutoPipeliner) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c AutoPipeliner) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c AutoPipeliner) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c AutoPipeliner) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c AutoPipeliner) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c AutoPipeliner) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c AutoPipeliner) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c AutoPipeliner) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c AutoPipeliner) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c AutoPipeliner) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c AutoPipeliner) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c AutoPipeliner) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c AutoPipeliner) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c AutoPipeliner) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c AutoPipeliner) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringSliceCmd
- func (c AutoPipeliner) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c AutoPipeliner) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c AutoPipeliner) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmddeprecated
- func (c AutoPipeliner) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c AutoPipeliner) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c AutoPipeliner) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c AutoPipeliner) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) BgSave(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c AutoPipeliner) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c AutoPipeliner) BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c AutoPipeliner) BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c AutoPipeliner) BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c AutoPipeliner) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c AutoPipeliner) BitOpOne(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c AutoPipeliner) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c AutoPipeliner) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c AutoPipeliner) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c AutoPipeliner) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
- func (c AutoPipeliner) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c AutoPipeliner) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c AutoPipeliner) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c AutoPipeliner) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c AutoPipeliner) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c AutoPipeliner) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c AutoPipeliner) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c AutoPipeliner) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c AutoPipeliner) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c AutoPipeliner) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c AutoPipeliner) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c AutoPipeliner) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c AutoPipeliner) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c AutoPipeliner) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c AutoPipeliner) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c AutoPipeliner) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c AutoPipeliner) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c AutoPipeliner) CMSInitByDim(ctx context.Context, key string, width, depth int64) *StatusCmd
- func (c AutoPipeliner) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c AutoPipeliner) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c AutoPipeliner) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c AutoPipeliner) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) ClientGetName(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ClientID(ctx context.Context) *IntCmd
- func (c AutoPipeliner) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c AutoPipeliner) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c AutoPipeliner) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c AutoPipeliner) ClientList(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
- func (c AutoPipeliner) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c AutoPipeliner) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
- func (c AutoPipeliner) ClientTrackingOff(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
- func (c AutoPipeliner) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c AutoPipeliner) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c AutoPipeliner) ClientUnpause(ctx context.Context) *BoolCmd
- func (ap *AutoPipeliner) Close() error
- func (c AutoPipeliner) ClusterAddSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c AutoPipeliner) ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c AutoPipeliner) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c AutoPipeliner) ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
- func (c AutoPipeliner) ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c AutoPipeliner) ClusterDelSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c AutoPipeliner) ClusterFailover(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c AutoPipeliner) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
- func (c AutoPipeliner) ClusterInfo(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) ClusterLinks(ctx context.Context) *ClusterLinksCmd
- func (c AutoPipeliner) ClusterMeet(ctx context.Context, host, port string) *StatusCmd
- func (c AutoPipeliner) ClusterMyID(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ClusterNodes(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c AutoPipeliner) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c AutoPipeliner) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmddeprecated
- func (c AutoPipeliner) ClusterSlots(ctx context.Context) *ClusterSlotsCmddeprecated
- func (c AutoPipeliner) Command(ctx context.Context) *CommandsInfoCmd
- func (c AutoPipeliner) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
- func (c AutoPipeliner) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
- func (c AutoPipeliner) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
- func (ap *AutoPipeliner) Config() AutoPipelineOptions
- func (c AutoPipeliner) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
- func (c AutoPipeliner) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c AutoPipeliner) Copy(ctx context.Context, sourceKey, destKey string, db int, replace bool) *IntCmd
- func (ap *AutoPipeliner) DBSize(ctx context.Context) *IntCmd
- func (c AutoPipeliner) DebugObject(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) Decr(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c AutoPipeliner) Del(ctx context.Context, keys ...string) *IntCmd
- func (c AutoPipeliner) DelExArgs(ctx context.Context, key string, a DelExArgs) *IntCmd
- func (c AutoPipeliner) Digest(ctx context.Context, key string) *DigestCmd
- func (ap *AutoPipeliner) Do(ctx context.Context, args ...interface{}) *Cmd
- func (ap *AutoPipeliner) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
- func (ap *AutoPipeliner) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
- func (c AutoPipeliner) Dump(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) Echo(ctx context.Context, message interface{}) *StringCmd
- func (c AutoPipeliner) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c AutoPipeliner) EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c AutoPipeliner) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c AutoPipeliner) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c AutoPipeliner) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c AutoPipeliner) Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c AutoPipeliner) ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c AutoPipeliner) ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) FCall(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c AutoPipeliner) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c AutoPipeliner) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (ap *AutoPipeliner) FDPipelined(ctx context.Context, cmds []Cmder) error
- func (c AutoPipeliner) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c AutoPipeliner) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c AutoPipeliner) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c AutoPipeliner) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c AutoPipeliner) FTAliasList(ctx context.Context, index string) *StringSliceCmd
- func (c AutoPipeliner) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c AutoPipeliner) FTAlter(ctx context.Context, index string, skipInitialScan bool, ...) *StatusCmd
- func (c AutoPipeliner) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmddeprecated
- func (c AutoPipeliner) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmddeprecated
- func (c AutoPipeliner) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c AutoPipeliner) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c AutoPipeliner) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c AutoPipeliner) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c AutoPipeliner) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c AutoPipeliner) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c AutoPipeliner) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c AutoPipeliner) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c AutoPipeliner) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c AutoPipeliner) FTExplainCli(ctx context.Context, key, path string) error
- func (c AutoPipeliner) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c AutoPipeliner) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, ...) *FTHybridCmd
- func (c AutoPipeliner) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
- func (c AutoPipeliner) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c AutoPipeliner) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c AutoPipeliner) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c AutoPipeliner) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c AutoPipeliner) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c AutoPipeliner) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c AutoPipeliner) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c AutoPipeliner) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c AutoPipeliner) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c AutoPipeliner) FT_List(ctx context.Context) *StringSliceCmd
- func (c AutoPipeliner) FlushAll(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) FlushDB(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c AutoPipeliner) FunctionDump(ctx context.Context) *StringCmd
- func (c AutoPipeliner) FunctionFlush(ctx context.Context) *StringCmd
- func (c AutoPipeliner) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c AutoPipeliner) FunctionKill(ctx context.Context) *StringCmd
- func (c AutoPipeliner) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c AutoPipeliner) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c AutoPipeliner) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c AutoPipeliner) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c AutoPipeliner) FunctionStats(ctx context.Context) *FunctionStatsCmd
- func (c AutoPipeliner) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
- func (c AutoPipeliner) GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
- func (c AutoPipeliner) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c AutoPipeliner) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c AutoPipeliner) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmddeprecated
- func (c AutoPipeliner) GeoRadiusByMember(ctx context.Context, key, member string, query *GeoRadiusQuery) *GeoLocationCmddeprecated
- func (c AutoPipeliner) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *GeoRadiusQuery) *IntCmd
- func (c AutoPipeliner) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c AutoPipeliner) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
- func (c AutoPipeliner) GeoSearchLocation(ctx context.Context, key string, q *GeoSearchLocationQuery) *GeoSearchLocationCmd
- func (c AutoPipeliner) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
- func (c AutoPipeliner) Get(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c AutoPipeliner) GetDel(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c AutoPipeliner) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c AutoPipeliner) GetSet(ctx context.Context, key string, value interface{}) *StringCmddeprecated
- func (c AutoPipeliner) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
- func (c AutoPipeliner) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c AutoPipeliner) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c AutoPipeliner) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c AutoPipeliner) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c AutoPipeliner) HGet(ctx context.Context, key, field string) *StringCmd
- func (c AutoPipeliner) HGetAll(ctx context.Context, key string) *MapStringStringCmd
- func (c AutoPipeliner) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c AutoPipeliner) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c AutoPipeliner) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
- func (ap *AutoPipeliner) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
- func (ap *AutoPipeliner) HImportDiscardAll(ctx context.Context) *IntCmd
- func (ap *AutoPipeliner) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
- func (c AutoPipeliner) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
- func (c AutoPipeliner) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c AutoPipeliner) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c AutoPipeliner) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c AutoPipeliner) HLen(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c AutoPipeliner) HMSet(ctx context.Context, key string, values ...interface{}) *BoolCmd
- func (c AutoPipeliner) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c AutoPipeliner) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c AutoPipeliner) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
- func (c AutoPipeliner) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
- func (c AutoPipeliner) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c AutoPipeliner) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c AutoPipeliner) HSet(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c AutoPipeliner) HSetEX(ctx context.Context, key string, fieldsAndValues ...string) *IntCmd
- func (c AutoPipeliner) HSetEXWithArgs(ctx context.Context, key string, options *HSetEXOptions, ...) *IntCmd
- func (c AutoPipeliner) HSetNX(ctx context.Context, key, field string, value interface{}) *BoolCmd
- func (c AutoPipeliner) HStrLen(ctx context.Context, key, field string) *IntCmd
- func (c AutoPipeliner) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c AutoPipeliner) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c AutoPipeliner) Incr(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) IncrBy(ctx context.Context, key string, value int64) *IntCmd
- func (c AutoPipeliner) IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd
- func (c AutoPipeliner) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
- func (c AutoPipeliner) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
- func (c AutoPipeliner) Info(ctx context.Context, sections ...string) *StringCmd
- func (c AutoPipeliner) InfoMap(ctx context.Context, sections ...string) *InfoCmd
- func (ap *AutoPipeliner) IsBlocking() bool
- func (ap *AutoPipeliner) IsClosed() bool
- func (c AutoPipeliner) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c AutoPipeliner) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c AutoPipeliner) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c AutoPipeliner) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c AutoPipeliner) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c AutoPipeliner) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c AutoPipeliner) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c AutoPipeliner) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c AutoPipeliner) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c AutoPipeliner) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c AutoPipeliner) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c AutoPipeliner) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c AutoPipeliner) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c AutoPipeliner) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c AutoPipeliner) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c AutoPipeliner) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c AutoPipeliner) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c AutoPipeliner) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c AutoPipeliner) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c AutoPipeliner) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c AutoPipeliner) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, ...) *StatusCmd
- func (c AutoPipeliner) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c AutoPipeliner) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c AutoPipeliner) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c AutoPipeliner) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c AutoPipeliner) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c AutoPipeliner) LCS(ctx context.Context, q *LCSQuery) *LCSCmd
- func (c AutoPipeliner) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c AutoPipeliner) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *IntCmd
- func (c AutoPipeliner) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c AutoPipeliner) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c AutoPipeliner) LLen(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c AutoPipeliner) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c AutoPipeliner) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
- func (c AutoPipeliner) LPop(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c AutoPipeliner) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd
- func (c AutoPipeliner) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd
- func (c AutoPipeliner) LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c AutoPipeliner) LPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c AutoPipeliner) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c AutoPipeliner) LRem(ctx context.Context, key string, count int64, value interface{}) *IntCmd
- func (c AutoPipeliner) LSet(ctx context.Context, key string, index int64, value interface{}) *StatusCmd
- func (c AutoPipeliner) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c AutoPipeliner) LastSave(ctx context.Context) *IntCmd
- func (c AutoPipeliner) Latency(ctx context.Context) *LatencyCmd
- func (c AutoPipeliner) LatencyReset(ctx context.Context, events ...interface{}) *StatusCmd
- func (ap *AutoPipeliner) Len() int
- func (c AutoPipeliner) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c AutoPipeliner) MSet(ctx context.Context, values ...interface{}) *StatusCmd
- func (c AutoPipeliner) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
- func (c AutoPipeliner) MSetNX(ctx context.Context, values ...interface{}) *BoolCmd
- func (c AutoPipeliner) MemoryUsage(ctx context.Context, key string, samples ...int) *IntCmd
- func (c AutoPipeliner) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
- func (c AutoPipeliner) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c AutoPipeliner) Monitor(ctx context.Context, ch chan string) *MonitorCmd
- func (c AutoPipeliner) Move(ctx context.Context, key string, db int) *BoolCmd
- func (c AutoPipeliner) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) ObjectFreq(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c AutoPipeliner) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c AutoPipeliner) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c AutoPipeliner) PFAdd(ctx context.Context, key string, els ...interface{}) *IntCmd
- func (c AutoPipeliner) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c AutoPipeliner) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (ap *AutoPipeliner) PSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c AutoPipeliner) PTTL(ctx context.Context, key string) *DurationCmd
- func (c AutoPipeliner) Persist(ctx context.Context, key string) *BoolCmd
- func (c AutoPipeliner) Ping(ctx context.Context) *StatusCmd
- func (ap *AutoPipeliner) Pipeline() Pipeliner
- func (ap *AutoPipeliner) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (ap *AutoPipeliner) PoolStats() *PoolStats
- func (ap *AutoPipeliner) Process(ctx context.Context, cmd Cmder) error
- func (c AutoPipeliner) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c AutoPipeliner) PubSubNumPat(ctx context.Context) *IntCmd
- func (c AutoPipeliner) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c AutoPipeliner) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c AutoPipeliner) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c AutoPipeliner) Publish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c AutoPipeliner) Quit(_ context.Context) *StatusCmddeprecated
- func (c AutoPipeliner) RPop(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c AutoPipeliner) RPopLPush(ctx context.Context, source, destination string) *StringCmddeprecated
- func (c AutoPipeliner) RPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c AutoPipeliner) RPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c AutoPipeliner) RandomKey(ctx context.Context) *StringCmd
- func (c AutoPipeliner) ReadOnly(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ReadWrite(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c AutoPipeliner) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c AutoPipeliner) ReplicaOf(ctx context.Context, host, port string) *StatusCmd
- func (c AutoPipeliner) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c AutoPipeliner) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c AutoPipeliner) SAdd(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c AutoPipeliner) SCard(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c AutoPipeliner) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
- func (c AutoPipeliner) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c AutoPipeliner) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c AutoPipeliner) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c AutoPipeliner) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c AutoPipeliner) SIsMember(ctx context.Context, key string, member interface{}) *BoolCmd
- func (c AutoPipeliner) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
- func (c AutoPipeliner) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c AutoPipeliner) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c AutoPipeliner) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
- func (c AutoPipeliner) SPop(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c AutoPipeliner) SPublish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c AutoPipeliner) SRandMember(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c AutoPipeliner) SRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c AutoPipeliner) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (ap *AutoPipeliner) SSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c AutoPipeliner) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c AutoPipeliner) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
- func (c AutoPipeliner) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c AutoPipeliner) Save(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c AutoPipeliner) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (ap *AutoPipeliner) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (ap *AutoPipeliner) ScriptFlush(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ScriptKill(ctx context.Context) *StatusCmd
- func (ap *AutoPipeliner) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c AutoPipeliner) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
- func (c AutoPipeliner) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
- func (c AutoPipeliner) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd
- func (c AutoPipeliner) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmddeprecated
- func (c AutoPipeliner) SetFromBuffer(ctx context.Context, key string, buf []byte) *StatusCmd
- func (c AutoPipeliner) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c AutoPipeliner) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c AutoPipeliner) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c AutoPipeliner) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c AutoPipeliner) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c AutoPipeliner) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c AutoPipeliner) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c AutoPipeliner) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c AutoPipeliner) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c AutoPipeliner) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c AutoPipeliner) Shutdown(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) ShutdownSave(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) SlaveOf(ctx context.Context, host, port string) *StatusCmddeprecated
- func (c AutoPipeliner) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
- func (c AutoPipeliner) SlowLogLen(ctx context.Context) *IntCmd
- func (c AutoPipeliner) SlowLogReset(ctx context.Context) *StatusCmd
- func (c AutoPipeliner) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c AutoPipeliner) SortInterfaces(ctx context.Context, key string, sort *Sort) *SliceCmd
- func (c AutoPipeliner) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c AutoPipeliner) SortStore(ctx context.Context, key, store string, sort *Sort) *IntCmd
- func (c AutoPipeliner) StrLen(ctx context.Context, key string) *IntCmd
- func (ap *AutoPipeliner) Submit(ctx context.Context, cmd Cmder) AutoFuture
- func (ap *AutoPipeliner) Subscribe(ctx context.Context, channels ...string) *PubSub
- func (c AutoPipeliner) Sync(_ context.Context)
- func (c AutoPipeliner) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c AutoPipeliner) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c AutoPipeliner) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c AutoPipeliner) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c AutoPipeliner) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c AutoPipeliner) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c AutoPipeliner) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c AutoPipeliner) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c AutoPipeliner) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c AutoPipeliner) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c AutoPipeliner) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c AutoPipeliner) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c AutoPipeliner) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c AutoPipeliner) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c AutoPipeliner) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c AutoPipeliner) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c AutoPipeliner) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c AutoPipeliner) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c AutoPipeliner) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c AutoPipeliner) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c AutoPipeliner) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c AutoPipeliner) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c AutoPipeliner) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c AutoPipeliner) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c AutoPipeliner) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c AutoPipeliner) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c AutoPipeliner) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c AutoPipeliner) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c AutoPipeliner) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c AutoPipeliner) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c AutoPipeliner) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c AutoPipeliner) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c AutoPipeliner) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c AutoPipeliner) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c AutoPipeliner) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c AutoPipeliner) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c AutoPipeliner) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c AutoPipeliner) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c AutoPipeliner) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c AutoPipeliner) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c AutoPipeliner) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c AutoPipeliner) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c AutoPipeliner) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c AutoPipeliner) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c AutoPipeliner) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
- func (c AutoPipeliner) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c AutoPipeliner) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c AutoPipeliner) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c AutoPipeliner) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
- func (c AutoPipeliner) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
- func (c AutoPipeliner) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c AutoPipeliner) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c AutoPipeliner) TTL(ctx context.Context, key string) *DurationCmd
- func (c AutoPipeliner) Time(ctx context.Context) *TimeCmd
- func (c AutoPipeliner) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c AutoPipeliner) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c AutoPipeliner) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c AutoPipeliner) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c AutoPipeliner) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c AutoPipeliner) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c AutoPipeliner) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c AutoPipeliner) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c AutoPipeliner) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c AutoPipeliner) Touch(ctx context.Context, keys ...string) *IntCmd
- func (ap *AutoPipeliner) TxPipeline() Pipeliner
- func (ap *AutoPipeliner) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c AutoPipeliner) Type(ctx context.Context, key string) *StatusCmd
- func (c AutoPipeliner) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c AutoPipeliner) VAdd(ctx context.Context, key, element string, val Vector) *BoolCmd
- func (c AutoPipeliner) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
- func (c AutoPipeliner) VCard(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) VClearAttributes(ctx context.Context, key, element string) *BoolCmd
- func (c AutoPipeliner) VDim(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) VEmb(ctx context.Context, key, element string, raw bool) *SliceCmd
- func (c AutoPipeliner) VGetAttr(ctx context.Context, key, element string) *StringCmd
- func (c AutoPipeliner) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c AutoPipeliner) VIsMember(ctx context.Context, key, element string) *BoolCmd
- func (c AutoPipeliner) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
- func (c AutoPipeliner) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
- func (c AutoPipeliner) VRandMember(ctx context.Context, key string) *StringCmd
- func (c AutoPipeliner) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c AutoPipeliner) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
- func (c AutoPipeliner) VRem(ctx context.Context, key, element string) *BoolCmd
- func (c AutoPipeliner) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
- func (c AutoPipeliner) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
- func (c AutoPipeliner) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
- func (c AutoPipeliner) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
- func (c AutoPipeliner) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
- func (c AutoPipeliner) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
- func (c AutoPipeliner) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
- func (c AutoPipeliner) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd
- func (c AutoPipeliner) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntSliceCmd
- func (ap *AutoPipeliner) WaitClosed() error
- func (ap *AutoPipeliner) Watch(ctx context.Context, fn func(*Tx) error, keys ...string) error
- func (c AutoPipeliner) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c AutoPipeliner) XAckDel(ctx context.Context, stream string, group string, mode string, ids ...string) *SliceCmd
- func (c AutoPipeliner) XAdd(ctx context.Context, a *XAddArgs) *StringCmd
- func (c AutoPipeliner) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
- func (c AutoPipeliner) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c AutoPipeliner) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
- func (c AutoPipeliner) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
- func (c AutoPipeliner) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
- func (c AutoPipeliner) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
- func (c AutoPipeliner) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c AutoPipeliner) XDelEx(ctx context.Context, stream string, mode string, ids ...string) *SliceCmd
- func (c AutoPipeliner) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c AutoPipeliner) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c AutoPipeliner) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c AutoPipeliner) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c AutoPipeliner) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c AutoPipeliner) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c AutoPipeliner) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
- func (c AutoPipeliner) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c AutoPipeliner) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c AutoPipeliner) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
- func (c AutoPipeliner) XLen(ctx context.Context, stream string) *IntCmd
- func (c AutoPipeliner) XNack(ctx context.Context, a *XNackArgs) *IntCmd
- func (c AutoPipeliner) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c AutoPipeliner) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
- func (c AutoPipeliner) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c AutoPipeliner) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c AutoPipeliner) XRead(ctx context.Context, a *XReadArgs) *XStreamSliceCmd
- func (c AutoPipeliner) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
- func (c AutoPipeliner) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c AutoPipeliner) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c AutoPipeliner) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c AutoPipeliner) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c AutoPipeliner) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c AutoPipeliner) XTrimMaxLenApproxMode(ctx context.Context, key string, maxLen, limit int64, mode string) *IntCmd
- func (c AutoPipeliner) XTrimMaxLenMode(ctx context.Context, key string, maxLen int64, mode string) *IntCmd
- func (c AutoPipeliner) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c AutoPipeliner) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c AutoPipeliner) XTrimMinIDApproxMode(ctx context.Context, key string, minID string, limit int64, mode string) *IntCmd
- func (c AutoPipeliner) XTrimMinIDMode(ctx context.Context, key string, minID string, mode string) *IntCmd
- func (c AutoPipeliner) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c AutoPipeliner) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c AutoPipeliner) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c AutoPipeliner) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c AutoPipeliner) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c AutoPipeliner) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c AutoPipeliner) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c AutoPipeliner) ZCard(ctx context.Context, key string) *IntCmd
- func (c AutoPipeliner) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c AutoPipeliner) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c AutoPipeliner) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c AutoPipeliner) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c AutoPipeliner) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c AutoPipeliner) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd
- func (c AutoPipeliner) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c AutoPipeliner) ZInterStore(ctx context.Context, destination string, store *ZStore) *IntCmd
- func (c AutoPipeliner) ZInterWithScores(ctx context.Context, store *ZStore) *ZSliceCmd
- func (c AutoPipeliner) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c AutoPipeliner) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c AutoPipeliner) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c AutoPipeliner) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c AutoPipeliner) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c AutoPipeliner) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
- func (c AutoPipeliner) ZRandMemberWithScores(ctx context.Context, key string, count int) *ZSliceCmd
- func (c AutoPipeliner) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c AutoPipeliner) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c AutoPipeliner) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c AutoPipeliner) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c AutoPipeliner) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c AutoPipeliner) ZRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c AutoPipeliner) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c AutoPipeliner) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c AutoPipeliner) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c AutoPipeliner) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c AutoPipeliner) ZRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c AutoPipeliner) ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd
- func (c AutoPipeliner) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c AutoPipeliner) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c AutoPipeliner) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmddeprecated
- func (c AutoPipeliner) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c AutoPipeliner) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c AutoPipeliner) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c AutoPipeliner) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c AutoPipeliner) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c AutoPipeliner) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c AutoPipeliner) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c AutoPipeliner) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c AutoPipeliner) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c AutoPipeliner) ZUnionStore(ctx context.Context, dest string, store *ZStore) *IntCmd
- func (c AutoPipeliner) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type BFInfo
- type BFInfoCmd
- func (cmd *BFInfoCmd) Args() []interface{}
- func (cmd *BFInfoCmd) Clone() Cmder
- func (cmd *BFInfoCmd) Err() error
- func (cmd *BFInfoCmd) FullName() string
- func (cmd *BFInfoCmd) GetCmdType() CmdType
- func (cmd *BFInfoCmd) Name() string
- func (cmd *BFInfoCmd) NoRetry() bool
- func (cmd *BFInfoCmd) Result() (BFInfo, error)
- func (cmd *BFInfoCmd) SetErr(e error)
- func (cmd *BFInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *BFInfoCmd) SetStepCount(stepCount int8)
- func (cmd *BFInfoCmd) SetVal(val BFInfo)
- func (cmd *BFInfoCmd) String() string
- func (cmd *BFInfoCmd) Val() BFInfo
- type BFInsertOptions
- type BFReserveOptions
- type BitCount
- type BitMapCmdable
- type BoolCmd
- func (cmd *BoolCmd) Args() []interface{}
- func (cmd *BoolCmd) Clone() Cmder
- func (cmd *BoolCmd) Err() error
- func (cmd *BoolCmd) FullName() string
- func (cmd *BoolCmd) GetCmdType() CmdType
- func (cmd *BoolCmd) Name() string
- func (cmd *BoolCmd) NoRetry() bool
- func (cmd *BoolCmd) Result() (bool, error)
- func (cmd *BoolCmd) SetErr(e error)
- func (cmd *BoolCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *BoolCmd) SetStepCount(stepCount int8)
- func (cmd *BoolCmd) SetVal(val bool)
- func (cmd *BoolCmd) String() string
- func (cmd *BoolCmd) Val() bool
- type BoolSliceCmd
- func (cmd *BoolSliceCmd) Args() []interface{}
- func (cmd *BoolSliceCmd) Clone() Cmder
- func (cmd *BoolSliceCmd) Err() error
- func (cmd *BoolSliceCmd) FullName() string
- func (cmd *BoolSliceCmd) GetCmdType() CmdType
- func (cmd *BoolSliceCmd) Name() string
- func (cmd *BoolSliceCmd) NoRetry() bool
- func (cmd *BoolSliceCmd) Result() ([]bool, error)
- func (cmd *BoolSliceCmd) SetErr(e error)
- func (cmd *BoolSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *BoolSliceCmd) SetStepCount(stepCount int8)
- func (cmd *BoolSliceCmd) SetVal(val []bool)
- func (cmd *BoolSliceCmd) String() string
- func (cmd *BoolSliceCmd) Val() []bool
- type CFInfo
- type CFInfoCmd
- func (cmd *CFInfoCmd) Args() []interface{}
- func (cmd *CFInfoCmd) Clone() Cmder
- func (cmd *CFInfoCmd) Err() error
- func (cmd *CFInfoCmd) FullName() string
- func (cmd *CFInfoCmd) GetCmdType() CmdType
- func (cmd *CFInfoCmd) Name() string
- func (cmd *CFInfoCmd) NoRetry() bool
- func (cmd *CFInfoCmd) Result() (CFInfo, error)
- func (cmd *CFInfoCmd) SetErr(e error)
- func (cmd *CFInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *CFInfoCmd) SetStepCount(stepCount int8)
- func (cmd *CFInfoCmd) SetVal(val CFInfo)
- func (cmd *CFInfoCmd) String() string
- func (cmd *CFInfoCmd) Val() CFInfo
- type CFInsertOptions
- type CFReserveOptions
- type CMSInfo
- type CMSInfoCmd
- func (cmd *CMSInfoCmd) Args() []interface{}
- func (cmd *CMSInfoCmd) Clone() Cmder
- func (cmd *CMSInfoCmd) Err() error
- func (cmd *CMSInfoCmd) FullName() string
- func (cmd *CMSInfoCmd) GetCmdType() CmdType
- func (cmd *CMSInfoCmd) Name() string
- func (cmd *CMSInfoCmd) NoRetry() bool
- func (cmd *CMSInfoCmd) Result() (CMSInfo, error)
- func (cmd *CMSInfoCmd) SetErr(e error)
- func (cmd *CMSInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *CMSInfoCmd) SetStepCount(stepCount int8)
- func (cmd *CMSInfoCmd) SetVal(val CMSInfo)
- func (cmd *CMSInfoCmd) String() string
- func (cmd *CMSInfoCmd) Val() CMSInfo
- type CSCRefreshStats
- type CSCStats
- type CSCStrategy
- type Cache
- type CacheConfig
- type CacheSizer
- type ChannelOption
- type Client
- func (c Client) ACLCat(ctx context.Context) *StringSliceCmd
- func (c Client) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
- func (c Client) ACLDelUser(ctx context.Context, username string) *IntCmd
- func (c Client) ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
- func (c Client) ACLGenPass(ctx context.Context, bit int) *StringCmd
- func (c Client) ACLList(ctx context.Context) *StringSliceCmd
- func (c Client) ACLLog(ctx context.Context, count int64) *ACLLogCmd
- func (c Client) ACLLogReset(ctx context.Context) *StatusCmd
- func (c Client) ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
- func (c Client) ACLUsers(ctx context.Context) *StringSliceCmd
- func (c Client) ACLWhoAmI(ctx context.Context) *StringCmd
- func (c Client) ARCount(ctx context.Context, key string) *UintCmd
- func (c Client) ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
- func (c Client) ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
- func (c Client) ARGet(ctx context.Context, key string, index uint64) *StringCmd
- func (c Client) ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
- func (c Client) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
- func (c Client) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
- func (c Client) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Client) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Client) ARInsert(ctx context.Context, key string, values ...string) *UintCmd
- func (c Client) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
- func (c Client) ARLen(ctx context.Context, key string) *UintCmd
- func (c Client) ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
- func (c Client) ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
- func (c Client) ARNext(ctx context.Context, key string) *UintCmd
- func (c Client) AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Client) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
- func (c Client) AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Client) AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Client) AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Client) AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Client) AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Client) AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Client) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
- func (c Client) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
- func (c Client) ARSeek(ctx context.Context, key string, index uint64) *IntCmd
- func (c Client) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
- func (c Client) Append(ctx context.Context, key, value string) *IntCmd
- func (c *Client) AsyncAutoPipeline() (*AutoPipeliner, error)
- func (c *Client) AsyncAutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (c *Client) AutoPipeline() (*AutoPipeliner, error)
- func (c *Client) AutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (c Client) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Client) BFCard(ctx context.Context, key string) *IntCmd
- func (c Client) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Client) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c Client) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c Client) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c Client) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c Client) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c Client) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c Client) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c Client) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c Client) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Client) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Client) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Client) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Client) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c Client) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Client) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c Client) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Client) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c Client) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c Client) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringSliceCmd
- func (c Client) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Client) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Client) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmddeprecated
- func (c Client) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c Client) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Client) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Client) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c Client) BgSave(ctx context.Context) *StatusCmd
- func (c Client) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c Client) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Client) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Client) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Client) BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Client) BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Client) BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Client) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c Client) BitOpOne(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Client) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Client) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Client) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c Client) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
- func (c Client) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Client) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Client) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c Client) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Client) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Client) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c Client) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c Client) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c Client) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Client) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Client) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c Client) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c Client) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c Client) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c Client) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c Client) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Client) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Client) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c Client) CMSInitByDim(ctx context.Context, key string, width, depth int64) *StatusCmd
- func (c Client) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c Client) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c Client) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c Client) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c *Client) CSCRefreshStats() CSCRefreshStats
- func (c *Client) CSCStats() CSCStats
- func (c Client) ClientGetName(ctx context.Context) *StringCmd
- func (c Client) ClientID(ctx context.Context) *IntCmd
- func (c Client) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c Client) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c Client) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c Client) ClientList(ctx context.Context) *StringCmd
- func (c Client) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
- func (c Client) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c Client) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
- func (c Client) ClientTrackingOff(ctx context.Context) *StatusCmd
- func (c Client) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
- func (c Client) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c Client) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c Client) ClientUnpause(ctx context.Context) *BoolCmd
- func (c *Client) Close() error
- func (c Client) ClusterAddSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Client) ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Client) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c Client) ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
- func (c Client) ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Client) ClusterDelSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Client) ClusterFailover(ctx context.Context) *StatusCmd
- func (c Client) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c Client) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
- func (c Client) ClusterInfo(ctx context.Context) *StringCmd
- func (c Client) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c Client) ClusterLinks(ctx context.Context) *ClusterLinksCmd
- func (c Client) ClusterMeet(ctx context.Context, host, port string) *StatusCmd
- func (c Client) ClusterMyID(ctx context.Context) *StringCmd
- func (c Client) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c Client) ClusterNodes(ctx context.Context) *StringCmd
- func (c Client) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c Client) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c Client) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c Client) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c Client) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c Client) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmddeprecated
- func (c Client) ClusterSlots(ctx context.Context) *ClusterSlotsCmddeprecated
- func (c Client) Command(ctx context.Context) *CommandsInfoCmd
- func (c Client) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
- func (c Client) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
- func (c Client) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
- func (c Client) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
- func (c Client) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c Client) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c Client) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c *Client) Conn() *Conn
- func (c Client) Copy(ctx context.Context, sourceKey, destKey string, db int, replace bool) *IntCmd
- func (c Client) DBSize(ctx context.Context) *IntCmd
- func (c Client) DebugObject(ctx context.Context, key string) *StringCmd
- func (c Client) Decr(ctx context.Context, key string) *IntCmd
- func (c Client) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c Client) Del(ctx context.Context, keys ...string) *IntCmd
- func (c Client) DelExArgs(ctx context.Context, key string, a DelExArgs) *IntCmd
- func (c Client) Digest(ctx context.Context, key string) *DigestCmd
- func (c Client) Do(ctx context.Context, args ...interface{}) *Cmd
- func (c Client) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
- func (c Client) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
- func (c Client) Dump(ctx context.Context, key string) *StringCmd
- func (c Client) Echo(ctx context.Context, message interface{}) *StringCmd
- func (c *Client) EphemeralConn() *Conn
- func (c Client) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Client) EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Client) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Client) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Client) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c Client) Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Client) ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Client) ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Client) ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Client) ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Client) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Client) ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Client) FCall(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Client) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Client) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Client) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c Client) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c Client) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c Client) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c Client) FTAliasList(ctx context.Context, index string) *StringSliceCmd
- func (c Client) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c Client) FTAlter(ctx context.Context, index string, skipInitialScan bool, ...) *StatusCmd
- func (c Client) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmddeprecated
- func (c Client) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmddeprecated
- func (c Client) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c Client) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c Client) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c Client) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Client) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Client) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c Client) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c Client) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c Client) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c Client) FTExplainCli(ctx context.Context, key, path string) error
- func (c Client) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c Client) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, ...) *FTHybridCmd
- func (c Client) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
- func (c Client) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c Client) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c Client) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c Client) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c Client) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c Client) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c Client) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c Client) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c Client) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c Client) FT_List(ctx context.Context) *StringSliceCmd
- func (c Client) FlushAll(ctx context.Context) *StatusCmd
- func (c Client) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c Client) FlushDB(ctx context.Context) *StatusCmd
- func (c Client) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c Client) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c Client) FunctionDump(ctx context.Context) *StringCmd
- func (c Client) FunctionFlush(ctx context.Context) *StringCmd
- func (c Client) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c Client) FunctionKill(ctx context.Context) *StringCmd
- func (c Client) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c Client) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c Client) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c Client) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c Client) FunctionStats(ctx context.Context) *FunctionStatsCmd
- func (c Client) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
- func (c Client) GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
- func (c Client) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c Client) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c Client) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmddeprecated
- func (c Client) GeoRadiusByMember(ctx context.Context, key, member string, query *GeoRadiusQuery) *GeoLocationCmddeprecated
- func (c Client) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *GeoRadiusQuery) *IntCmd
- func (c Client) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c Client) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
- func (c Client) GeoSearchLocation(ctx context.Context, key string, q *GeoSearchLocationQuery) *GeoSearchLocationCmd
- func (c Client) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
- func (c Client) Get(ctx context.Context, key string) *StringCmd
- func (c Client) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c Client) GetDel(ctx context.Context, key string) *StringCmd
- func (c Client) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c *Client) GetMaintNotificationsManager() *maintnotifications.Manager
- func (c *Client) GetPushNotificationHandler(pushNotificationName string) push.NotificationHandler
- func (c Client) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c Client) GetSet(ctx context.Context, key string, value interface{}) *StringCmddeprecated
- func (c Client) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
- func (c Client) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c Client) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c Client) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Client) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Client) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Client) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Client) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Client) HGet(ctx context.Context, key, field string) *StringCmd
- func (c Client) HGetAll(ctx context.Context, key string) *MapStringStringCmd
- func (c Client) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Client) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Client) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
- func (c Client) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
- func (c Client) HImportDiscardAll(ctx context.Context) *IntCmd
- func (c Client) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
- func (c Client) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
- func (c Client) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c Client) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c Client) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c Client) HLen(ctx context.Context, key string) *IntCmd
- func (c Client) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c Client) HMSet(ctx context.Context, key string, values ...interface{}) *BoolCmd
- func (c Client) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Client) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Client) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Client) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Client) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Client) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Client) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Client) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Client) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
- func (c Client) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Client) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Client) HSet(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Client) HSetEX(ctx context.Context, key string, fieldsAndValues ...string) *IntCmd
- func (c Client) HSetEXWithArgs(ctx context.Context, key string, options *HSetEXOptions, ...) *IntCmd
- func (c Client) HSetNX(ctx context.Context, key, field string, value interface{}) *BoolCmd
- func (c Client) HStrLen(ctx context.Context, key, field string) *IntCmd
- func (c Client) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Client) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c *Client) HotKeysGet(ctx context.Context) *HotKeysCmd
- func (c *Client) HotKeysReset(ctx context.Context) *StatusCmd
- func (c *Client) HotKeysStart(ctx context.Context, args *HotKeysStartArgs) *StatusCmd
- func (c *Client) HotKeysStop(ctx context.Context) *StatusCmd
- func (c Client) Incr(ctx context.Context, key string) *IntCmd
- func (c Client) IncrBy(ctx context.Context, key string, value int64) *IntCmd
- func (c Client) IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd
- func (c Client) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
- func (c Client) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
- func (c Client) Info(ctx context.Context, sections ...string) *StringCmd
- func (c Client) InfoMap(ctx context.Context, sections ...string) *InfoCmd
- func (c Client) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c Client) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c Client) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c Client) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c Client) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c Client) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c Client) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c Client) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c Client) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c Client) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c Client) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c Client) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c Client) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c Client) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c Client) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c Client) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c Client) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c Client) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c Client) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c Client) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c Client) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Client) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c Client) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c Client) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, ...) *StatusCmd
- func (c Client) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c Client) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Client) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Client) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c Client) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c Client) LCS(ctx context.Context, q *LCSQuery) *LCSCmd
- func (c Client) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c Client) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *IntCmd
- func (c Client) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Client) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Client) LLen(ctx context.Context, key string) *IntCmd
- func (c Client) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c Client) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c Client) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
- func (c Client) LPop(ctx context.Context, key string) *StringCmd
- func (c Client) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Client) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd
- func (c Client) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd
- func (c Client) LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Client) LPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Client) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Client) LRem(ctx context.Context, key string, count int64, value interface{}) *IntCmd
- func (c Client) LSet(ctx context.Context, key string, index int64, value interface{}) *StatusCmd
- func (c Client) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c Client) LastSave(ctx context.Context) *IntCmd
- func (c Client) Latency(ctx context.Context) *LatencyCmd
- func (c Client) LatencyReset(ctx context.Context, events ...interface{}) *StatusCmd
- func (c Client) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c Client) MSet(ctx context.Context, values ...interface{}) *StatusCmd
- func (c Client) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
- func (c Client) MSetNX(ctx context.Context, values ...interface{}) *BoolCmd
- func (c Client) MemoryUsage(ctx context.Context, key string, samples ...int) *IntCmd
- func (c Client) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
- func (c Client) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c Client) Monitor(ctx context.Context, ch chan string) *MonitorCmd
- func (c Client) Move(ctx context.Context, key string, db int) *BoolCmd
- func (c *Client) NewAggregateBuilder(ctx context.Context, index, query string) *AggregateBuilder
- func (c *Client) NewAliasBuilder(ctx context.Context, alias string) *AliasBuilder
- func (c *Client) NewCreateIndexBuilder(ctx context.Context, index string) *CreateIndexBuilder
- func (c *Client) NewCursorBuilder(ctx context.Context, index string, cursorId int64) *CursorBuilder
- func (c *Client) NewDictBuilder(ctx context.Context, dict string) *DictBuilder
- func (c *Client) NewDropIndexBuilder(ctx context.Context, index string) *DropIndexBuilder
- func (c *Client) NewExplainBuilder(ctx context.Context, index, query string) *ExplainBuilder
- func (c *Client) NewSearchBuilder(ctx context.Context, index, query string) *SearchBuilder
- func (c *Client) NewSearchInfoBuilder(ctx context.Context, index string) *FTInfoBuilder
- func (c *Client) NewSpellCheckBuilder(ctx context.Context, index, query string) *SpellCheckBuilder
- func (c *Client) NewSynUpdateBuilder(ctx context.Context, index string, groupId interface{}) *SynUpdateBuilder
- func (c *Client) NewTagValsBuilder(ctx context.Context, index, field string) *TagValsBuilder
- func (c *Client) NodeAddress() string
- func (c Client) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c Client) ObjectFreq(ctx context.Context, key string) *IntCmd
- func (c Client) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c Client) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c *Client) Options() *Options
- func (c Client) PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Client) PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Client) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Client) PFAdd(ctx context.Context, key string, els ...interface{}) *IntCmd
- func (c Client) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c Client) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (c *Client) PSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c Client) PTTL(ctx context.Context, key string) *DurationCmd
- func (c Client) Persist(ctx context.Context, key string) *BoolCmd
- func (c Client) Ping(ctx context.Context) *StatusCmd
- func (c *Client) Pipeline() Pipeliner
- func (c *Client) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Client) PoolStats() *PoolStats
- func (c *Client) Process(ctx context.Context, cmd Cmder) error
- func (c Client) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Client) PubSubNumPat(ctx context.Context) *IntCmd
- func (c Client) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Client) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Client) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Client) Publish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Client) Quit(_ context.Context) *StatusCmddeprecated
- func (c Client) RPop(ctx context.Context, key string) *StringCmd
- func (c Client) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Client) RPopLPush(ctx context.Context, source, destination string) *StringCmddeprecated
- func (c Client) RPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Client) RPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Client) RandomKey(ctx context.Context) *StringCmd
- func (c Client) ReadOnly(ctx context.Context) *StatusCmd
- func (c Client) ReadWrite(ctx context.Context) *StatusCmd
- func (c *Client) RegisterPushNotificationHandler(pushNotificationName string, handler push.NotificationHandler, protected bool) error
- func (c Client) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c Client) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c Client) ReplicaOf(ctx context.Context, host, port string) *StatusCmd
- func (c Client) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Client) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Client) SAdd(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Client) SCard(ctx context.Context, key string) *IntCmd
- func (c Client) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Client) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
- func (c Client) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Client) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Client) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Client) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Client) SIsMember(ctx context.Context, key string, member interface{}) *BoolCmd
- func (c Client) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
- func (c Client) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c Client) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c Client) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
- func (c Client) SPop(ctx context.Context, key string) *StringCmd
- func (c Client) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Client) SPublish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Client) SRandMember(ctx context.Context, key string) *StringCmd
- func (c Client) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Client) SRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Client) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Client) SSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c Client) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Client) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
- func (c Client) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Client) Save(ctx context.Context) *StatusCmd
- func (c Client) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c Client) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (c Client) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (c Client) ScriptFlush(ctx context.Context) *StatusCmd
- func (c Client) ScriptKill(ctx context.Context) *StatusCmd
- func (c Client) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c Client) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
- func (c Client) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
- func (c Client) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd
- func (c Client) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmddeprecated
- func (c Client) SetFromBuffer(ctx context.Context, key string, buf []byte) *StatusCmd
- func (c Client) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Client) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Client) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Client) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Client) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Client) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Client) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Client) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Client) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Client) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c Client) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Client) Shutdown(ctx context.Context) *StatusCmd
- func (c Client) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c Client) ShutdownSave(ctx context.Context) *StatusCmd
- func (c Client) SlaveOf(ctx context.Context, host, port string) *StatusCmddeprecated
- func (c Client) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
- func (c Client) SlowLogLen(ctx context.Context) *IntCmd
- func (c Client) SlowLogReset(ctx context.Context) *StatusCmd
- func (c Client) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Client) SortInterfaces(ctx context.Context, key string, sort *Sort) *SliceCmd
- func (c Client) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Client) SortStore(ctx context.Context, key, store string, sort *Sort) *IntCmd
- func (c Client) StrLen(ctx context.Context, key string) *IntCmd
- func (c Client) String() string
- func (c *Client) Subscribe(ctx context.Context, channels ...string) *PubSub
- func (c Client) Sync(_ context.Context)
- func (c Client) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c Client) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Client) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Client) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Client) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c Client) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c Client) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c Client) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c Client) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c Client) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c Client) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Client) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Client) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c Client) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Client) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c Client) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c Client) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c Client) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c Client) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c Client) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Client) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Client) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c Client) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Client) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Client) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c Client) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c Client) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c Client) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c Client) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Client) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Client) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Client) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c Client) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c Client) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c Client) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c Client) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Client) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Client) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Client) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Client) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Client) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Client) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Client) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Client) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Client) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
- func (c Client) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Client) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Client) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Client) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
- func (c Client) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
- func (c Client) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Client) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Client) TTL(ctx context.Context, key string) *DurationCmd
- func (c Client) Time(ctx context.Context) *TimeCmd
- func (c Client) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Client) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Client) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Client) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c Client) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c Client) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c Client) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Client) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c Client) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c Client) Touch(ctx context.Context, keys ...string) *IntCmd
- func (c *Client) TxPipeline() Pipeliner
- func (c *Client) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c Client) Type(ctx context.Context, key string) *StatusCmd
- func (c Client) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c Client) VAdd(ctx context.Context, key, element string, val Vector) *BoolCmd
- func (c Client) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
- func (c Client) VCard(ctx context.Context, key string) *IntCmd
- func (c Client) VClearAttributes(ctx context.Context, key, element string) *BoolCmd
- func (c Client) VDim(ctx context.Context, key string) *IntCmd
- func (c Client) VEmb(ctx context.Context, key, element string, raw bool) *SliceCmd
- func (c Client) VGetAttr(ctx context.Context, key, element string) *StringCmd
- func (c Client) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Client) VIsMember(ctx context.Context, key, element string) *BoolCmd
- func (c Client) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
- func (c Client) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
- func (c Client) VRandMember(ctx context.Context, key string) *StringCmd
- func (c Client) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Client) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
- func (c Client) VRem(ctx context.Context, key, element string) *BoolCmd
- func (c Client) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
- func (c Client) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
- func (c Client) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
- func (c Client) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
- func (c Client) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
- func (c Client) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
- func (c Client) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
- func (c Client) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd
- func (c Client) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntSliceCmd
- func (c *Client) Watch(ctx context.Context, fn func(*Tx) error, keys ...string) error
- func (c *Client) WithTimeout(timeout time.Duration) *Client
- func (c Client) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c Client) XAckDel(ctx context.Context, stream string, group string, mode string, ids ...string) *SliceCmd
- func (c Client) XAdd(ctx context.Context, a *XAddArgs) *StringCmd
- func (c Client) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
- func (c Client) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c Client) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
- func (c Client) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
- func (c Client) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
- func (c Client) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
- func (c Client) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c Client) XDelEx(ctx context.Context, stream string, mode string, ids ...string) *SliceCmd
- func (c Client) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Client) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Client) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Client) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Client) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c Client) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Client) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
- func (c Client) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c Client) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c Client) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
- func (c Client) XLen(ctx context.Context, stream string) *IntCmd
- func (c Client) XNack(ctx context.Context, a *XNackArgs) *IntCmd
- func (c Client) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c Client) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
- func (c Client) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Client) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Client) XRead(ctx context.Context, a *XReadArgs) *XStreamSliceCmd
- func (c Client) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
- func (c Client) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c Client) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Client) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Client) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c Client) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c Client) XTrimMaxLenApproxMode(ctx context.Context, key string, maxLen, limit int64, mode string) *IntCmd
- func (c Client) XTrimMaxLenMode(ctx context.Context, key string, maxLen int64, mode string) *IntCmd
- func (c Client) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c Client) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c Client) XTrimMinIDApproxMode(ctx context.Context, key string, minID string, limit int64, mode string) *IntCmd
- func (c Client) XTrimMinIDMode(ctx context.Context, key string, minID string, mode string) *IntCmd
- func (c Client) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Client) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c Client) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c Client) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Client) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Client) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Client) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Client) ZCard(ctx context.Context, key string) *IntCmd
- func (c Client) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Client) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Client) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Client) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c Client) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c Client) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd
- func (c Client) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Client) ZInterStore(ctx context.Context, destination string, store *ZStore) *IntCmd
- func (c Client) ZInterWithScores(ctx context.Context, store *ZStore) *ZSliceCmd
- func (c Client) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Client) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c Client) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c Client) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Client) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Client) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Client) ZRandMemberWithScores(ctx context.Context, key string, count int) *ZSliceCmd
- func (c Client) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Client) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c Client) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c Client) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Client) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Client) ZRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Client) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c Client) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Client) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c Client) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Client) ZRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Client) ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd
- func (c Client) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c Client) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c Client) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmddeprecated
- func (c Client) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Client) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Client) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Client) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Client) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c Client) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Client) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Client) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c Client) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c Client) ZUnionStore(ctx context.Context, dest string, store *ZStore) *IntCmd
- func (c Client) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type ClientFlags
- type ClientInfo
- type ClientInfoCmd
- func (cmd *ClientInfoCmd) Args() []interface{}
- func (cmd *ClientInfoCmd) Clone() Cmder
- func (cmd *ClientInfoCmd) Err() error
- func (cmd *ClientInfoCmd) FullName() string
- func (cmd *ClientInfoCmd) GetCmdType() CmdType
- func (cmd *ClientInfoCmd) Name() string
- func (cmd *ClientInfoCmd) NoRetry() bool
- func (cmd *ClientInfoCmd) Result() (*ClientInfo, error)
- func (cmd *ClientInfoCmd) SetErr(e error)
- func (cmd *ClientInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ClientInfoCmd) SetStepCount(stepCount int8)
- func (cmd *ClientInfoCmd) SetVal(val *ClientInfo)
- func (cmd *ClientInfoCmd) String() string
- func (cmd *ClientInfoCmd) Val() *ClientInfo
- type ClientSideCacheConfig
- type ClientTrackingOptions
- type ClusterClient
- func (c ClusterClient) ACLCat(ctx context.Context) *StringSliceCmd
- func (c ClusterClient) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
- func (c ClusterClient) ACLDelUser(ctx context.Context, username string) *IntCmd
- func (c ClusterClient) ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
- func (c ClusterClient) ACLGenPass(ctx context.Context, bit int) *StringCmd
- func (c ClusterClient) ACLList(ctx context.Context) *StringSliceCmd
- func (c ClusterClient) ACLLog(ctx context.Context, count int64) *ACLLogCmd
- func (c ClusterClient) ACLLogReset(ctx context.Context) *StatusCmd
- func (c ClusterClient) ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
- func (c ClusterClient) ACLUsers(ctx context.Context) *StringSliceCmd
- func (c ClusterClient) ACLWhoAmI(ctx context.Context) *StringCmd
- func (c ClusterClient) ARCount(ctx context.Context, key string) *UintCmd
- func (c ClusterClient) ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
- func (c ClusterClient) ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
- func (c ClusterClient) ARGet(ctx context.Context, key string, index uint64) *StringCmd
- func (c ClusterClient) ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
- func (c ClusterClient) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
- func (c ClusterClient) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
- func (c ClusterClient) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c ClusterClient) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c ClusterClient) ARInsert(ctx context.Context, key string, values ...string) *UintCmd
- func (c ClusterClient) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
- func (c ClusterClient) ARLen(ctx context.Context, key string) *UintCmd
- func (c ClusterClient) ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
- func (c ClusterClient) ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
- func (c ClusterClient) ARNext(ctx context.Context, key string) *UintCmd
- func (c ClusterClient) AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c ClusterClient) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
- func (c ClusterClient) AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c ClusterClient) AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c ClusterClient) AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c ClusterClient) AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c ClusterClient) AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c ClusterClient) AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c ClusterClient) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
- func (c ClusterClient) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
- func (c ClusterClient) ARSeek(ctx context.Context, key string, index uint64) *IntCmd
- func (c ClusterClient) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
- func (hs *ClusterClient) AddHook(hook Hook)
- func (c ClusterClient) Append(ctx context.Context, key, value string) *IntCmd
- func (c *ClusterClient) AsyncAutoPipeline() (*AutoPipeliner, error)
- func (c *ClusterClient) AsyncAutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (c *ClusterClient) AutoPipeline() (*AutoPipeliner, error)
- func (c *ClusterClient) AutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (c ClusterClient) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c ClusterClient) BFCard(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c ClusterClient) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c ClusterClient) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c ClusterClient) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c ClusterClient) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c ClusterClient) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c ClusterClient) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c ClusterClient) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c ClusterClient) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c ClusterClient) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c ClusterClient) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c ClusterClient) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c ClusterClient) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c ClusterClient) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c ClusterClient) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c ClusterClient) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c ClusterClient) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c ClusterClient) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c ClusterClient) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c ClusterClient) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringSliceCmd
- func (c ClusterClient) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c ClusterClient) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c ClusterClient) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmddeprecated
- func (c ClusterClient) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c ClusterClient) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c ClusterClient) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c ClusterClient) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c ClusterClient) BgSave(ctx context.Context) *StatusCmd
- func (c ClusterClient) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c ClusterClient) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c ClusterClient) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c ClusterClient) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c ClusterClient) BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c ClusterClient) BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c ClusterClient) BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c ClusterClient) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c ClusterClient) BitOpOne(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c ClusterClient) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c ClusterClient) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c ClusterClient) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c ClusterClient) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
- func (c ClusterClient) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c ClusterClient) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c ClusterClient) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c ClusterClient) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c ClusterClient) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c ClusterClient) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c ClusterClient) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c ClusterClient) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c ClusterClient) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c ClusterClient) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c ClusterClient) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c ClusterClient) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c ClusterClient) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c ClusterClient) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c ClusterClient) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c ClusterClient) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c ClusterClient) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c ClusterClient) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c ClusterClient) CMSInitByDim(ctx context.Context, key string, width, depth int64) *StatusCmd
- func (c ClusterClient) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c ClusterClient) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c ClusterClient) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c ClusterClient) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c ClusterClient) ClientGetName(ctx context.Context) *StringCmd
- func (c ClusterClient) ClientID(ctx context.Context) *IntCmd
- func (c ClusterClient) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c ClusterClient) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c ClusterClient) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c ClusterClient) ClientList(ctx context.Context) *StringCmd
- func (c ClusterClient) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
- func (c ClusterClient) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c ClusterClient) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
- func (c ClusterClient) ClientTrackingOff(ctx context.Context) *StatusCmd
- func (c ClusterClient) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
- func (c ClusterClient) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c ClusterClient) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c ClusterClient) ClientUnpause(ctx context.Context) *BoolCmd
- func (c *ClusterClient) Close() error
- func (c ClusterClient) ClusterAddSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c ClusterClient) ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c ClusterClient) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c ClusterClient) ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
- func (c ClusterClient) ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c ClusterClient) ClusterDelSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c ClusterClient) ClusterFailover(ctx context.Context) *StatusCmd
- func (c ClusterClient) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c ClusterClient) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
- func (c ClusterClient) ClusterInfo(ctx context.Context) *StringCmd
- func (c ClusterClient) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) ClusterLinks(ctx context.Context) *ClusterLinksCmd
- func (c ClusterClient) ClusterMeet(ctx context.Context, host, port string) *StatusCmd
- func (c ClusterClient) ClusterMyID(ctx context.Context) *StringCmd
- func (c ClusterClient) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c ClusterClient) ClusterNodes(ctx context.Context) *StringCmd
- func (c ClusterClient) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c ClusterClient) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c ClusterClient) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c ClusterClient) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c ClusterClient) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c ClusterClient) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmddeprecated
- func (c ClusterClient) ClusterSlots(ctx context.Context) *ClusterSlotsCmddeprecated
- func (c ClusterClient) Command(ctx context.Context) *CommandsInfoCmd
- func (c ClusterClient) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
- func (c ClusterClient) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
- func (c ClusterClient) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
- func (c ClusterClient) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
- func (c ClusterClient) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c ClusterClient) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c ClusterClient) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c ClusterClient) Copy(ctx context.Context, sourceKey, destKey string, db int, replace bool) *IntCmd
- func (c *ClusterClient) DBSize(ctx context.Context) *IntCmd
- func (c ClusterClient) DebugObject(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) Decr(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c ClusterClient) Del(ctx context.Context, keys ...string) *IntCmd
- func (c ClusterClient) DelExArgs(ctx context.Context, key string, a DelExArgs) *IntCmd
- func (c ClusterClient) Digest(ctx context.Context, key string) *DigestCmd
- func (c ClusterClient) Do(ctx context.Context, args ...interface{}) *Cmd
- func (c ClusterClient) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
- func (c ClusterClient) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
- func (c ClusterClient) Dump(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) Echo(ctx context.Context, message interface{}) *StringCmd
- func (c ClusterClient) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c ClusterClient) EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c ClusterClient) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c ClusterClient) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c ClusterClient) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c ClusterClient) Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c ClusterClient) ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c ClusterClient) ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c ClusterClient) ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c ClusterClient) ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c ClusterClient) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c ClusterClient) ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c ClusterClient) FCall(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c ClusterClient) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c ClusterClient) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c ClusterClient) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c ClusterClient) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c ClusterClient) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c ClusterClient) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c ClusterClient) FTAliasList(ctx context.Context, index string) *StringSliceCmd
- func (c ClusterClient) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c ClusterClient) FTAlter(ctx context.Context, index string, skipInitialScan bool, ...) *StatusCmd
- func (c ClusterClient) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmddeprecated
- func (c ClusterClient) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmddeprecated
- func (c ClusterClient) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c ClusterClient) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c ClusterClient) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c ClusterClient) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c ClusterClient) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c ClusterClient) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c ClusterClient) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c ClusterClient) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c ClusterClient) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c ClusterClient) FTExplainCli(ctx context.Context, key, path string) error
- func (c ClusterClient) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c ClusterClient) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, ...) *FTHybridCmd
- func (c ClusterClient) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
- func (c ClusterClient) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c ClusterClient) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c ClusterClient) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c ClusterClient) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c ClusterClient) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c ClusterClient) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c ClusterClient) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c ClusterClient) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c ClusterClient) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c ClusterClient) FT_List(ctx context.Context) *StringSliceCmd
- func (c ClusterClient) FlushAll(ctx context.Context) *StatusCmd
- func (c ClusterClient) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c ClusterClient) FlushDB(ctx context.Context) *StatusCmd
- func (c ClusterClient) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c *ClusterClient) ForEachMaster(ctx context.Context, fn func(ctx context.Context, client *Client) error) error
- func (c *ClusterClient) ForEachShard(ctx context.Context, fn func(ctx context.Context, client *Client) error) error
- func (c *ClusterClient) ForEachSlave(ctx context.Context, fn func(ctx context.Context, client *Client) error) error
- func (c ClusterClient) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c ClusterClient) FunctionDump(ctx context.Context) *StringCmd
- func (c ClusterClient) FunctionFlush(ctx context.Context) *StringCmd
- func (c ClusterClient) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c ClusterClient) FunctionKill(ctx context.Context) *StringCmd
- func (c ClusterClient) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c ClusterClient) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c ClusterClient) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c ClusterClient) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c ClusterClient) FunctionStats(ctx context.Context) *FunctionStatsCmd
- func (c ClusterClient) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
- func (c ClusterClient) GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
- func (c ClusterClient) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c ClusterClient) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c ClusterClient) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmddeprecated
- func (c ClusterClient) GeoRadiusByMember(ctx context.Context, key, member string, query *GeoRadiusQuery) *GeoLocationCmddeprecated
- func (c ClusterClient) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *GeoRadiusQuery) *IntCmd
- func (c ClusterClient) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c ClusterClient) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
- func (c ClusterClient) GeoSearchLocation(ctx context.Context, key string, q *GeoSearchLocationQuery) *GeoSearchLocationCmd
- func (c ClusterClient) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
- func (c ClusterClient) Get(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c ClusterClient) GetDel(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c ClusterClient) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c *ClusterClient) GetResolver() *commandInfoResolver
- func (c ClusterClient) GetSet(ctx context.Context, key string, value interface{}) *StringCmddeprecated
- func (c ClusterClient) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
- func (c ClusterClient) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c ClusterClient) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c ClusterClient) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c ClusterClient) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c ClusterClient) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c ClusterClient) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c ClusterClient) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c ClusterClient) HGet(ctx context.Context, key, field string) *StringCmd
- func (c ClusterClient) HGetAll(ctx context.Context, key string) *MapStringStringCmd
- func (c ClusterClient) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c ClusterClient) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c ClusterClient) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
- func (c *ClusterClient) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
- func (c *ClusterClient) HImportDiscardAll(ctx context.Context) *IntCmd
- func (c *ClusterClient) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
- func (c ClusterClient) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
- func (c ClusterClient) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c ClusterClient) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c ClusterClient) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c ClusterClient) HLen(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c ClusterClient) HMSet(ctx context.Context, key string, values ...interface{}) *BoolCmd
- func (c ClusterClient) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c ClusterClient) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c ClusterClient) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c ClusterClient) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c ClusterClient) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c ClusterClient) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c ClusterClient) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c ClusterClient) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
- func (c ClusterClient) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
- func (c ClusterClient) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c ClusterClient) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c ClusterClient) HSet(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c ClusterClient) HSetEX(ctx context.Context, key string, fieldsAndValues ...string) *IntCmd
- func (c ClusterClient) HSetEXWithArgs(ctx context.Context, key string, options *HSetEXOptions, ...) *IntCmd
- func (c ClusterClient) HSetNX(ctx context.Context, key, field string, value interface{}) *BoolCmd
- func (c ClusterClient) HStrLen(ctx context.Context, key, field string) *IntCmd
- func (c ClusterClient) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c ClusterClient) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c ClusterClient) Incr(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) IncrBy(ctx context.Context, key string, value int64) *IntCmd
- func (c ClusterClient) IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd
- func (c ClusterClient) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
- func (c ClusterClient) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
- func (c ClusterClient) Info(ctx context.Context, sections ...string) *StringCmd
- func (c ClusterClient) InfoMap(ctx context.Context, sections ...string) *InfoCmd
- func (c ClusterClient) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c ClusterClient) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c ClusterClient) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c ClusterClient) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c ClusterClient) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c ClusterClient) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c ClusterClient) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c ClusterClient) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c ClusterClient) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c ClusterClient) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c ClusterClient) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c ClusterClient) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c ClusterClient) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c ClusterClient) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c ClusterClient) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c ClusterClient) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c ClusterClient) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c ClusterClient) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c ClusterClient) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c ClusterClient) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c ClusterClient) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c ClusterClient) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c ClusterClient) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c ClusterClient) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, ...) *StatusCmd
- func (c ClusterClient) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c ClusterClient) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c ClusterClient) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c ClusterClient) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c ClusterClient) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c ClusterClient) LCS(ctx context.Context, q *LCSQuery) *LCSCmd
- func (c ClusterClient) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c ClusterClient) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *IntCmd
- func (c ClusterClient) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c ClusterClient) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c ClusterClient) LLen(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c ClusterClient) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c ClusterClient) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
- func (c ClusterClient) LPop(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c ClusterClient) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd
- func (c ClusterClient) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd
- func (c ClusterClient) LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c ClusterClient) LPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c ClusterClient) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c ClusterClient) LRem(ctx context.Context, key string, count int64, value interface{}) *IntCmd
- func (c ClusterClient) LSet(ctx context.Context, key string, index int64, value interface{}) *StatusCmd
- func (c ClusterClient) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c ClusterClient) LastSave(ctx context.Context) *IntCmd
- func (c ClusterClient) Latency(ctx context.Context) *LatencyCmd
- func (c ClusterClient) LatencyReset(ctx context.Context, events ...interface{}) *StatusCmd
- func (c ClusterClient) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c ClusterClient) MSet(ctx context.Context, values ...interface{}) *StatusCmd
- func (c ClusterClient) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
- func (c ClusterClient) MSetNX(ctx context.Context, values ...interface{}) *BoolCmd
- func (c *ClusterClient) MasterForKey(ctx context.Context, key string) (*Client, error)
- func (c ClusterClient) MemoryUsage(ctx context.Context, key string, samples ...int) *IntCmd
- func (c ClusterClient) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
- func (c ClusterClient) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c ClusterClient) Monitor(ctx context.Context, ch chan string) *MonitorCmd
- func (c ClusterClient) Move(ctx context.Context, key string, db int) *BoolCmd
- func (c *ClusterClient) NewDynamicResolver() *commandInfoResolver
- func (c ClusterClient) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) ObjectFreq(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c ClusterClient) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c *ClusterClient) OnNewNode(fn func(rdb *Client))
- func (c *ClusterClient) Options() *ClusterOptions
- func (c ClusterClient) PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c ClusterClient) PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c ClusterClient) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c ClusterClient) PFAdd(ctx context.Context, key string, els ...interface{}) *IntCmd
- func (c ClusterClient) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c ClusterClient) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (c *ClusterClient) PSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c ClusterClient) PTTL(ctx context.Context, key string) *DurationCmd
- func (c ClusterClient) Persist(ctx context.Context, key string) *BoolCmd
- func (c ClusterClient) Ping(ctx context.Context) *StatusCmd
- func (c *ClusterClient) Pipeline() Pipeliner
- func (c *ClusterClient) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *ClusterClient) PoolStats() *PoolStats
- func (c *ClusterClient) Process(ctx context.Context, cmd Cmder) error
- func (c ClusterClient) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c ClusterClient) PubSubNumPat(ctx context.Context) *IntCmd
- func (c ClusterClient) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c ClusterClient) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c ClusterClient) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c ClusterClient) Publish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c ClusterClient) Quit(_ context.Context) *StatusCmddeprecated
- func (c ClusterClient) RPop(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c ClusterClient) RPopLPush(ctx context.Context, source, destination string) *StringCmddeprecated
- func (c ClusterClient) RPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c ClusterClient) RPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c ClusterClient) RandomKey(ctx context.Context) *StringCmd
- func (c ClusterClient) ReadOnly(ctx context.Context) *StatusCmd
- func (c ClusterClient) ReadWrite(ctx context.Context) *StatusCmd
- func (c *ClusterClient) ReloadState(ctx context.Context)
- func (c ClusterClient) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c ClusterClient) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c ClusterClient) ReplicaOf(ctx context.Context, host, port string) *StatusCmd
- func (c ClusterClient) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c ClusterClient) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c ClusterClient) SAdd(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c ClusterClient) SCard(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c ClusterClient) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
- func (c ClusterClient) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c ClusterClient) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c ClusterClient) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c ClusterClient) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c ClusterClient) SIsMember(ctx context.Context, key string, member interface{}) *BoolCmd
- func (c ClusterClient) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
- func (c ClusterClient) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c ClusterClient) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c ClusterClient) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
- func (c ClusterClient) SPop(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c ClusterClient) SPublish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c ClusterClient) SRandMember(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c ClusterClient) SRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c ClusterClient) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *ClusterClient) SSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c ClusterClient) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c ClusterClient) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
- func (c ClusterClient) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c ClusterClient) Save(ctx context.Context) *StatusCmd
- func (c ClusterClient) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c ClusterClient) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (c *ClusterClient) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (c *ClusterClient) ScriptFlush(ctx context.Context) *StatusCmd
- func (c ClusterClient) ScriptKill(ctx context.Context) *StatusCmd
- func (c *ClusterClient) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c ClusterClient) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
- func (c ClusterClient) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
- func (c ClusterClient) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd
- func (c *ClusterClient) SetCommandInfoResolver(cmdInfoResolver *commandInfoResolver)
- func (c ClusterClient) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmddeprecated
- func (c ClusterClient) SetFromBuffer(ctx context.Context, key string, buf []byte) *StatusCmd
- func (c ClusterClient) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c ClusterClient) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c ClusterClient) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c ClusterClient) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c ClusterClient) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c ClusterClient) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c ClusterClient) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c ClusterClient) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c ClusterClient) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c ClusterClient) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c ClusterClient) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c ClusterClient) Shutdown(ctx context.Context) *StatusCmd
- func (c ClusterClient) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c ClusterClient) ShutdownSave(ctx context.Context) *StatusCmd
- func (c *ClusterClient) SlaveForKey(ctx context.Context, key string) (*Client, error)
- func (c ClusterClient) SlaveOf(ctx context.Context, host, port string) *StatusCmddeprecated
- func (c ClusterClient) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
- func (c ClusterClient) SlowLogLen(ctx context.Context) *IntCmd
- func (c ClusterClient) SlowLogReset(ctx context.Context) *StatusCmd
- func (c ClusterClient) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c ClusterClient) SortInterfaces(ctx context.Context, key string, sort *Sort) *SliceCmd
- func (c ClusterClient) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c ClusterClient) SortStore(ctx context.Context, key, store string, sort *Sort) *IntCmd
- func (c ClusterClient) StrLen(ctx context.Context, key string) *IntCmd
- func (c *ClusterClient) Subscribe(ctx context.Context, channels ...string) *PubSub
- func (c ClusterClient) Sync(_ context.Context)
- func (c ClusterClient) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c ClusterClient) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c ClusterClient) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c ClusterClient) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c ClusterClient) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c ClusterClient) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c ClusterClient) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c ClusterClient) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c ClusterClient) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c ClusterClient) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c ClusterClient) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c ClusterClient) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c ClusterClient) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c ClusterClient) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c ClusterClient) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c ClusterClient) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c ClusterClient) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c ClusterClient) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c ClusterClient) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c ClusterClient) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c ClusterClient) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c ClusterClient) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c ClusterClient) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c ClusterClient) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c ClusterClient) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c ClusterClient) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c ClusterClient) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c ClusterClient) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c ClusterClient) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c ClusterClient) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c ClusterClient) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c ClusterClient) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c ClusterClient) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c ClusterClient) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c ClusterClient) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c ClusterClient) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c ClusterClient) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c ClusterClient) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c ClusterClient) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c ClusterClient) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c ClusterClient) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c ClusterClient) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c ClusterClient) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c ClusterClient) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c ClusterClient) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
- func (c ClusterClient) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c ClusterClient) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c ClusterClient) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c ClusterClient) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
- func (c ClusterClient) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
- func (c ClusterClient) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c ClusterClient) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c ClusterClient) TTL(ctx context.Context, key string) *DurationCmd
- func (c ClusterClient) Time(ctx context.Context) *TimeCmd
- func (c ClusterClient) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c ClusterClient) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c ClusterClient) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c ClusterClient) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c ClusterClient) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c ClusterClient) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c ClusterClient) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c ClusterClient) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c ClusterClient) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c ClusterClient) Touch(ctx context.Context, keys ...string) *IntCmd
- func (c *ClusterClient) TxPipeline() Pipeliner
- func (c *ClusterClient) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c ClusterClient) Type(ctx context.Context, key string) *StatusCmd
- func (c ClusterClient) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c ClusterClient) VAdd(ctx context.Context, key, element string, val Vector) *BoolCmd
- func (c ClusterClient) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
- func (c ClusterClient) VCard(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) VClearAttributes(ctx context.Context, key, element string) *BoolCmd
- func (c ClusterClient) VDim(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) VEmb(ctx context.Context, key, element string, raw bool) *SliceCmd
- func (c ClusterClient) VGetAttr(ctx context.Context, key, element string) *StringCmd
- func (c ClusterClient) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c ClusterClient) VIsMember(ctx context.Context, key, element string) *BoolCmd
- func (c ClusterClient) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
- func (c ClusterClient) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
- func (c ClusterClient) VRandMember(ctx context.Context, key string) *StringCmd
- func (c ClusterClient) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c ClusterClient) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
- func (c ClusterClient) VRem(ctx context.Context, key, element string) *BoolCmd
- func (c ClusterClient) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
- func (c ClusterClient) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
- func (c ClusterClient) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
- func (c ClusterClient) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
- func (c ClusterClient) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
- func (c ClusterClient) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
- func (c ClusterClient) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
- func (c ClusterClient) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd
- func (c ClusterClient) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntSliceCmd
- func (c *ClusterClient) Watch(ctx context.Context, fn func(*Tx) error, keys ...string) error
- func (c ClusterClient) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c ClusterClient) XAckDel(ctx context.Context, stream string, group string, mode string, ids ...string) *SliceCmd
- func (c ClusterClient) XAdd(ctx context.Context, a *XAddArgs) *StringCmd
- func (c ClusterClient) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
- func (c ClusterClient) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c ClusterClient) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
- func (c ClusterClient) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
- func (c ClusterClient) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
- func (c ClusterClient) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
- func (c ClusterClient) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c ClusterClient) XDelEx(ctx context.Context, stream string, mode string, ids ...string) *SliceCmd
- func (c ClusterClient) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c ClusterClient) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c ClusterClient) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c ClusterClient) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c ClusterClient) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c ClusterClient) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c ClusterClient) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
- func (c ClusterClient) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c ClusterClient) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c ClusterClient) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
- func (c ClusterClient) XLen(ctx context.Context, stream string) *IntCmd
- func (c ClusterClient) XNack(ctx context.Context, a *XNackArgs) *IntCmd
- func (c ClusterClient) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c ClusterClient) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
- func (c ClusterClient) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c ClusterClient) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c ClusterClient) XRead(ctx context.Context, a *XReadArgs) *XStreamSliceCmd
- func (c ClusterClient) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
- func (c ClusterClient) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c ClusterClient) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c ClusterClient) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c ClusterClient) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c ClusterClient) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c ClusterClient) XTrimMaxLenApproxMode(ctx context.Context, key string, maxLen, limit int64, mode string) *IntCmd
- func (c ClusterClient) XTrimMaxLenMode(ctx context.Context, key string, maxLen int64, mode string) *IntCmd
- func (c ClusterClient) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c ClusterClient) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c ClusterClient) XTrimMinIDApproxMode(ctx context.Context, key string, minID string, limit int64, mode string) *IntCmd
- func (c ClusterClient) XTrimMinIDMode(ctx context.Context, key string, minID string, mode string) *IntCmd
- func (c ClusterClient) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c ClusterClient) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c ClusterClient) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c ClusterClient) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c ClusterClient) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c ClusterClient) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c ClusterClient) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c ClusterClient) ZCard(ctx context.Context, key string) *IntCmd
- func (c ClusterClient) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c ClusterClient) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c ClusterClient) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c ClusterClient) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c ClusterClient) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c ClusterClient) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd
- func (c ClusterClient) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c ClusterClient) ZInterStore(ctx context.Context, destination string, store *ZStore) *IntCmd
- func (c ClusterClient) ZInterWithScores(ctx context.Context, store *ZStore) *ZSliceCmd
- func (c ClusterClient) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c ClusterClient) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c ClusterClient) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c ClusterClient) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c ClusterClient) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c ClusterClient) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
- func (c ClusterClient) ZRandMemberWithScores(ctx context.Context, key string, count int) *ZSliceCmd
- func (c ClusterClient) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c ClusterClient) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c ClusterClient) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c ClusterClient) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c ClusterClient) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c ClusterClient) ZRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c ClusterClient) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c ClusterClient) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c ClusterClient) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c ClusterClient) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c ClusterClient) ZRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c ClusterClient) ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd
- func (c ClusterClient) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c ClusterClient) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c ClusterClient) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmddeprecated
- func (c ClusterClient) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c ClusterClient) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c ClusterClient) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c ClusterClient) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c ClusterClient) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c ClusterClient) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c ClusterClient) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c ClusterClient) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c ClusterClient) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c ClusterClient) ZUnionStore(ctx context.Context, dest string, store *ZStore) *IntCmd
- func (c ClusterClient) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type ClusterCmdable
- type ClusterLink
- type ClusterLinksCmd
- func (cmd *ClusterLinksCmd) Args() []interface{}
- func (cmd *ClusterLinksCmd) Clone() Cmder
- func (cmd *ClusterLinksCmd) Err() error
- func (cmd *ClusterLinksCmd) FullName() string
- func (cmd *ClusterLinksCmd) GetCmdType() CmdType
- func (cmd *ClusterLinksCmd) Name() string
- func (cmd *ClusterLinksCmd) NoRetry() bool
- func (cmd *ClusterLinksCmd) Result() ([]ClusterLink, error)
- func (cmd *ClusterLinksCmd) SetErr(e error)
- func (cmd *ClusterLinksCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ClusterLinksCmd) SetStepCount(stepCount int8)
- func (cmd *ClusterLinksCmd) SetVal(val []ClusterLink)
- func (cmd *ClusterLinksCmd) String() string
- func (cmd *ClusterLinksCmd) Val() []ClusterLink
- type ClusterNode
- type ClusterOptions
- type ClusterShard
- type ClusterShardsCmd
- func (cmd *ClusterShardsCmd) Args() []interface{}
- func (cmd *ClusterShardsCmd) Clone() Cmder
- func (cmd *ClusterShardsCmd) Err() error
- func (cmd *ClusterShardsCmd) FullName() string
- func (cmd *ClusterShardsCmd) GetCmdType() CmdType
- func (cmd *ClusterShardsCmd) Name() string
- func (cmd *ClusterShardsCmd) NoRetry() bool
- func (cmd *ClusterShardsCmd) Result() ([]ClusterShard, error)
- func (cmd *ClusterShardsCmd) SetErr(e error)
- func (cmd *ClusterShardsCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ClusterShardsCmd) SetStepCount(stepCount int8)
- func (cmd *ClusterShardsCmd) SetVal(val []ClusterShard)
- func (cmd *ClusterShardsCmd) String() string
- func (cmd *ClusterShardsCmd) Val() []ClusterShard
- type ClusterSlot
- type ClusterSlotsCmd
- func (cmd *ClusterSlotsCmd) Args() []interface{}
- func (cmd *ClusterSlotsCmd) Clone() Cmder
- func (cmd *ClusterSlotsCmd) Err() error
- func (cmd *ClusterSlotsCmd) FullName() string
- func (cmd *ClusterSlotsCmd) GetCmdType() CmdType
- func (cmd *ClusterSlotsCmd) Name() string
- func (cmd *ClusterSlotsCmd) NoRetry() bool
- func (cmd *ClusterSlotsCmd) Result() ([]ClusterSlot, error)
- func (cmd *ClusterSlotsCmd) SetErr(e error)
- func (cmd *ClusterSlotsCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ClusterSlotsCmd) SetStepCount(stepCount int8)
- func (cmd *ClusterSlotsCmd) SetVal(val []ClusterSlot)
- func (cmd *ClusterSlotsCmd) String() string
- func (cmd *ClusterSlotsCmd) Val() []ClusterSlot
- type Cmd
- func (cmd *Cmd) Args() []interface{}
- func (cmd *Cmd) Bool() (bool, error)
- func (cmd *Cmd) BoolSlice() ([]bool, error)
- func (cmd *Cmd) Clone() Cmder
- 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) FullName() string
- func (cmd *Cmd) GetCmdType() CmdType
- func (cmd *Cmd) Int() (int, error)
- func (cmd *Cmd) Int64() (int64, error)
- func (cmd *Cmd) Int64Slice() ([]int64, error)
- func (cmd *Cmd) Name() string
- func (cmd *Cmd) NoRetry() bool
- func (cmd *Cmd) Result() (interface{}, error)
- func (cmd *Cmd) SetErr(e error)
- func (cmd *Cmd) SetFirstKeyPos(keyPos int8)
- func (cmd *Cmd) SetStepCount(stepCount int8)
- func (cmd *Cmd) SetVal(val interface{})
- func (cmd *Cmd) Slice() ([]interface{}, error)
- func (cmd *Cmd) String() string
- 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() interface{}
- type CmdType
- type CmdTypeGetter
- type CmdTypeKeyValuesValue
- type CmdTypeScanValue
- type CmdTypeXAutoClaimJustIDValue
- type CmdTypeXAutoClaimValue
- type CmdTypeXAutoClaimWithDeletedValue
- type CmdTypeZSliceWithKeyValue
- type CmdTyper
- type Cmdable
- type Cmder
- type CollectColumn
- type CollectEntry
- type CommandInfo
- type CommandInfoResolveFunc
- type CommandsInfoCmd
- func (cmd *CommandsInfoCmd) Args() []interface{}
- func (cmd *CommandsInfoCmd) Clone() Cmder
- func (cmd *CommandsInfoCmd) Err() error
- func (cmd *CommandsInfoCmd) FullName() string
- func (cmd *CommandsInfoCmd) GetCmdType() CmdType
- func (cmd *CommandsInfoCmd) Name() string
- func (cmd *CommandsInfoCmd) NoRetry() bool
- func (cmd *CommandsInfoCmd) Result() (map[string]*CommandInfo, error)
- func (cmd *CommandsInfoCmd) SetErr(e error)
- func (cmd *CommandsInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *CommandsInfoCmd) SetStepCount(stepCount int8)
- func (cmd *CommandsInfoCmd) SetVal(val map[string]*CommandInfo)
- func (cmd *CommandsInfoCmd) String() string
- func (cmd *CommandsInfoCmd) Val() map[string]*CommandInfo
- type Conn
- func (c Conn) ACLCat(ctx context.Context) *StringSliceCmd
- func (c Conn) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
- func (c Conn) ACLDelUser(ctx context.Context, username string) *IntCmd
- func (c Conn) ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
- func (c Conn) ACLGenPass(ctx context.Context, bit int) *StringCmd
- func (c Conn) ACLList(ctx context.Context) *StringSliceCmd
- func (c Conn) ACLLog(ctx context.Context, count int64) *ACLLogCmd
- func (c Conn) ACLLogReset(ctx context.Context) *StatusCmd
- func (c Conn) ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
- func (c Conn) ACLUsers(ctx context.Context) *StringSliceCmd
- func (c Conn) ACLWhoAmI(ctx context.Context) *StringCmd
- func (c Conn) ARCount(ctx context.Context, key string) *UintCmd
- func (c Conn) ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
- func (c Conn) ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
- func (c Conn) ARGet(ctx context.Context, key string, index uint64) *StringCmd
- func (c Conn) ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
- func (c Conn) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
- func (c Conn) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
- func (c Conn) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Conn) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Conn) ARInsert(ctx context.Context, key string, values ...string) *UintCmd
- func (c Conn) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
- func (c Conn) ARLen(ctx context.Context, key string) *UintCmd
- func (c Conn) ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
- func (c Conn) ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
- func (c Conn) ARNext(ctx context.Context, key string) *UintCmd
- func (c Conn) AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Conn) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
- func (c Conn) AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Conn) AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Conn) AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Conn) AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Conn) AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Conn) AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Conn) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
- func (c Conn) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
- func (c Conn) ARSeek(ctx context.Context, key string, index uint64) *IntCmd
- func (c Conn) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
- func (c Conn) Append(ctx context.Context, key, value string) *IntCmd
- func (c Conn) Auth(ctx context.Context, password string) *StatusCmd
- func (c Conn) AuthACL(ctx context.Context, username, password string) *StatusCmd
- func (c Conn) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Conn) BFCard(ctx context.Context, key string) *IntCmd
- func (c Conn) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Conn) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c Conn) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c Conn) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c Conn) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c Conn) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c Conn) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c Conn) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c Conn) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c Conn) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Conn) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Conn) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Conn) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Conn) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c Conn) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Conn) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c Conn) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Conn) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c Conn) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c Conn) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringSliceCmd
- func (c Conn) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Conn) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Conn) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmddeprecated
- func (c Conn) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c Conn) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Conn) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Conn) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c Conn) BgSave(ctx context.Context) *StatusCmd
- func (c Conn) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c Conn) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Conn) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Conn) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Conn) BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Conn) BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Conn) BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Conn) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c Conn) BitOpOne(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Conn) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Conn) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Conn) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c Conn) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
- func (c Conn) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Conn) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Conn) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c Conn) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Conn) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Conn) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c Conn) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c Conn) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c Conn) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Conn) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Conn) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c Conn) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c Conn) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c Conn) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c Conn) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c Conn) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Conn) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Conn) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c Conn) CMSInitByDim(ctx context.Context, key string, width, depth int64) *StatusCmd
- func (c Conn) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c Conn) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c Conn) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c Conn) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Conn) ClientGetName(ctx context.Context) *StringCmd
- func (c Conn) ClientID(ctx context.Context) *IntCmd
- func (c Conn) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c Conn) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c Conn) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c Conn) ClientList(ctx context.Context) *StringCmd
- func (c Conn) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
- func (c Conn) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c Conn) ClientSetInfo(ctx context.Context, info LibraryInfo) *StatusCmd
- func (c Conn) ClientSetName(ctx context.Context, name string) *BoolCmd
- func (c Conn) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
- func (c Conn) ClientTrackingOff(ctx context.Context) *StatusCmd
- func (c Conn) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
- func (c Conn) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c Conn) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c Conn) ClientUnpause(ctx context.Context) *BoolCmd
- func (c *Conn) Close() error
- func (c Conn) ClusterAddSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Conn) ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Conn) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c Conn) ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
- func (c Conn) ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Conn) ClusterDelSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Conn) ClusterFailover(ctx context.Context) *StatusCmd
- func (c Conn) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c Conn) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
- func (c Conn) ClusterInfo(ctx context.Context) *StringCmd
- func (c Conn) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c Conn) ClusterLinks(ctx context.Context) *ClusterLinksCmd
- func (c Conn) ClusterMeet(ctx context.Context, host, port string) *StatusCmd
- func (c Conn) ClusterMyID(ctx context.Context) *StringCmd
- func (c Conn) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c Conn) ClusterNodes(ctx context.Context) *StringCmd
- func (c Conn) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c Conn) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c Conn) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c Conn) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c Conn) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c Conn) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmddeprecated
- func (c Conn) ClusterSlots(ctx context.Context) *ClusterSlotsCmddeprecated
- func (c Conn) Command(ctx context.Context) *CommandsInfoCmd
- func (c Conn) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
- func (c Conn) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
- func (c Conn) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
- func (c Conn) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
- func (c Conn) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c Conn) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c Conn) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c Conn) Copy(ctx context.Context, sourceKey, destKey string, db int, replace bool) *IntCmd
- func (c Conn) DBSize(ctx context.Context) *IntCmd
- func (c Conn) DebugObject(ctx context.Context, key string) *StringCmd
- func (c Conn) Decr(ctx context.Context, key string) *IntCmd
- func (c Conn) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c Conn) Del(ctx context.Context, keys ...string) *IntCmd
- func (c Conn) DelExArgs(ctx context.Context, key string, a DelExArgs) *IntCmd
- func (c Conn) Digest(ctx context.Context, key string) *DigestCmd
- func (c Conn) Do(ctx context.Context, args ...interface{}) *Cmd
- func (c Conn) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
- func (c Conn) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
- func (c Conn) Dump(ctx context.Context, key string) *StringCmd
- func (c Conn) Echo(ctx context.Context, message interface{}) *StringCmd
- func (c Conn) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Conn) EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Conn) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Conn) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Conn) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c Conn) Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Conn) ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Conn) ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Conn) ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Conn) ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Conn) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Conn) ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Conn) FCall(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Conn) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Conn) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Conn) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c Conn) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c Conn) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c Conn) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c Conn) FTAliasList(ctx context.Context, index string) *StringSliceCmd
- func (c Conn) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c Conn) FTAlter(ctx context.Context, index string, skipInitialScan bool, ...) *StatusCmd
- func (c Conn) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmddeprecated
- func (c Conn) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmddeprecated
- func (c Conn) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c Conn) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c Conn) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c Conn) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Conn) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Conn) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c Conn) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c Conn) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c Conn) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c Conn) FTExplainCli(ctx context.Context, key, path string) error
- func (c Conn) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c Conn) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, ...) *FTHybridCmd
- func (c Conn) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
- func (c Conn) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c Conn) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c Conn) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c Conn) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c Conn) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c Conn) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c Conn) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c Conn) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c Conn) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c Conn) FT_List(ctx context.Context) *StringSliceCmd
- func (c Conn) FlushAll(ctx context.Context) *StatusCmd
- func (c Conn) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c Conn) FlushDB(ctx context.Context) *StatusCmd
- func (c Conn) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c Conn) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c Conn) FunctionDump(ctx context.Context) *StringCmd
- func (c Conn) FunctionFlush(ctx context.Context) *StringCmd
- func (c Conn) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c Conn) FunctionKill(ctx context.Context) *StringCmd
- func (c Conn) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c Conn) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c Conn) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c Conn) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c Conn) FunctionStats(ctx context.Context) *FunctionStatsCmd
- func (c Conn) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
- func (c Conn) GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
- func (c Conn) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c Conn) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c Conn) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmddeprecated
- func (c Conn) GeoRadiusByMember(ctx context.Context, key, member string, query *GeoRadiusQuery) *GeoLocationCmddeprecated
- func (c Conn) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *GeoRadiusQuery) *IntCmd
- func (c Conn) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c Conn) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
- func (c Conn) GeoSearchLocation(ctx context.Context, key string, q *GeoSearchLocationQuery) *GeoSearchLocationCmd
- func (c Conn) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
- func (c Conn) Get(ctx context.Context, key string) *StringCmd
- func (c Conn) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c Conn) GetDel(ctx context.Context, key string) *StringCmd
- func (c Conn) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c Conn) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c Conn) GetSet(ctx context.Context, key string, value interface{}) *StringCmddeprecated
- func (c Conn) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
- func (c Conn) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c Conn) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c Conn) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Conn) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Conn) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Conn) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Conn) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Conn) HGet(ctx context.Context, key, field string) *StringCmd
- func (c Conn) HGetAll(ctx context.Context, key string) *MapStringStringCmd
- func (c Conn) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Conn) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Conn) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
- func (c Conn) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
- func (c Conn) HImportDiscardAll(ctx context.Context) *IntCmd
- func (c Conn) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
- func (c Conn) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
- func (c Conn) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c Conn) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c Conn) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c Conn) HLen(ctx context.Context, key string) *IntCmd
- func (c Conn) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c Conn) HMSet(ctx context.Context, key string, values ...interface{}) *BoolCmd
- func (c Conn) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Conn) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Conn) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Conn) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Conn) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Conn) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Conn) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Conn) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Conn) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
- func (c Conn) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Conn) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Conn) HSet(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Conn) HSetEX(ctx context.Context, key string, fieldsAndValues ...string) *IntCmd
- func (c Conn) HSetEXWithArgs(ctx context.Context, key string, options *HSetEXOptions, ...) *IntCmd
- func (c Conn) HSetNX(ctx context.Context, key, field string, value interface{}) *BoolCmd
- func (c Conn) HStrLen(ctx context.Context, key, field string) *IntCmd
- func (c Conn) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Conn) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c Conn) Hello(ctx context.Context, ver int, username, password, clientName string) *MapStringInterfaceCmd
- func (c Conn) Incr(ctx context.Context, key string) *IntCmd
- func (c Conn) IncrBy(ctx context.Context, key string, value int64) *IntCmd
- func (c Conn) IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd
- func (c Conn) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
- func (c Conn) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
- func (c Conn) Info(ctx context.Context, sections ...string) *StringCmd
- func (c Conn) InfoMap(ctx context.Context, sections ...string) *InfoCmd
- func (c Conn) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c Conn) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c Conn) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c Conn) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c Conn) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c Conn) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c Conn) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c Conn) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c Conn) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c Conn) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c Conn) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c Conn) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c Conn) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c Conn) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c Conn) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c Conn) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c Conn) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c Conn) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c Conn) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c Conn) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c Conn) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Conn) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c Conn) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c Conn) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, ...) *StatusCmd
- func (c Conn) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c Conn) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Conn) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Conn) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c Conn) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c Conn) LCS(ctx context.Context, q *LCSQuery) *LCSCmd
- func (c Conn) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c Conn) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *IntCmd
- func (c Conn) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Conn) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Conn) LLen(ctx context.Context, key string) *IntCmd
- func (c Conn) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c Conn) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c Conn) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
- func (c Conn) LPop(ctx context.Context, key string) *StringCmd
- func (c Conn) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Conn) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd
- func (c Conn) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd
- func (c Conn) LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Conn) LPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Conn) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Conn) LRem(ctx context.Context, key string, count int64, value interface{}) *IntCmd
- func (c Conn) LSet(ctx context.Context, key string, index int64, value interface{}) *StatusCmd
- func (c Conn) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c Conn) LastSave(ctx context.Context) *IntCmd
- func (c Conn) Latency(ctx context.Context) *LatencyCmd
- func (c Conn) LatencyReset(ctx context.Context, events ...interface{}) *StatusCmd
- func (c Conn) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c Conn) MSet(ctx context.Context, values ...interface{}) *StatusCmd
- func (c Conn) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
- func (c Conn) MSetNX(ctx context.Context, values ...interface{}) *BoolCmd
- func (c Conn) MemoryUsage(ctx context.Context, key string, samples ...int) *IntCmd
- func (c Conn) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
- func (c Conn) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c Conn) Monitor(ctx context.Context, ch chan string) *MonitorCmd
- func (c Conn) Move(ctx context.Context, key string, db int) *BoolCmd
- func (c Conn) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c Conn) ObjectFreq(ctx context.Context, key string) *IntCmd
- func (c Conn) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c Conn) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c Conn) PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Conn) PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Conn) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Conn) PFAdd(ctx context.Context, key string, els ...interface{}) *IntCmd
- func (c Conn) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c Conn) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (c Conn) PTTL(ctx context.Context, key string) *DurationCmd
- func (c Conn) Persist(ctx context.Context, key string) *BoolCmd
- func (c Conn) Ping(ctx context.Context) *StatusCmd
- func (c *Conn) Pipeline() Pipeliner
- func (c *Conn) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Conn) Process(ctx context.Context, cmd Cmder) error
- func (c Conn) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Conn) PubSubNumPat(ctx context.Context) *IntCmd
- func (c Conn) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Conn) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Conn) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Conn) Publish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Conn) Quit(_ context.Context) *StatusCmddeprecated
- func (c Conn) RPop(ctx context.Context, key string) *StringCmd
- func (c Conn) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Conn) RPopLPush(ctx context.Context, source, destination string) *StringCmddeprecated
- func (c Conn) RPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Conn) RPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Conn) RandomKey(ctx context.Context) *StringCmd
- func (c Conn) ReadOnly(ctx context.Context) *StatusCmd
- func (c Conn) ReadWrite(ctx context.Context) *StatusCmd
- func (c *Conn) RegisterPushNotificationHandler(pushNotificationName string, handler push.NotificationHandler, protected bool) error
- func (c Conn) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c Conn) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c Conn) ReplicaOf(ctx context.Context, host, port string) *StatusCmd
- func (c Conn) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Conn) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Conn) SAdd(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Conn) SCard(ctx context.Context, key string) *IntCmd
- func (c Conn) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Conn) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
- func (c Conn) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Conn) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Conn) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Conn) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Conn) SIsMember(ctx context.Context, key string, member interface{}) *BoolCmd
- func (c Conn) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
- func (c Conn) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c Conn) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c Conn) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
- func (c Conn) SPop(ctx context.Context, key string) *StringCmd
- func (c Conn) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Conn) SPublish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Conn) SRandMember(ctx context.Context, key string) *StringCmd
- func (c Conn) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Conn) SRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Conn) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Conn) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Conn) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
- func (c Conn) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Conn) Save(ctx context.Context) *StatusCmd
- func (c Conn) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c Conn) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (c Conn) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (c Conn) ScriptFlush(ctx context.Context) *StatusCmd
- func (c Conn) ScriptKill(ctx context.Context) *StatusCmd
- func (c Conn) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c Conn) Select(ctx context.Context, index int) *StatusCmd
- func (c Conn) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
- func (c Conn) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
- func (c Conn) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd
- func (c Conn) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmddeprecated
- func (c Conn) SetFromBuffer(ctx context.Context, key string, buf []byte) *StatusCmd
- func (c Conn) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Conn) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Conn) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Conn) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Conn) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Conn) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Conn) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Conn) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Conn) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Conn) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c Conn) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Conn) Shutdown(ctx context.Context) *StatusCmd
- func (c Conn) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c Conn) ShutdownSave(ctx context.Context) *StatusCmd
- func (c Conn) SlaveOf(ctx context.Context, host, port string) *StatusCmddeprecated
- func (c Conn) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
- func (c Conn) SlowLogLen(ctx context.Context) *IntCmd
- func (c Conn) SlowLogReset(ctx context.Context) *StatusCmd
- func (c Conn) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Conn) SortInterfaces(ctx context.Context, key string, sort *Sort) *SliceCmd
- func (c Conn) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Conn) SortStore(ctx context.Context, key, store string, sort *Sort) *IntCmd
- func (c Conn) StrLen(ctx context.Context, key string) *IntCmd
- func (c *Conn) String() string
- func (c Conn) SwapDB(ctx context.Context, index1, index2 int) *StatusCmd
- func (c Conn) Sync(_ context.Context)
- func (c Conn) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c Conn) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Conn) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Conn) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Conn) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c Conn) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c Conn) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c Conn) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c Conn) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c Conn) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c Conn) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Conn) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Conn) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c Conn) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Conn) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c Conn) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c Conn) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c Conn) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c Conn) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c Conn) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Conn) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Conn) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c Conn) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Conn) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Conn) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c Conn) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c Conn) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c Conn) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c Conn) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Conn) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Conn) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Conn) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c Conn) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c Conn) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c Conn) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c Conn) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Conn) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Conn) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Conn) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Conn) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Conn) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Conn) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Conn) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Conn) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Conn) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
- func (c Conn) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Conn) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Conn) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Conn) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
- func (c Conn) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
- func (c Conn) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Conn) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Conn) TTL(ctx context.Context, key string) *DurationCmd
- func (c Conn) Time(ctx context.Context) *TimeCmd
- func (c Conn) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Conn) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Conn) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Conn) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c Conn) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c Conn) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c Conn) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Conn) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c Conn) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c Conn) Touch(ctx context.Context, keys ...string) *IntCmd
- func (c *Conn) TxPipeline() Pipeliner
- func (c *Conn) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c Conn) Type(ctx context.Context, key string) *StatusCmd
- func (c Conn) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c Conn) VAdd(ctx context.Context, key, element string, val Vector) *BoolCmd
- func (c Conn) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
- func (c Conn) VCard(ctx context.Context, key string) *IntCmd
- func (c Conn) VClearAttributes(ctx context.Context, key, element string) *BoolCmd
- func (c Conn) VDim(ctx context.Context, key string) *IntCmd
- func (c Conn) VEmb(ctx context.Context, key, element string, raw bool) *SliceCmd
- func (c Conn) VGetAttr(ctx context.Context, key, element string) *StringCmd
- func (c Conn) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Conn) VIsMember(ctx context.Context, key, element string) *BoolCmd
- func (c Conn) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
- func (c Conn) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
- func (c Conn) VRandMember(ctx context.Context, key string) *StringCmd
- func (c Conn) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Conn) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
- func (c Conn) VRem(ctx context.Context, key, element string) *BoolCmd
- func (c Conn) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
- func (c Conn) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
- func (c Conn) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
- func (c Conn) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
- func (c Conn) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
- func (c Conn) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
- func (c Conn) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
- func (c Conn) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd
- func (c Conn) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntSliceCmd
- func (c Conn) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c Conn) XAckDel(ctx context.Context, stream string, group string, mode string, ids ...string) *SliceCmd
- func (c Conn) XAdd(ctx context.Context, a *XAddArgs) *StringCmd
- func (c Conn) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
- func (c Conn) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c Conn) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
- func (c Conn) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
- func (c Conn) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
- func (c Conn) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
- func (c Conn) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c Conn) XDelEx(ctx context.Context, stream string, mode string, ids ...string) *SliceCmd
- func (c Conn) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Conn) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Conn) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Conn) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Conn) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c Conn) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Conn) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
- func (c Conn) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c Conn) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c Conn) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
- func (c Conn) XLen(ctx context.Context, stream string) *IntCmd
- func (c Conn) XNack(ctx context.Context, a *XNackArgs) *IntCmd
- func (c Conn) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c Conn) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
- func (c Conn) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Conn) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Conn) XRead(ctx context.Context, a *XReadArgs) *XStreamSliceCmd
- func (c Conn) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
- func (c Conn) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c Conn) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Conn) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Conn) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c Conn) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c Conn) XTrimMaxLenApproxMode(ctx context.Context, key string, maxLen, limit int64, mode string) *IntCmd
- func (c Conn) XTrimMaxLenMode(ctx context.Context, key string, maxLen int64, mode string) *IntCmd
- func (c Conn) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c Conn) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c Conn) XTrimMinIDApproxMode(ctx context.Context, key string, minID string, limit int64, mode string) *IntCmd
- func (c Conn) XTrimMinIDMode(ctx context.Context, key string, minID string, mode string) *IntCmd
- func (c Conn) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Conn) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c Conn) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c Conn) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Conn) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Conn) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Conn) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Conn) ZCard(ctx context.Context, key string) *IntCmd
- func (c Conn) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Conn) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Conn) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Conn) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c Conn) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c Conn) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd
- func (c Conn) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Conn) ZInterStore(ctx context.Context, destination string, store *ZStore) *IntCmd
- func (c Conn) ZInterWithScores(ctx context.Context, store *ZStore) *ZSliceCmd
- func (c Conn) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Conn) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c Conn) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c Conn) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Conn) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Conn) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Conn) ZRandMemberWithScores(ctx context.Context, key string, count int) *ZSliceCmd
- func (c Conn) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Conn) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c Conn) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c Conn) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Conn) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Conn) ZRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Conn) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c Conn) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Conn) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c Conn) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Conn) ZRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Conn) ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd
- func (c Conn) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c Conn) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c Conn) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmddeprecated
- func (c Conn) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Conn) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Conn) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Conn) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Conn) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c Conn) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Conn) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Conn) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c Conn) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c Conn) ZUnionStore(ctx context.Context, dest string, store *ZStore) *IntCmd
- func (c Conn) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type ConnInfo
- type ConsistentHash
- type CreateIndexBuilder
- func (b *CreateIndexBuilder) DefaultLanguage(lang string) *CreateIndexBuilder
- func (b *CreateIndexBuilder) Filter(filter string) *CreateIndexBuilder
- func (b *CreateIndexBuilder) LanguageField(field string) *CreateIndexBuilder
- func (b *CreateIndexBuilder) NoFields() *CreateIndexBuilder
- func (b *CreateIndexBuilder) NoFreqs() *CreateIndexBuilder
- func (b *CreateIndexBuilder) NoHL() *CreateIndexBuilder
- func (b *CreateIndexBuilder) NoOffsets() *CreateIndexBuilder
- func (b *CreateIndexBuilder) OnHash() *CreateIndexBuilder
- func (b *CreateIndexBuilder) OnJSON() *CreateIndexBuilder
- func (b *CreateIndexBuilder) PayloadField(field string) *CreateIndexBuilder
- func (b *CreateIndexBuilder) Prefix(prefixes ...interface{}) *CreateIndexBuilder
- func (b *CreateIndexBuilder) Run() (string, error)
- func (b *CreateIndexBuilder) Schema(field *FieldSchema) *CreateIndexBuilder
- func (b *CreateIndexBuilder) Score(score float64) *CreateIndexBuilder
- func (b *CreateIndexBuilder) ScoreField(field string) *CreateIndexBuilder
- func (b *CreateIndexBuilder) SkipInitialScan() *CreateIndexBuilder
- func (b *CreateIndexBuilder) StopWords(words ...interface{}) *CreateIndexBuilder
- func (b *CreateIndexBuilder) Temporary(sec int) *CreateIndexBuilder
- type CursorBuilder
- type CursorStats
- type DelExArgs
- type DialHook
- type DictBuilder
- type DigestCmd
- func (cmd *DigestCmd) Args() []interface{}
- func (cmd *DigestCmd) Clone() Cmder
- func (cmd *DigestCmd) Err() error
- func (cmd *DigestCmd) FullName() string
- func (cmd *DigestCmd) GetCmdType() CmdType
- func (cmd *DigestCmd) Name() string
- func (cmd *DigestCmd) NoRetry() bool
- func (cmd *DigestCmd) Result() (uint64, error)
- func (cmd *DigestCmd) SetErr(e error)
- func (cmd *DigestCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *DigestCmd) SetStepCount(stepCount int8)
- func (cmd *DigestCmd) SetVal(val uint64)
- func (cmd *DigestCmd) String() string
- func (cmd *DigestCmd) Val() uint64
- type Document
- type DropIndexBuilder
- type DurationCmd
- func (cmd *DurationCmd) Args() []interface{}
- func (cmd *DurationCmd) Clone() Cmder
- func (cmd *DurationCmd) Err() error
- func (cmd *DurationCmd) FullName() string
- func (cmd *DurationCmd) GetCmdType() CmdType
- func (cmd *DurationCmd) Name() string
- func (cmd *DurationCmd) NoRetry() bool
- func (cmd *DurationCmd) Result() (time.Duration, error)
- func (cmd *DurationCmd) SetErr(e error)
- func (cmd *DurationCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *DurationCmd) SetStepCount(stepCount int8)
- func (cmd *DurationCmd) SetVal(val time.Duration)
- func (cmd *DurationCmd) String() string
- func (cmd *DurationCmd) Val() time.Duration
- type Engine
- type Error
- type ExpirationMode
- type ExpirationOption
- type ExplainBuilder
- type FPHAType
- type FTAggregateApply
- type FTAggregateCollect
- type FTAggregateCollectLimit
- type FTAggregateGroupBy
- type FTAggregateLoad
- type FTAggregateOptions
- type FTAggregateReducer
- type FTAggregateResult
- type FTAggregateSortBy
- type FTAggregateSortByStep
- type FTAggregateStep
- type FTAggregateWithCursor
- type FTAttribute
- type FTCreateOptions
- type FTDropIndexOptions
- type FTExplainOptions
- type FTFlatOptions
- type FTHNSWOptions
- type FTHybridApply
- type FTHybridCmd
- func (cmd *FTHybridCmd) Args() []interface{}
- func (cmd *FTHybridCmd) Clone() Cmder
- func (cmd *FTHybridCmd) CursorResult() (*FTHybridCursorResult, error)
- func (cmd *FTHybridCmd) CursorVal() *FTHybridCursorResult
- func (cmd *FTHybridCmd) Err() error
- func (cmd *FTHybridCmd) FullName() string
- func (cmd *FTHybridCmd) GetCmdType() CmdType
- func (cmd *FTHybridCmd) Name() string
- func (cmd *FTHybridCmd) NoRetry() bool
- func (cmd *FTHybridCmd) RawResult() (interface{}, error)
- func (cmd *FTHybridCmd) RawVal() interface{}
- func (cmd *FTHybridCmd) Result() (FTHybridResult, error)
- func (cmd *FTHybridCmd) SetErr(e error)
- func (cmd *FTHybridCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FTHybridCmd) SetStepCount(stepCount int8)
- func (cmd *FTHybridCmd) SetVal(val FTHybridResult)
- func (cmd *FTHybridCmd) String() string
- func (cmd *FTHybridCmd) Val() FTHybridResult
- type FTHybridCombineMethod
- type FTHybridCombineOptions
- type FTHybridCursorResult
- type FTHybridGroupBy
- type FTHybridOptions
- type FTHybridResult
- type FTHybridSearchExpression
- type FTHybridVectorExpression
- type FTHybridVectorMethod
- type FTHybridWithCursor
- type FTInfoBuilder
- type FTInfoCmd
- func (cmd *FTInfoCmd) Args() []interface{}
- func (cmd *FTInfoCmd) Clone() Cmder
- func (cmd *FTInfoCmd) Err() error
- func (cmd *FTInfoCmd) FullName() string
- func (cmd *FTInfoCmd) GetCmdType() CmdType
- func (cmd *FTInfoCmd) Name() string
- func (cmd *FTInfoCmd) NoRetry() bool
- func (cmd *FTInfoCmd) RawResult() (interface{}, error)
- func (cmd *FTInfoCmd) RawVal() interface{}
- func (cmd *FTInfoCmd) Result() (FTInfoResult, error)
- func (cmd *FTInfoCmd) SetErr(e error)
- func (cmd *FTInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FTInfoCmd) SetStepCount(stepCount int8)
- func (cmd *FTInfoCmd) SetVal(val FTInfoResult)
- func (cmd *FTInfoCmd) String() string
- func (cmd *FTInfoCmd) Val() FTInfoResult
- type FTInfoResult
- type FTSearchCmd
- func (cmd *FTSearchCmd) Args() []interface{}
- func (cmd *FTSearchCmd) Clone() Cmder
- func (cmd *FTSearchCmd) Err() error
- func (cmd *FTSearchCmd) FullName() string
- func (cmd *FTSearchCmd) GetCmdType() CmdType
- func (cmd *FTSearchCmd) Name() string
- func (cmd *FTSearchCmd) NoRetry() bool
- func (cmd *FTSearchCmd) RawResult() (interface{}, error)
- func (cmd *FTSearchCmd) RawVal() interface{}
- func (cmd *FTSearchCmd) Result() (FTSearchResult, error)
- func (cmd *FTSearchCmd) SetErr(e error)
- func (cmd *FTSearchCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FTSearchCmd) SetStepCount(stepCount int8)
- func (cmd *FTSearchCmd) SetVal(val FTSearchResult)
- func (cmd *FTSearchCmd) String() string
- func (cmd *FTSearchCmd) Val() FTSearchResult
- type FTSearchFilter
- type FTSearchGeoFilter
- type FTSearchOptions
- type FTSearchResult
- type FTSearchReturn
- type FTSearchSortBy
- type FTSpellCheckCmd
- func (cmd *FTSpellCheckCmd) Args() []interface{}
- func (cmd *FTSpellCheckCmd) Clone() Cmder
- func (cmd *FTSpellCheckCmd) Err() error
- func (cmd *FTSpellCheckCmd) FullName() string
- func (cmd *FTSpellCheckCmd) GetCmdType() CmdType
- func (cmd *FTSpellCheckCmd) Name() string
- func (cmd *FTSpellCheckCmd) NoRetry() bool
- func (cmd *FTSpellCheckCmd) RawResult() (interface{}, error)
- func (cmd *FTSpellCheckCmd) RawVal() interface{}
- func (cmd *FTSpellCheckCmd) Result() ([]SpellCheckResult, error)
- func (cmd *FTSpellCheckCmd) SetErr(e error)
- func (cmd *FTSpellCheckCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FTSpellCheckCmd) SetStepCount(stepCount int8)
- func (cmd *FTSpellCheckCmd) SetVal(val []SpellCheckResult)
- func (cmd *FTSpellCheckCmd) String() string
- func (cmd *FTSpellCheckCmd) Val() []SpellCheckResult
- type FTSpellCheckOptions
- type FTSpellCheckTerms
- type FTSynDumpCmd
- func (cmd *FTSynDumpCmd) Args() []interface{}
- func (cmd *FTSynDumpCmd) Clone() Cmder
- func (cmd *FTSynDumpCmd) Err() error
- func (cmd *FTSynDumpCmd) FullName() string
- func (cmd *FTSynDumpCmd) GetCmdType() CmdType
- func (cmd *FTSynDumpCmd) Name() string
- func (cmd *FTSynDumpCmd) NoRetry() bool
- func (cmd *FTSynDumpCmd) RawResult() (interface{}, error)
- func (cmd *FTSynDumpCmd) RawVal() interface{}
- func (cmd *FTSynDumpCmd) Result() ([]FTSynDumpResult, error)
- func (cmd *FTSynDumpCmd) SetErr(e error)
- func (cmd *FTSynDumpCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FTSynDumpCmd) SetStepCount(stepCount int8)
- func (cmd *FTSynDumpCmd) SetVal(val []FTSynDumpResult)
- func (cmd *FTSynDumpCmd) String() string
- func (cmd *FTSynDumpCmd) Val() []FTSynDumpResult
- type FTSynDumpResult
- type FTSynUpdateOptions
- type FTVamanaOptions
- type FTVectorArgs
- type FailoverOptions
- type FieldSchema
- type FieldStatistic
- type FilterBy
- type FloatCmd
- func (cmd *FloatCmd) Args() []interface{}
- func (cmd *FloatCmd) Clone() Cmder
- func (cmd *FloatCmd) Err() error
- func (cmd *FloatCmd) FullName() string
- func (cmd *FloatCmd) GetCmdType() CmdType
- func (cmd *FloatCmd) Name() string
- func (cmd *FloatCmd) NoRetry() bool
- func (cmd *FloatCmd) Result() (float64, error)
- func (cmd *FloatCmd) SetErr(e error)
- func (cmd *FloatCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FloatCmd) SetStepCount(stepCount int8)
- func (cmd *FloatCmd) SetVal(val float64)
- func (cmd *FloatCmd) String() string
- func (cmd *FloatCmd) Val() float64
- type FloatSliceCmd
- func (cmd *FloatSliceCmd) Args() []interface{}
- func (cmd *FloatSliceCmd) Clone() Cmder
- func (cmd *FloatSliceCmd) Err() error
- func (cmd *FloatSliceCmd) FullName() string
- func (cmd *FloatSliceCmd) GetCmdType() CmdType
- func (cmd *FloatSliceCmd) Name() string
- func (cmd *FloatSliceCmd) NoRetry() bool
- func (cmd *FloatSliceCmd) Result() ([]float64, error)
- func (cmd *FloatSliceCmd) SetErr(e error)
- func (cmd *FloatSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FloatSliceCmd) SetStepCount(stepCount int8)
- func (cmd *FloatSliceCmd) SetVal(val []float64)
- func (cmd *FloatSliceCmd) String() string
- func (cmd *FloatSliceCmd) Val() []float64
- type Function
- type FunctionListCmd
- func (cmd *FunctionListCmd) Args() []interface{}
- func (cmd *FunctionListCmd) Clone() Cmder
- func (cmd *FunctionListCmd) Err() error
- func (cmd *FunctionListCmd) First() (*Library, error)
- func (cmd *FunctionListCmd) FullName() string
- func (cmd *FunctionListCmd) GetCmdType() CmdType
- func (cmd *FunctionListCmd) Name() string
- func (cmd *FunctionListCmd) NoRetry() bool
- func (cmd *FunctionListCmd) Result() ([]Library, error)
- func (cmd *FunctionListCmd) SetErr(e error)
- func (cmd *FunctionListCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FunctionListCmd) SetStepCount(stepCount int8)
- func (cmd *FunctionListCmd) SetVal(val []Library)
- func (cmd *FunctionListCmd) String() string
- func (cmd *FunctionListCmd) Val() []Library
- type FunctionListQuery
- type FunctionStats
- type FunctionStatsCmd
- func (cmd *FunctionStatsCmd) Args() []interface{}
- func (cmd *FunctionStatsCmd) Clone() Cmder
- func (cmd *FunctionStatsCmd) Err() error
- func (cmd *FunctionStatsCmd) FullName() string
- func (cmd *FunctionStatsCmd) GetCmdType() CmdType
- func (cmd *FunctionStatsCmd) Name() string
- func (cmd *FunctionStatsCmd) NoRetry() bool
- func (cmd *FunctionStatsCmd) Result() (FunctionStats, error)
- func (cmd *FunctionStatsCmd) SetErr(e error)
- func (cmd *FunctionStatsCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *FunctionStatsCmd) SetStepCount(stepCount int8)
- func (cmd *FunctionStatsCmd) SetVal(val FunctionStats)
- func (cmd *FunctionStatsCmd) String() string
- func (cmd *FunctionStatsCmd) Val() FunctionStats
- type GCStats
- type GenericCmdable
- type GeoCmdable
- type GeoLocation
- type GeoLocationCmd
- func (cmd *GeoLocationCmd) Args() []interface{}
- func (cmd *GeoLocationCmd) Clone() Cmder
- func (cmd *GeoLocationCmd) Err() error
- func (cmd *GeoLocationCmd) FullName() string
- func (cmd *GeoLocationCmd) GetCmdType() CmdType
- func (cmd *GeoLocationCmd) Name() string
- func (cmd *GeoLocationCmd) NoRetry() bool
- func (cmd *GeoLocationCmd) Result() ([]GeoLocation, error)
- func (cmd *GeoLocationCmd) SetErr(e error)
- func (cmd *GeoLocationCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *GeoLocationCmd) SetStepCount(stepCount int8)
- func (cmd *GeoLocationCmd) SetVal(locations []GeoLocation)
- func (cmd *GeoLocationCmd) String() string
- func (cmd *GeoLocationCmd) Val() []GeoLocation
- type GeoPos
- type GeoPosCmd
- func (cmd *GeoPosCmd) Args() []interface{}
- func (cmd *GeoPosCmd) Clone() Cmder
- func (cmd *GeoPosCmd) Err() error
- func (cmd *GeoPosCmd) FullName() string
- func (cmd *GeoPosCmd) GetCmdType() CmdType
- func (cmd *GeoPosCmd) Name() string
- func (cmd *GeoPosCmd) NoRetry() bool
- func (cmd *GeoPosCmd) Result() ([]*GeoPos, error)
- func (cmd *GeoPosCmd) SetErr(e error)
- func (cmd *GeoPosCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *GeoPosCmd) SetStepCount(stepCount int8)
- func (cmd *GeoPosCmd) SetVal(val []*GeoPos)
- func (cmd *GeoPosCmd) String() string
- func (cmd *GeoPosCmd) Val() []*GeoPos
- type GeoRadiusQuery
- type GeoSearchLocationCmd
- func (cmd *GeoSearchLocationCmd) Args() []interface{}
- func (cmd *GeoSearchLocationCmd) Clone() Cmder
- func (cmd *GeoSearchLocationCmd) Err() error
- func (cmd *GeoSearchLocationCmd) FullName() string
- func (cmd *GeoSearchLocationCmd) GetCmdType() CmdType
- func (cmd *GeoSearchLocationCmd) Name() string
- func (cmd *GeoSearchLocationCmd) NoRetry() bool
- func (cmd *GeoSearchLocationCmd) Result() ([]GeoLocation, error)
- func (cmd *GeoSearchLocationCmd) SetErr(e error)
- func (cmd *GeoSearchLocationCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *GeoSearchLocationCmd) SetStepCount(stepCount int8)
- func (cmd *GeoSearchLocationCmd) SetVal(val []GeoLocation)
- func (cmd *GeoSearchLocationCmd) String() string
- func (cmd *GeoSearchLocationCmd) Val() []GeoLocation
- type GeoSearchLocationQuery
- type GeoSearchQuery
- type GeoSearchStoreQuery
- type HExpireArgs
- type HGetEXExpirationType
- type HGetEXOptions
- type HImportDiscardAllCmd
- func (cmd *HImportDiscardAllCmd) Args() []interface{}
- func (cmd *HImportDiscardAllCmd) Err() error
- func (cmd *HImportDiscardAllCmd) FullName() string
- func (cmd *HImportDiscardAllCmd) GetCmdType() CmdType
- func (cmd *HImportDiscardAllCmd) Name() string
- func (cmd *HImportDiscardAllCmd) NoRetry() bool
- func (cmd *HImportDiscardAllCmd) SetErr(e error)
- func (cmd *HImportDiscardAllCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *HImportDiscardAllCmd) SetStepCount(stepCount int8)
- type HImportDiscardCmd
- func (cmd *HImportDiscardCmd) Args() []interface{}
- func (cmd *HImportDiscardCmd) Err() error
- func (cmd *HImportDiscardCmd) FullName() string
- func (cmd *HImportDiscardCmd) GetCmdType() CmdType
- func (cmd *HImportDiscardCmd) Name() string
- func (cmd *HImportDiscardCmd) NoRetry() bool
- func (cmd *HImportDiscardCmd) SetErr(e error)
- func (cmd *HImportDiscardCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *HImportDiscardCmd) SetStepCount(stepCount int8)
- type HImportPrepareCmd
- func (cmd *HImportPrepareCmd) Args() []interface{}
- func (cmd *HImportPrepareCmd) Err() error
- func (cmd *HImportPrepareCmd) FullName() string
- func (cmd *HImportPrepareCmd) GetCmdType() CmdType
- func (cmd *HImportPrepareCmd) Name() string
- func (cmd *HImportPrepareCmd) NoRetry() bool
- func (cmd *HImportPrepareCmd) SetErr(e error)
- func (cmd *HImportPrepareCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *HImportPrepareCmd) SetStepCount(stepCount int8)
- type HImportSetCmd
- func (cmd *HImportSetCmd) Args() []interface{}
- func (cmd *HImportSetCmd) Err() error
- func (cmd *HImportSetCmd) FullName() string
- func (cmd *HImportSetCmd) GetCmdType() CmdType
- func (cmd *HImportSetCmd) Name() string
- func (cmd *HImportSetCmd) NoRetry() bool
- func (cmd *HImportSetCmd) SetErr(e error)
- func (cmd *HImportSetCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *HImportSetCmd) SetStepCount(stepCount int8)
- type HSetEXCondition
- type HSetEXExpirationType
- type HSetEXOptions
- type HashCmdable
- type Hook
- type HotKeysCmd
- func (cmd *HotKeysCmd) Args() []interface{}
- func (cmd *HotKeysCmd) Clone() Cmder
- func (cmd *HotKeysCmd) Err() error
- func (cmd *HotKeysCmd) FullName() string
- func (cmd *HotKeysCmd) GetCmdType() CmdType
- func (cmd *HotKeysCmd) Name() string
- func (cmd *HotKeysCmd) NoRetry() bool
- func (cmd *HotKeysCmd) Result() (*HotKeysResult, error)
- func (cmd *HotKeysCmd) SetErr(e error)
- func (cmd *HotKeysCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *HotKeysCmd) SetStepCount(stepCount int8)
- func (cmd *HotKeysCmd) SetVal(val *HotKeysResult)
- func (cmd *HotKeysCmd) String() string
- func (cmd *HotKeysCmd) Val() *HotKeysResult
- type HotKeysKeyEntry
- type HotKeysMetric
- type HotKeysResult
- type HotKeysSlotRange
- type HotKeysStartArgs
- type HyperLogLogCmdable
- type IncrEXFloatArgs
- type IncrEXFloatCmd
- func (cmd *IncrEXFloatCmd) Args() []interface{}
- func (cmd *IncrEXFloatCmd) Clone() Cmder
- func (cmd *IncrEXFloatCmd) Err() error
- func (cmd *IncrEXFloatCmd) FullName() string
- func (cmd *IncrEXFloatCmd) GetCmdType() CmdType
- func (cmd *IncrEXFloatCmd) Name() string
- func (cmd *IncrEXFloatCmd) NoRetry() bool
- func (cmd *IncrEXFloatCmd) Result() (IncrEXFloatResult, error)
- func (cmd *IncrEXFloatCmd) SetErr(e error)
- func (cmd *IncrEXFloatCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *IncrEXFloatCmd) SetStepCount(stepCount int8)
- func (cmd *IncrEXFloatCmd) SetVal(val IncrEXFloatResult)
- func (cmd *IncrEXFloatCmd) String() string
- func (cmd *IncrEXFloatCmd) Val() IncrEXFloatResult
- type IncrEXFloatResult
- type IncrEXIntArgs
- type IncrEXIntCmd
- func (cmd *IncrEXIntCmd) Args() []interface{}
- func (cmd *IncrEXIntCmd) Clone() Cmder
- func (cmd *IncrEXIntCmd) Err() error
- func (cmd *IncrEXIntCmd) FullName() string
- func (cmd *IncrEXIntCmd) GetCmdType() CmdType
- func (cmd *IncrEXIntCmd) Name() string
- func (cmd *IncrEXIntCmd) NoRetry() bool
- func (cmd *IncrEXIntCmd) Result() (IncrEXIntResult, error)
- func (cmd *IncrEXIntCmd) SetErr(e error)
- func (cmd *IncrEXIntCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *IncrEXIntCmd) SetStepCount(stepCount int8)
- func (cmd *IncrEXIntCmd) SetVal(val IncrEXIntResult)
- func (cmd *IncrEXIntCmd) String() string
- func (cmd *IncrEXIntCmd) Val() IncrEXIntResult
- type IncrEXIntResult
- type IndexDefinition
- type IndexErrors
- type InfoCmd
- func (cmd *InfoCmd) Args() []interface{}
- func (cmd *InfoCmd) Clone() Cmder
- func (cmd *InfoCmd) Err() error
- func (cmd *InfoCmd) FullName() string
- func (cmd *InfoCmd) GetCmdType() CmdType
- func (cmd *InfoCmd) Item(section, key string) string
- func (cmd *InfoCmd) Name() string
- func (cmd *InfoCmd) NoRetry() bool
- func (cmd *InfoCmd) Result() (map[string]map[string]string, error)
- func (cmd *InfoCmd) SetErr(e error)
- func (cmd *InfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *InfoCmd) SetStepCount(stepCount int8)
- func (cmd *InfoCmd) SetVal(val map[string]map[string]string)
- func (cmd *InfoCmd) String() string
- func (cmd *InfoCmd) Val() map[string]map[string]string
- type IntCmd
- func (cmd *IntCmd) Args() []interface{}
- func (cmd *IntCmd) Clone() Cmder
- func (cmd *IntCmd) Err() error
- func (cmd *IntCmd) FullName() string
- func (cmd *IntCmd) GetCmdType() CmdType
- func (cmd *IntCmd) Name() string
- func (cmd *IntCmd) NoRetry() bool
- func (cmd *IntCmd) Result() (int64, error)
- func (cmd *IntCmd) SetErr(e error)
- func (cmd *IntCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *IntCmd) SetStepCount(stepCount int8)
- func (cmd *IntCmd) SetVal(val int64)
- func (cmd *IntCmd) String() string
- func (cmd *IntCmd) Uint64() (uint64, error)
- func (cmd *IntCmd) Val() int64
- type IntPointerSliceCmd
- func (cmd *IntPointerSliceCmd) Args() []interface{}
- func (cmd *IntPointerSliceCmd) Clone() Cmder
- func (cmd *IntPointerSliceCmd) Err() error
- func (cmd *IntPointerSliceCmd) FullName() string
- func (cmd *IntPointerSliceCmd) GetCmdType() CmdType
- func (cmd *IntPointerSliceCmd) Name() string
- func (cmd *IntPointerSliceCmd) NoRetry() bool
- func (cmd *IntPointerSliceCmd) Result() ([]*int64, error)
- func (cmd *IntPointerSliceCmd) SetErr(e error)
- func (cmd *IntPointerSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *IntPointerSliceCmd) SetStepCount(stepCount int8)
- func (cmd *IntPointerSliceCmd) SetVal(val []*int64)
- func (cmd *IntPointerSliceCmd) String() string
- func (cmd *IntPointerSliceCmd) Val() []*int64
- type IntSliceCmd
- func (cmd *IntSliceCmd) Args() []interface{}
- func (cmd *IntSliceCmd) Clone() Cmder
- func (cmd *IntSliceCmd) Err() error
- func (cmd *IntSliceCmd) FullName() string
- func (cmd *IntSliceCmd) GetCmdType() CmdType
- func (cmd *IntSliceCmd) Name() string
- func (cmd *IntSliceCmd) NoRetry() bool
- func (cmd *IntSliceCmd) Result() ([]int64, error)
- func (cmd *IntSliceCmd) SetErr(e error)
- func (cmd *IntSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *IntSliceCmd) SetStepCount(stepCount int8)
- func (cmd *IntSliceCmd) SetVal(val []int64)
- func (cmd *IntSliceCmd) String() string
- func (cmd *IntSliceCmd) Val() []int64
- type JSONArrIndexArgs
- type JSONArrTrimArgs
- type JSONCmd
- func (cmd *JSONCmd) Args() []interface{}
- func (cmd *JSONCmd) Clone() Cmder
- func (cmd *JSONCmd) Err() error
- func (cmd *JSONCmd) Expanded() (interface{}, error)
- func (cmd *JSONCmd) FullName() string
- func (cmd *JSONCmd) GetCmdType() CmdType
- func (cmd *JSONCmd) Name() string
- func (cmd *JSONCmd) NoRetry() bool
- func (cmd *JSONCmd) Result() (string, error)
- func (cmd *JSONCmd) SetErr(e error)
- func (cmd *JSONCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *JSONCmd) SetStepCount(stepCount int8)
- func (cmd *JSONCmd) SetVal(val string)
- func (cmd *JSONCmd) String() string
- func (cmd *JSONCmd) Val() string
- type JSONCmdable
- type JSONGetArgs
- type JSONSetArgs
- type JSONSetArgsOptions
- type JSONSliceCmd
- func (cmd *JSONSliceCmd) Args() []interface{}
- func (cmd *JSONSliceCmd) Clone() Cmder
- func (cmd *JSONSliceCmd) Err() error
- func (cmd *JSONSliceCmd) FullName() string
- func (cmd *JSONSliceCmd) GetCmdType() CmdType
- func (cmd *JSONSliceCmd) Name() string
- func (cmd *JSONSliceCmd) NoRetry() bool
- func (cmd *JSONSliceCmd) Result() ([]interface{}, error)
- func (cmd *JSONSliceCmd) SetErr(e error)
- func (cmd *JSONSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *JSONSliceCmd) SetStepCount(stepCount int8)
- func (cmd *JSONSliceCmd) SetVal(val []interface{})
- func (cmd *JSONSliceCmd) String() string
- func (cmd *JSONSliceCmd) Val() []interface{}
- type KeyFlags
- type KeyFlagsCmd
- func (cmd *KeyFlagsCmd) Args() []interface{}
- func (cmd *KeyFlagsCmd) Clone() Cmder
- func (cmd *KeyFlagsCmd) Err() error
- func (cmd *KeyFlagsCmd) FullName() string
- func (cmd *KeyFlagsCmd) GetCmdType() CmdType
- func (cmd *KeyFlagsCmd) Name() string
- func (cmd *KeyFlagsCmd) NoRetry() bool
- func (cmd *KeyFlagsCmd) Result() ([]KeyFlags, error)
- func (cmd *KeyFlagsCmd) SetErr(e error)
- func (cmd *KeyFlagsCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *KeyFlagsCmd) SetStepCount(stepCount int8)
- func (cmd *KeyFlagsCmd) SetVal(val []KeyFlags)
- func (cmd *KeyFlagsCmd) String() string
- func (cmd *KeyFlagsCmd) Val() []KeyFlags
- type KeyValue
- type KeyValueSliceCmd
- func (cmd *KeyValueSliceCmd) Args() []interface{}
- func (cmd *KeyValueSliceCmd) Clone() Cmder
- func (cmd *KeyValueSliceCmd) Err() error
- func (cmd *KeyValueSliceCmd) FullName() string
- func (cmd *KeyValueSliceCmd) GetCmdType() CmdType
- func (cmd *KeyValueSliceCmd) Name() string
- func (cmd *KeyValueSliceCmd) NoRetry() bool
- func (cmd *KeyValueSliceCmd) Result() ([]KeyValue, error)
- func (cmd *KeyValueSliceCmd) SetErr(e error)
- func (cmd *KeyValueSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *KeyValueSliceCmd) SetStepCount(stepCount int8)
- func (cmd *KeyValueSliceCmd) SetVal(val []KeyValue)
- func (cmd *KeyValueSliceCmd) String() string
- func (cmd *KeyValueSliceCmd) Val() []KeyValue
- type KeyValuesCmd
- func (cmd *KeyValuesCmd) Args() []interface{}
- func (cmd *KeyValuesCmd) Clone() Cmder
- func (cmd *KeyValuesCmd) Err() error
- func (cmd *KeyValuesCmd) FullName() string
- func (cmd *KeyValuesCmd) GetCmdType() CmdType
- func (cmd *KeyValuesCmd) Name() string
- func (cmd *KeyValuesCmd) NoRetry() bool
- func (cmd *KeyValuesCmd) Result() (string, []string, error)
- func (cmd *KeyValuesCmd) SetErr(e error)
- func (cmd *KeyValuesCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *KeyValuesCmd) SetStepCount(stepCount int8)
- func (cmd *KeyValuesCmd) SetVal(key string, val []string)
- func (cmd *KeyValuesCmd) String() string
- func (cmd *KeyValuesCmd) Val() (string, []string)
- type LCSCmd
- func (cmd *LCSCmd) Args() []interface{}
- func (cmd *LCSCmd) Clone() Cmder
- func (cmd *LCSCmd) Err() error
- func (cmd *LCSCmd) FullName() string
- func (cmd *LCSCmd) GetCmdType() CmdType
- func (cmd *LCSCmd) Name() string
- func (cmd *LCSCmd) NoRetry() bool
- func (cmd *LCSCmd) Result() (*LCSMatch, error)
- func (cmd *LCSCmd) SetErr(e error)
- func (cmd *LCSCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *LCSCmd) SetStepCount(stepCount int8)
- func (cmd *LCSCmd) SetVal(val *LCSMatch)
- func (cmd *LCSCmd) String() string
- func (cmd *LCSCmd) Val() *LCSMatch
- type LCSMatch
- type LCSMatchedPosition
- type LCSPosition
- type LCSQuery
- type LMoveMArgs
- type LMoveMMode
- type LMoveMOrder
- type LPosArgs
- type Latency
- type LatencyCmd
- func (cmd *LatencyCmd) Args() []interface{}
- func (cmd *LatencyCmd) Clone() Cmder
- func (cmd *LatencyCmd) Err() error
- func (cmd *LatencyCmd) FullName() string
- func (cmd *LatencyCmd) GetCmdType() CmdType
- func (cmd *LatencyCmd) Name() string
- func (cmd *LatencyCmd) NoRetry() bool
- func (cmd *LatencyCmd) Result() ([]Latency, error)
- func (cmd *LatencyCmd) SetErr(e error)
- func (cmd *LatencyCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *LatencyCmd) SetStepCount(stepCount int8)
- func (cmd *LatencyCmd) SetVal(val []Latency)
- func (cmd *LatencyCmd) String() string
- func (cmd *LatencyCmd) Val() []Latency
- type Library
- type LibraryInfo
- type Limiter
- type ListCmdable
- type LocalCache
- func (c *LocalCache) Cancel(cacheKey string, token uint64) bool
- func (c *LocalCache) DeleteByCacheKey(cacheKey string) bool
- func (c *LocalCache) DeleteByRedisKey(redisKey string) int
- func (c *LocalCache) DeletionStats() (deletions, noop uint64)
- func (c *LocalCache) EvictByConn(connID uint64) int
- func (c *LocalCache) Flush() int
- func (c *LocalCache) FulfillOwned(cacheKey string, token, ownerConnID uint64, value []byte) bool
- func (c *LocalCache) Get(ctx context.Context, cacheKey string) ([]byte, bool)
- func (c *LocalCache) InvalidationStats() (invalidations uint64)
- func (c *LocalCache) Len() int
- func (c *LocalCache) MemoryUsage() int64
- func (c *LocalCache) Reserve(cacheKey string, redisKeys []string) (token uint64, shouldFetch bool)
- func (c *LocalCache) Stats() CSCStats
- type MSetEXArgs
- type MapMapStringInterfaceCmd
- func (cmd *MapMapStringInterfaceCmd) Args() []interface{}
- func (cmd *MapMapStringInterfaceCmd) Clone() Cmder
- func (cmd *MapMapStringInterfaceCmd) Err() error
- func (cmd *MapMapStringInterfaceCmd) FullName() string
- func (cmd *MapMapStringInterfaceCmd) GetCmdType() CmdType
- func (cmd *MapMapStringInterfaceCmd) Name() string
- func (cmd *MapMapStringInterfaceCmd) NoRetry() bool
- func (cmd *MapMapStringInterfaceCmd) Result() (map[string]interface{}, error)
- func (cmd *MapMapStringInterfaceCmd) SetErr(e error)
- func (cmd *MapMapStringInterfaceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MapMapStringInterfaceCmd) SetStepCount(stepCount int8)
- func (cmd *MapMapStringInterfaceCmd) SetVal(val map[string]interface{})
- func (cmd *MapMapStringInterfaceCmd) String() string
- func (cmd *MapMapStringInterfaceCmd) Val() map[string]interface{}
- type MapStringIntCmd
- func (cmd *MapStringIntCmd) Args() []interface{}
- func (cmd *MapStringIntCmd) Clone() Cmder
- func (cmd *MapStringIntCmd) Err() error
- func (cmd *MapStringIntCmd) FullName() string
- func (cmd *MapStringIntCmd) GetCmdType() CmdType
- func (cmd *MapStringIntCmd) Name() string
- func (cmd *MapStringIntCmd) NoRetry() bool
- func (cmd *MapStringIntCmd) Result() (map[string]int64, error)
- func (cmd *MapStringIntCmd) SetErr(e error)
- func (cmd *MapStringIntCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MapStringIntCmd) SetStepCount(stepCount int8)
- func (cmd *MapStringIntCmd) SetVal(val map[string]int64)
- func (cmd *MapStringIntCmd) String() string
- func (cmd *MapStringIntCmd) Val() map[string]int64
- type MapStringInterfaceCmd
- func (cmd *MapStringInterfaceCmd) Args() []interface{}
- func (cmd *MapStringInterfaceCmd) Clone() Cmder
- func (cmd *MapStringInterfaceCmd) Err() error
- func (cmd *MapStringInterfaceCmd) FullName() string
- func (cmd *MapStringInterfaceCmd) GetCmdType() CmdType
- func (cmd *MapStringInterfaceCmd) Name() string
- func (cmd *MapStringInterfaceCmd) NoRetry() bool
- func (cmd *MapStringInterfaceCmd) Result() (map[string]interface{}, error)
- func (cmd *MapStringInterfaceCmd) SetErr(e error)
- func (cmd *MapStringInterfaceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MapStringInterfaceCmd) SetStepCount(stepCount int8)
- func (cmd *MapStringInterfaceCmd) SetVal(val map[string]interface{})
- func (cmd *MapStringInterfaceCmd) String() string
- func (cmd *MapStringInterfaceCmd) Val() map[string]interface{}
- type MapStringInterfaceSliceCmd
- func (cmd *MapStringInterfaceSliceCmd) Args() []interface{}
- func (cmd *MapStringInterfaceSliceCmd) Clone() Cmder
- func (cmd *MapStringInterfaceSliceCmd) Err() error
- func (cmd *MapStringInterfaceSliceCmd) FullName() string
- func (cmd *MapStringInterfaceSliceCmd) GetCmdType() CmdType
- func (cmd *MapStringInterfaceSliceCmd) Name() string
- func (cmd *MapStringInterfaceSliceCmd) NoRetry() bool
- func (cmd *MapStringInterfaceSliceCmd) Result() ([]map[string]interface{}, error)
- func (cmd *MapStringInterfaceSliceCmd) SetErr(e error)
- func (cmd *MapStringInterfaceSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MapStringInterfaceSliceCmd) SetStepCount(stepCount int8)
- func (cmd *MapStringInterfaceSliceCmd) SetVal(val []map[string]interface{})
- func (cmd *MapStringInterfaceSliceCmd) String() string
- func (cmd *MapStringInterfaceSliceCmd) Val() []map[string]interface{}
- type MapStringSliceInterfaceCmd
- func (cmd *MapStringSliceInterfaceCmd) Args() []interface{}
- func (cmd *MapStringSliceInterfaceCmd) Clone() Cmder
- func (cmd *MapStringSliceInterfaceCmd) Err() error
- func (cmd *MapStringSliceInterfaceCmd) FullName() string
- func (cmd *MapStringSliceInterfaceCmd) GetCmdType() CmdType
- func (cmd *MapStringSliceInterfaceCmd) Name() string
- func (cmd *MapStringSliceInterfaceCmd) NoRetry() bool
- func (cmd *MapStringSliceInterfaceCmd) Result() (map[string][]interface{}, error)
- func (cmd *MapStringSliceInterfaceCmd) SetErr(e error)
- func (cmd *MapStringSliceInterfaceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MapStringSliceInterfaceCmd) SetStepCount(stepCount int8)
- func (cmd *MapStringSliceInterfaceCmd) SetVal(val map[string][]interface{})
- func (cmd *MapStringSliceInterfaceCmd) String() string
- func (cmd *MapStringSliceInterfaceCmd) Val() map[string][]interface{}
- type MapStringStringCmd
- func (cmd *MapStringStringCmd) Args() []interface{}
- func (cmd *MapStringStringCmd) Clone() Cmder
- func (cmd *MapStringStringCmd) Err() error
- func (cmd *MapStringStringCmd) FullName() string
- func (cmd *MapStringStringCmd) GetCmdType() CmdType
- func (cmd *MapStringStringCmd) Name() string
- func (cmd *MapStringStringCmd) NoRetry() bool
- func (cmd *MapStringStringCmd) Result() (map[string]string, error)
- func (cmd *MapStringStringCmd) Scan(dest interface{}) error
- func (cmd *MapStringStringCmd) SetErr(e error)
- func (cmd *MapStringStringCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MapStringStringCmd) SetStepCount(stepCount int8)
- func (cmd *MapStringStringCmd) SetVal(val map[string]string)
- func (cmd *MapStringStringCmd) String() string
- func (cmd *MapStringStringCmd) Val() map[string]string
- type MapStringStringSliceCmd
- func (cmd *MapStringStringSliceCmd) Args() []interface{}
- func (cmd *MapStringStringSliceCmd) Clone() Cmder
- func (cmd *MapStringStringSliceCmd) Err() error
- func (cmd *MapStringStringSliceCmd) FullName() string
- func (cmd *MapStringStringSliceCmd) GetCmdType() CmdType
- func (cmd *MapStringStringSliceCmd) Name() string
- func (cmd *MapStringStringSliceCmd) NoRetry() bool
- func (cmd *MapStringStringSliceCmd) Result() ([]map[string]string, error)
- func (cmd *MapStringStringSliceCmd) SetErr(e error)
- func (cmd *MapStringStringSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MapStringStringSliceCmd) SetStepCount(stepCount int8)
- func (cmd *MapStringStringSliceCmd) SetVal(val []map[string]string)
- func (cmd *MapStringStringSliceCmd) String() string
- func (cmd *MapStringStringSliceCmd) Val() []map[string]string
- type Message
- type ModuleLoadexConfig
- type MonitorCmd
- func (cmd *MonitorCmd) Args() []interface{}
- func (cmd *MonitorCmd) Clone() Cmder
- func (cmd *MonitorCmd) Err() error
- func (cmd *MonitorCmd) FullName() string
- func (cmd *MonitorCmd) GetCmdType() CmdType
- func (cmd *MonitorCmd) Name() string
- func (cmd *MonitorCmd) NoRetry() bool
- func (cmd *MonitorCmd) SetErr(e error)
- func (cmd *MonitorCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *MonitorCmd) SetStepCount(stepCount int8)
- func (cmd *MonitorCmd) Start()
- func (cmd *MonitorCmd) Stop()
- func (cmd *MonitorCmd) String() string
- type MonitorStatus
- type Node
- type OTelConnectionCounter
- type OTelPoolRegistrar
- type OTelRecorder
- type Options
- type Pipeline
- func (c Pipeline) ACLCat(ctx context.Context) *StringSliceCmd
- func (c Pipeline) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
- func (c Pipeline) ACLDelUser(ctx context.Context, username string) *IntCmd
- func (c Pipeline) ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
- func (c Pipeline) ACLGenPass(ctx context.Context, bit int) *StringCmd
- func (c Pipeline) ACLList(ctx context.Context) *StringSliceCmd
- func (c Pipeline) ACLLog(ctx context.Context, count int64) *ACLLogCmd
- func (c Pipeline) ACLLogReset(ctx context.Context) *StatusCmd
- func (c Pipeline) ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
- func (c Pipeline) ACLUsers(ctx context.Context) *StringSliceCmd
- func (c Pipeline) ACLWhoAmI(ctx context.Context) *StringCmd
- func (c Pipeline) ARCount(ctx context.Context, key string) *UintCmd
- func (c Pipeline) ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
- func (c Pipeline) ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
- func (c Pipeline) ARGet(ctx context.Context, key string, index uint64) *StringCmd
- func (c Pipeline) ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
- func (c Pipeline) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
- func (c Pipeline) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
- func (c Pipeline) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Pipeline) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Pipeline) ARInsert(ctx context.Context, key string, values ...string) *UintCmd
- func (c Pipeline) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
- func (c Pipeline) ARLen(ctx context.Context, key string) *UintCmd
- func (c Pipeline) ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
- func (c Pipeline) ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
- func (c Pipeline) ARNext(ctx context.Context, key string) *UintCmd
- func (c Pipeline) AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Pipeline) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
- func (c Pipeline) AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Pipeline) AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Pipeline) AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Pipeline) AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Pipeline) AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Pipeline) AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Pipeline) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
- func (c Pipeline) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
- func (c Pipeline) ARSeek(ctx context.Context, key string, index uint64) *IntCmd
- func (c Pipeline) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
- func (c Pipeline) Append(ctx context.Context, key, value string) *IntCmd
- func (c Pipeline) Auth(ctx context.Context, password string) *StatusCmd
- func (c Pipeline) AuthACL(ctx context.Context, username, password string) *StatusCmd
- 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) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringSliceCmd
- 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) *StringCmddeprecated
- 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) BatchProcess(ctx context.Context, cmd ...Cmder) error
- 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, values ...interface{}) *IntSliceCmd
- func (c Pipeline) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Pipeline) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Pipeline) BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Pipeline) BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Pipeline) BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Pipeline) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c Pipeline) BitOpOne(ctx context.Context, destKey string, keys ...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 int8, 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, depth 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) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
- func (c Pipeline) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c Pipeline) ClientSetInfo(ctx context.Context, info LibraryInfo) *StatusCmd
- func (c Pipeline) ClientSetName(ctx context.Context, name string) *BoolCmd
- func (c Pipeline) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
- func (c Pipeline) ClientTrackingOff(ctx context.Context) *StatusCmd
- func (c Pipeline) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
- 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 ...int) *StatusCmd
- func (c Pipeline) ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Pipeline) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c Pipeline) ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
- func (c Pipeline) ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Pipeline) ClusterDelSlotsRange(ctx context.Context, min, max int) *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 int, count int) *StringSliceCmd
- func (c Pipeline) ClusterInfo(ctx context.Context) *StringCmd
- func (c Pipeline) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c Pipeline) ClusterLinks(ctx context.Context) *ClusterLinksCmd
- func (c Pipeline) ClusterMeet(ctx context.Context, host, port string) *StatusCmd
- func (c Pipeline) ClusterMyID(ctx context.Context) *StringCmd
- 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) *StringSliceCmddeprecated
- func (c Pipeline) ClusterSlots(ctx context.Context) *ClusterSlotsCmddeprecated
- func (c *Pipeline) Cmds() []Cmder
- func (c Pipeline) Command(ctx context.Context) *CommandsInfoCmd
- func (c Pipeline) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
- func (c Pipeline) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
- func (c Pipeline) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
- func (c Pipeline) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
- 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, destKey string, db int, 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) DelExArgs(ctx context.Context, key string, a DelExArgs) *IntCmd
- func (c Pipeline) Digest(ctx context.Context, key string) *DigestCmd
- func (c *Pipeline) Discard()
- func (c *Pipeline) Do(ctx context.Context, args ...interface{}) *Cmd
- func (c Pipeline) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
- func (c Pipeline) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
- func (c Pipeline) Dump(ctx context.Context, key string) *StringCmd
- func (c Pipeline) Echo(ctx context.Context, message interface{}) *StringCmd
- func (c Pipeline) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Pipeline) EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Pipeline) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Pipeline) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *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 ...interface{}) *Cmd
- func (c Pipeline) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Pipeline) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *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) FTAliasList(ctx context.Context, index string) *StringSliceCmd
- func (c Pipeline) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c Pipeline) FTAlter(ctx context.Context, index string, skipInitialScan bool, ...) *StatusCmd
- func (c Pipeline) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmddeprecated
- func (c Pipeline) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmddeprecated
- 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) FTExplainCli(ctx context.Context, key, path string) error
- func (c Pipeline) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c Pipeline) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, ...) *FTHybridCmd
- func (c Pipeline) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
- 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) FunctionStats(ctx context.Context) *FunctionStatsCmd
- 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, ...) *GeoLocationCmddeprecated
- func (c Pipeline) GeoRadiusByMember(ctx context.Context, key, member string, query *GeoRadiusQuery) *GeoLocationCmddeprecated
- 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) *GeoSearchLocationCmd
- 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 interface{}) *StringCmddeprecated
- func (c Pipeline) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
- 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) *MapStringStringCmd
- func (c Pipeline) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Pipeline) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Pipeline) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
- func (c Pipeline) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
- func (c Pipeline) HImportDiscardAll(ctx context.Context) *IntCmd
- func (c Pipeline) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
- func (c Pipeline) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
- 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 ...interface{}) *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 int) *StringSliceCmd
- func (c Pipeline) HRandFieldWithValues(ctx context.Context, key string, count int) *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 ...interface{}) *IntCmd
- func (c Pipeline) HSetEX(ctx context.Context, key string, fieldsAndValues ...string) *IntCmd
- func (c Pipeline) HSetEXWithArgs(ctx context.Context, key string, options *HSetEXOptions, ...) *IntCmd
- func (c Pipeline) HSetNX(ctx context.Context, key, field string, value interface{}) *BoolCmd
- func (c Pipeline) HStrLen(ctx context.Context, key, field string) *IntCmd
- 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) Hello(ctx context.Context, ver int, username, password, clientName string) *MapStringInterfaceCmd
- 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) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
- func (c Pipeline) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
- func (c Pipeline) Info(ctx context.Context, sections ...string) *StringCmd
- func (c Pipeline) InfoMap(ctx context.Context, sections ...string) *InfoCmd
- 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) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, ...) *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) LCS(ctx context.Context, q *LCSQuery) *LCSCmd
- func (c Pipeline) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c Pipeline) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *IntCmd
- func (c Pipeline) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Pipeline) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *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) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
- func (c Pipeline) LPop(ctx context.Context, key string) *StringCmd
- func (c Pipeline) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Pipeline) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd
- func (c Pipeline) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd
- func (c Pipeline) LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Pipeline) LPushX(ctx context.Context, key string, values ...interface{}) *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 interface{}) *IntCmd
- func (c Pipeline) LSet(ctx context.Context, key string, index int64, value interface{}) *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) Latency(ctx context.Context) *LatencyCmd
- func (c Pipeline) LatencyReset(ctx context.Context, events ...interface{}) *StatusCmd
- func (c *Pipeline) Len() int
- func (c Pipeline) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c Pipeline) MSet(ctx context.Context, values ...interface{}) *StatusCmd
- func (c Pipeline) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
- func (c Pipeline) MSetNX(ctx context.Context, values ...interface{}) *BoolCmd
- func (c Pipeline) MemoryUsage(ctx context.Context, key string, samples ...int) *IntCmd
- func (c Pipeline) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
- func (c Pipeline) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c Pipeline) Monitor(ctx context.Context, ch chan string) *MonitorCmd
- func (c Pipeline) Move(ctx context.Context, key string, db int) *BoolCmd
- func (c Pipeline) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c Pipeline) ObjectFreq(ctx context.Context, key string) *IntCmd
- 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 ...interface{}) *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) Process(ctx context.Context, cmd 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) *MapStringIntCmd
- func (c Pipeline) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Pipeline) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Pipeline) Publish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Pipeline) Quit(_ context.Context) *StatusCmddeprecated
- func (c Pipeline) RPop(ctx context.Context, key string) *StringCmd
- func (c Pipeline) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Pipeline) RPopLPush(ctx context.Context, source, destination string) *StringCmddeprecated
- func (c Pipeline) RPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Pipeline) RPushX(ctx context.Context, key string, values ...interface{}) *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) ReplicaOf(ctx context.Context, host, port string) *StatusCmd
- 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 ...interface{}) *IntCmd
- func (c Pipeline) SCard(ctx context.Context, key string) *IntCmd
- func (c Pipeline) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Pipeline) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
- 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 interface{}) *BoolCmd
- func (c Pipeline) SMIsMember(ctx context.Context, key string, members ...interface{}) *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 interface{}) *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 interface{}) *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 ...interface{}) *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) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
- 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) Select(ctx context.Context, index int) *StatusCmd
- func (c Pipeline) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
- func (c Pipeline) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
- func (c Pipeline) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd
- func (c Pipeline) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmddeprecated
- func (c Pipeline) SetFromBuffer(ctx context.Context, key string, buf []byte) *StatusCmd
- func (c Pipeline) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Pipeline) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Pipeline) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Pipeline) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Pipeline) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Pipeline) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Pipeline) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Pipeline) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Pipeline) SetNX(ctx context.Context, key string, value interface{}, 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 interface{}, 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) *StatusCmddeprecated
- func (c Pipeline) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
- func (c Pipeline) SlowLogLen(ctx context.Context) *IntCmd
- func (c Pipeline) SlowLogReset(ctx context.Context) *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) SwapDB(ctx context.Context, index1, index2 int) *StatusCmd
- func (c Pipeline) Sync(_ context.Context)
- 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) 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) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Pipeline) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Pipeline) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Pipeline) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Pipeline) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Pipeline) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
- func (c Pipeline) TSQueryLabels(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) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
- func (c Pipeline) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *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) VAdd(ctx context.Context, key, element string, val Vector) *BoolCmd
- func (c Pipeline) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
- func (c Pipeline) VCard(ctx context.Context, key string) *IntCmd
- func (c Pipeline) VClearAttributes(ctx context.Context, key, element string) *BoolCmd
- func (c Pipeline) VDim(ctx context.Context, key string) *IntCmd
- func (c Pipeline) VEmb(ctx context.Context, key, element string, raw bool) *SliceCmd
- func (c Pipeline) VGetAttr(ctx context.Context, key, element string) *StringCmd
- func (c Pipeline) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Pipeline) VIsMember(ctx context.Context, key, element string) *BoolCmd
- func (c Pipeline) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
- func (c Pipeline) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
- func (c Pipeline) VRandMember(ctx context.Context, key string) *StringCmd
- func (c Pipeline) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Pipeline) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
- func (c Pipeline) VRem(ctx context.Context, key, element string) *BoolCmd
- func (c Pipeline) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
- func (c Pipeline) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
- func (c Pipeline) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
- func (c Pipeline) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
- func (c Pipeline) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
- func (c Pipeline) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
- func (c Pipeline) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
- func (c Pipeline) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd
- func (c Pipeline) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntSliceCmd
- func (c Pipeline) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c Pipeline) XAckDel(ctx context.Context, stream string, group string, mode string, ids ...string) *SliceCmd
- 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) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
- func (c Pipeline) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
- 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) XDelEx(ctx context.Context, stream string, mode string, ids ...string) *SliceCmd
- 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 int) *XInfoStreamFullCmd
- func (c Pipeline) XLen(ctx context.Context, stream string) *IntCmd
- func (c Pipeline) XNack(ctx context.Context, a *XNackArgs) *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, start, stop string) *XMessageSliceCmd
- func (c Pipeline) XRevRangeN(ctx context.Context, stream, 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) XTrimMaxLenApproxMode(ctx context.Context, key string, maxLen, limit int64, mode string) *IntCmd
- func (c Pipeline) XTrimMaxLenMode(ctx context.Context, key string, maxLen int64, mode string) *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) XTrimMinIDApproxMode(ctx context.Context, key string, minID string, limit int64, mode string) *IntCmd
- func (c Pipeline) XTrimMinIDMode(ctx context.Context, key string, minID string, mode string) *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 int) *StringSliceCmd
- func (c Pipeline) ZRandMemberWithScores(ctx context.Context, key string, count int) *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) *StringSliceCmddeprecated
- func (c Pipeline) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- 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 ...interface{}) *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) *StringSliceCmddeprecated
- func (c Pipeline) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Pipeline) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- 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 Pong
- type PoolStats
- type Pooler
- type ProbabilisticCmdable
- type ProcessHook
- type ProcessPipelineHook
- type PubSub
- func (c *PubSub) Channel(opts ...ChannelOption) <-chan *Message
- func (c *PubSub) ChannelSize(size int) <-chan *Messagedeprecated
- func (c *PubSub) ChannelWithSubscriptions(opts ...ChannelOption) <-chan interface{}
- func (c *PubSub) ClientSetName(ctx context.Context, name string) error
- func (c *PubSub) Close() error
- func (c *PubSub) PSubscribe(ctx context.Context, patterns ...string) error
- func (c *PubSub) PUnsubscribe(ctx context.Context, patterns ...string) error
- func (c *PubSub) Ping(ctx context.Context, payload ...string) error
- func (c *PubSub) Receive(ctx context.Context) (interface{}, error)
- func (c *PubSub) ReceiveMessage(ctx context.Context) (*Message, error)
- func (c *PubSub) ReceiveTimeout(ctx context.Context, timeout time.Duration) (interface{}, error)
- func (c *PubSub) SSubscribe(ctx context.Context, channels ...string) error
- func (c *PubSub) SUnsubscribe(ctx context.Context, channels ...string) error
- func (c *PubSub) String() string
- func (c *PubSub) Subscribe(ctx context.Context, channels ...string) error
- func (c *PubSub) Unsubscribe(ctx context.Context, channels ...string) error
- type PubSubCmdable
- type PubSubPooler
- type RankScore
- type RankWithScoreCmd
- func (cmd *RankWithScoreCmd) Args() []interface{}
- func (cmd *RankWithScoreCmd) Clone() Cmder
- func (cmd *RankWithScoreCmd) Err() error
- func (cmd *RankWithScoreCmd) FullName() string
- func (cmd *RankWithScoreCmd) GetCmdType() CmdType
- func (cmd *RankWithScoreCmd) Name() string
- func (cmd *RankWithScoreCmd) NoRetry() bool
- func (cmd *RankWithScoreCmd) Result() (RankScore, error)
- func (cmd *RankWithScoreCmd) SetErr(e error)
- func (cmd *RankWithScoreCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *RankWithScoreCmd) SetStepCount(stepCount int8)
- func (cmd *RankWithScoreCmd) SetVal(val RankScore)
- func (cmd *RankWithScoreCmd) String() string
- func (cmd *RankWithScoreCmd) Val() RankScore
- type RawCmd
- func (cmd *RawCmd) Args() []interface{}
- func (cmd *RawCmd) Bytes() ([]byte, error)
- func (cmd *RawCmd) Clone() Cmder
- func (cmd *RawCmd) Err() error
- func (cmd *RawCmd) FullName() string
- func (cmd *RawCmd) GetCmdType() CmdType
- func (cmd *RawCmd) Name() string
- func (cmd *RawCmd) NoRetry() bool
- func (cmd *RawCmd) Result() ([]byte, error)
- func (cmd *RawCmd) SetErr(e error)
- func (cmd *RawCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *RawCmd) SetStepCount(stepCount int8)
- func (cmd *RawCmd) SetVal(val []byte)
- func (cmd *RawCmd) String() string
- func (cmd *RawCmd) Val() []byte
- type RawWriteToCmd
- func (cmd *RawWriteToCmd) Args() []interface{}
- func (cmd *RawWriteToCmd) Clone() Cmder
- func (cmd *RawWriteToCmd) Err() error
- func (cmd *RawWriteToCmd) FullName() string
- func (cmd *RawWriteToCmd) GetCmdType() CmdType
- func (cmd *RawWriteToCmd) Name() string
- func (cmd *RawWriteToCmd) NoRetry() bool
- func (cmd *RawWriteToCmd) Result() (int64, error)
- func (cmd *RawWriteToCmd) SetErr(e error)
- func (cmd *RawWriteToCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *RawWriteToCmd) SetStepCount(stepCount int8)
- func (cmd *RawWriteToCmd) SetVal(written int64)
- func (cmd *RawWriteToCmd) String() string
- func (cmd *RawWriteToCmd) Val() int64
- type Ring
- func (c Ring) ACLCat(ctx context.Context) *StringSliceCmd
- func (c Ring) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
- func (c Ring) ACLDelUser(ctx context.Context, username string) *IntCmd
- func (c Ring) ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
- func (c Ring) ACLGenPass(ctx context.Context, bit int) *StringCmd
- func (c Ring) ACLList(ctx context.Context) *StringSliceCmd
- func (c Ring) ACLLog(ctx context.Context, count int64) *ACLLogCmd
- func (c Ring) ACLLogReset(ctx context.Context) *StatusCmd
- func (c Ring) ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
- func (c Ring) ACLUsers(ctx context.Context) *StringSliceCmd
- func (c Ring) ACLWhoAmI(ctx context.Context) *StringCmd
- func (c Ring) ARCount(ctx context.Context, key string) *UintCmd
- func (c Ring) ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
- func (c Ring) ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
- func (c Ring) ARGet(ctx context.Context, key string, index uint64) *StringCmd
- func (c Ring) ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
- func (c Ring) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
- func (c Ring) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
- func (c Ring) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Ring) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Ring) ARInsert(ctx context.Context, key string, values ...string) *UintCmd
- func (c Ring) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
- func (c Ring) ARLen(ctx context.Context, key string) *UintCmd
- func (c Ring) ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
- func (c Ring) ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
- func (c Ring) ARNext(ctx context.Context, key string) *UintCmd
- func (c Ring) AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Ring) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
- func (c Ring) AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Ring) AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Ring) AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Ring) AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Ring) AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Ring) AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Ring) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
- func (c Ring) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
- func (c Ring) ARSeek(ctx context.Context, key string, index uint64) *IntCmd
- func (c Ring) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
- func (hs *Ring) AddHook(hook Hook)
- func (c Ring) Append(ctx context.Context, key, value string) *IntCmd
- func (c *Ring) AsyncAutoPipeline() (*AutoPipeliner, error)
- func (c *Ring) AsyncAutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (c *Ring) AutoPipeline() (*AutoPipeliner, error)
- func (c *Ring) AutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
- func (c Ring) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Ring) BFCard(ctx context.Context, key string) *IntCmd
- func (c Ring) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Ring) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c Ring) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c Ring) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c Ring) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c Ring) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c Ring) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c Ring) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c Ring) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c Ring) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Ring) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Ring) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Ring) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Ring) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c Ring) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Ring) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c Ring) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Ring) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c Ring) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c Ring) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringSliceCmd
- func (c Ring) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Ring) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Ring) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmddeprecated
- func (c Ring) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c Ring) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Ring) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Ring) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c Ring) BgSave(ctx context.Context) *StatusCmd
- func (c Ring) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c Ring) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Ring) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Ring) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Ring) BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Ring) BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Ring) BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Ring) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c Ring) BitOpOne(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Ring) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Ring) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Ring) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c Ring) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
- func (c Ring) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Ring) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Ring) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c Ring) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Ring) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Ring) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c Ring) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c Ring) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c Ring) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Ring) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Ring) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c Ring) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c Ring) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c Ring) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c Ring) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c Ring) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Ring) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Ring) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c Ring) CMSInitByDim(ctx context.Context, key string, width, depth int64) *StatusCmd
- func (c Ring) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c Ring) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c Ring) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c Ring) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Ring) ClientGetName(ctx context.Context) *StringCmd
- func (c Ring) ClientID(ctx context.Context) *IntCmd
- func (c Ring) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c Ring) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c Ring) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c Ring) ClientList(ctx context.Context) *StringCmd
- func (c Ring) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
- func (c Ring) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c Ring) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
- func (c Ring) ClientTrackingOff(ctx context.Context) *StatusCmd
- func (c Ring) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
- func (c Ring) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c Ring) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c Ring) ClientUnpause(ctx context.Context) *BoolCmd
- func (c *Ring) Close() error
- func (c Ring) ClusterAddSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Ring) ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Ring) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c Ring) ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
- func (c Ring) ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Ring) ClusterDelSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Ring) ClusterFailover(ctx context.Context) *StatusCmd
- func (c Ring) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c Ring) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
- func (c Ring) ClusterInfo(ctx context.Context) *StringCmd
- func (c Ring) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c Ring) ClusterLinks(ctx context.Context) *ClusterLinksCmd
- func (c Ring) ClusterMeet(ctx context.Context, host, port string) *StatusCmd
- func (c Ring) ClusterMyID(ctx context.Context) *StringCmd
- func (c Ring) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c Ring) ClusterNodes(ctx context.Context) *StringCmd
- func (c Ring) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c Ring) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c Ring) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c Ring) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c Ring) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c Ring) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmddeprecated
- func (c Ring) ClusterSlots(ctx context.Context) *ClusterSlotsCmddeprecated
- func (c Ring) Command(ctx context.Context) *CommandsInfoCmd
- func (c Ring) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
- func (c Ring) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
- func (c Ring) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
- func (c Ring) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
- func (c Ring) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c Ring) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c Ring) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c Ring) Copy(ctx context.Context, sourceKey, destKey string, db int, replace bool) *IntCmd
- func (c Ring) DBSize(ctx context.Context) *IntCmd
- func (c Ring) DebugObject(ctx context.Context, key string) *StringCmd
- func (c Ring) Decr(ctx context.Context, key string) *IntCmd
- func (c Ring) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c Ring) Del(ctx context.Context, keys ...string) *IntCmd
- func (c Ring) DelExArgs(ctx context.Context, key string, a DelExArgs) *IntCmd
- func (c Ring) Digest(ctx context.Context, key string) *DigestCmd
- func (c Ring) Do(ctx context.Context, args ...interface{}) *Cmd
- func (c Ring) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
- func (c Ring) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
- func (c Ring) Dump(ctx context.Context, key string) *StringCmd
- func (c Ring) Echo(ctx context.Context, message interface{}) *StringCmd
- func (c Ring) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Ring) EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Ring) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Ring) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Ring) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c Ring) Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Ring) ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Ring) ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Ring) ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Ring) ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Ring) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Ring) ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Ring) FCall(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Ring) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Ring) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Ring) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c Ring) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c Ring) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c Ring) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c Ring) FTAliasList(ctx context.Context, index string) *StringSliceCmd
- func (c Ring) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c Ring) FTAlter(ctx context.Context, index string, skipInitialScan bool, ...) *StatusCmd
- func (c Ring) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmddeprecated
- func (c Ring) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmddeprecated
- func (c Ring) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c Ring) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c Ring) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c Ring) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Ring) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Ring) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c Ring) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c Ring) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c Ring) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c Ring) FTExplainCli(ctx context.Context, key, path string) error
- func (c Ring) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c Ring) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, ...) *FTHybridCmd
- func (c Ring) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
- func (c Ring) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c Ring) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c Ring) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c Ring) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c Ring) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c Ring) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c Ring) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c Ring) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c Ring) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c Ring) FT_List(ctx context.Context) *StringSliceCmd
- func (c Ring) FlushAll(ctx context.Context) *StatusCmd
- func (c Ring) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c Ring) FlushDB(ctx context.Context) *StatusCmd
- func (c Ring) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c *Ring) ForEachShard(ctx context.Context, fn func(ctx context.Context, client *Client) error) error
- func (c Ring) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c Ring) FunctionDump(ctx context.Context) *StringCmd
- func (c Ring) FunctionFlush(ctx context.Context) *StringCmd
- func (c Ring) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c Ring) FunctionKill(ctx context.Context) *StringCmd
- func (c Ring) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c Ring) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c Ring) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c Ring) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c Ring) FunctionStats(ctx context.Context) *FunctionStatsCmd
- func (c Ring) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
- func (c Ring) GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
- func (c Ring) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c Ring) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c Ring) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmddeprecated
- func (c Ring) GeoRadiusByMember(ctx context.Context, key, member string, query *GeoRadiusQuery) *GeoLocationCmddeprecated
- func (c Ring) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *GeoRadiusQuery) *IntCmd
- func (c Ring) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c Ring) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
- func (c Ring) GeoSearchLocation(ctx context.Context, key string, q *GeoSearchLocationQuery) *GeoSearchLocationCmd
- func (c Ring) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
- func (c Ring) Get(ctx context.Context, key string) *StringCmd
- func (c Ring) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c Ring) GetDel(ctx context.Context, key string) *StringCmd
- func (c Ring) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c Ring) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c Ring) GetSet(ctx context.Context, key string, value interface{}) *StringCmddeprecated
- func (c *Ring) GetShardClientForKey(key string) (*Client, error)
- func (c *Ring) GetShardClients() []*Client
- func (c Ring) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
- func (c Ring) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c Ring) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c Ring) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Ring) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Ring) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Ring) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Ring) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Ring) HGet(ctx context.Context, key, field string) *StringCmd
- func (c Ring) HGetAll(ctx context.Context, key string) *MapStringStringCmd
- func (c Ring) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Ring) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Ring) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
- func (c *Ring) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
- func (c *Ring) HImportDiscardAll(ctx context.Context) *IntCmd
- func (c *Ring) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
- func (c Ring) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
- func (c Ring) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c Ring) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c Ring) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c Ring) HLen(ctx context.Context, key string) *IntCmd
- func (c Ring) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c Ring) HMSet(ctx context.Context, key string, values ...interface{}) *BoolCmd
- func (c Ring) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Ring) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Ring) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Ring) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Ring) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Ring) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Ring) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Ring) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Ring) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
- func (c Ring) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Ring) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Ring) HSet(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Ring) HSetEX(ctx context.Context, key string, fieldsAndValues ...string) *IntCmd
- func (c Ring) HSetEXWithArgs(ctx context.Context, key string, options *HSetEXOptions, ...) *IntCmd
- func (c Ring) HSetNX(ctx context.Context, key, field string, value interface{}) *BoolCmd
- func (c Ring) HStrLen(ctx context.Context, key, field string) *IntCmd
- func (c Ring) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Ring) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c Ring) Incr(ctx context.Context, key string) *IntCmd
- func (c Ring) IncrBy(ctx context.Context, key string, value int64) *IntCmd
- func (c Ring) IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd
- func (c Ring) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
- func (c Ring) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
- func (c Ring) Info(ctx context.Context, sections ...string) *StringCmd
- func (c Ring) InfoMap(ctx context.Context, sections ...string) *InfoCmd
- func (c Ring) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c Ring) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c Ring) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c Ring) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c Ring) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c Ring) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c Ring) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c Ring) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c Ring) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c Ring) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c Ring) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c Ring) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c Ring) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c Ring) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c Ring) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c Ring) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c Ring) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c Ring) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c Ring) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c Ring) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c Ring) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Ring) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c Ring) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c Ring) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, ...) *StatusCmd
- func (c Ring) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c Ring) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Ring) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Ring) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c Ring) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c Ring) LCS(ctx context.Context, q *LCSQuery) *LCSCmd
- func (c Ring) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c Ring) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *IntCmd
- func (c Ring) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Ring) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Ring) LLen(ctx context.Context, key string) *IntCmd
- func (c Ring) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c Ring) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c Ring) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
- func (c Ring) LPop(ctx context.Context, key string) *StringCmd
- func (c Ring) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Ring) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd
- func (c Ring) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd
- func (c Ring) LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Ring) LPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Ring) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Ring) LRem(ctx context.Context, key string, count int64, value interface{}) *IntCmd
- func (c Ring) LSet(ctx context.Context, key string, index int64, value interface{}) *StatusCmd
- func (c Ring) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c Ring) LastSave(ctx context.Context) *IntCmd
- func (c Ring) Latency(ctx context.Context) *LatencyCmd
- func (c Ring) LatencyReset(ctx context.Context, events ...interface{}) *StatusCmd
- func (c *Ring) Len() int
- func (c Ring) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c Ring) MSet(ctx context.Context, values ...interface{}) *StatusCmd
- func (c Ring) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
- func (c Ring) MSetNX(ctx context.Context, values ...interface{}) *BoolCmd
- func (c Ring) MemoryUsage(ctx context.Context, key string, samples ...int) *IntCmd
- func (c Ring) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
- func (c Ring) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c Ring) Monitor(ctx context.Context, ch chan string) *MonitorCmd
- func (c Ring) Move(ctx context.Context, key string, db int) *BoolCmd
- func (c Ring) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c Ring) ObjectFreq(ctx context.Context, key string) *IntCmd
- func (c Ring) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c Ring) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c *Ring) OnNewNode(fn func(rdb *Client))
- func (c *Ring) Options() *RingOptions
- func (c Ring) PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Ring) PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Ring) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Ring) PFAdd(ctx context.Context, key string, els ...interface{}) *IntCmd
- func (c Ring) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c Ring) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (c *Ring) PSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c Ring) PTTL(ctx context.Context, key string) *DurationCmd
- func (c Ring) Persist(ctx context.Context, key string) *BoolCmd
- func (c Ring) Ping(ctx context.Context) *StatusCmd
- func (c *Ring) Pipeline() Pipeliner
- func (c *Ring) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Ring) PoolStats() *PoolStats
- func (c *Ring) Process(ctx context.Context, cmd Cmder) error
- func (c Ring) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Ring) PubSubNumPat(ctx context.Context) *IntCmd
- func (c Ring) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Ring) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Ring) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c *Ring) Publish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Ring) Quit(_ context.Context) *StatusCmddeprecated
- func (c Ring) RPop(ctx context.Context, key string) *StringCmd
- func (c Ring) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Ring) RPopLPush(ctx context.Context, source, destination string) *StringCmddeprecated
- func (c Ring) RPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Ring) RPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Ring) RandomKey(ctx context.Context) *StringCmd
- func (c Ring) ReadOnly(ctx context.Context) *StatusCmd
- func (c Ring) ReadWrite(ctx context.Context) *StatusCmd
- func (c Ring) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c Ring) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c Ring) ReplicaOf(ctx context.Context, host, port string) *StatusCmd
- func (c Ring) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Ring) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Ring) SAdd(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Ring) SCard(ctx context.Context, key string) *IntCmd
- func (c Ring) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Ring) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
- func (c Ring) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Ring) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Ring) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Ring) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Ring) SIsMember(ctx context.Context, key string, member interface{}) *BoolCmd
- func (c Ring) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
- func (c Ring) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c Ring) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c Ring) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
- func (c Ring) SPop(ctx context.Context, key string) *StringCmd
- func (c Ring) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Ring) SPublish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Ring) SRandMember(ctx context.Context, key string) *StringCmd
- func (c Ring) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Ring) SRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Ring) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c *Ring) SSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c Ring) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Ring) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
- func (c Ring) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Ring) Save(ctx context.Context) *StatusCmd
- func (c Ring) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c Ring) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (c Ring) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (c Ring) ScriptFlush(ctx context.Context) *StatusCmd
- func (c Ring) ScriptKill(ctx context.Context) *StatusCmd
- func (c Ring) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c Ring) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
- func (c *Ring) SetAddrs(addrs map[string]string)
- func (c Ring) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
- func (c Ring) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd
- func (c Ring) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmddeprecated
- func (c Ring) SetFromBuffer(ctx context.Context, key string, buf []byte) *StatusCmd
- func (c Ring) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Ring) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Ring) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Ring) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Ring) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Ring) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Ring) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Ring) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Ring) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Ring) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c Ring) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Ring) Shutdown(ctx context.Context) *StatusCmd
- func (c Ring) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c Ring) ShutdownSave(ctx context.Context) *StatusCmd
- func (c Ring) SlaveOf(ctx context.Context, host, port string) *StatusCmddeprecated
- func (c Ring) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
- func (c Ring) SlowLogLen(ctx context.Context) *IntCmd
- func (c Ring) SlowLogReset(ctx context.Context) *StatusCmd
- func (c Ring) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Ring) SortInterfaces(ctx context.Context, key string, sort *Sort) *SliceCmd
- func (c Ring) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Ring) SortStore(ctx context.Context, key, store string, sort *Sort) *IntCmd
- func (c Ring) StrLen(ctx context.Context, key string) *IntCmd
- func (c *Ring) Subscribe(ctx context.Context, channels ...string) *PubSub
- func (c Ring) Sync(_ context.Context)
- func (c Ring) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c Ring) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Ring) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Ring) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Ring) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c Ring) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c Ring) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c Ring) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c Ring) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c Ring) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c Ring) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Ring) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Ring) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c Ring) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Ring) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c Ring) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c Ring) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c Ring) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c Ring) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c Ring) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Ring) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Ring) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c Ring) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Ring) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Ring) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c Ring) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c Ring) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c Ring) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c Ring) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Ring) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Ring) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Ring) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c Ring) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c Ring) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c Ring) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c Ring) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Ring) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Ring) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Ring) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Ring) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Ring) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Ring) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Ring) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Ring) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Ring) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
- func (c Ring) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Ring) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Ring) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Ring) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
- func (c Ring) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
- func (c Ring) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Ring) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Ring) TTL(ctx context.Context, key string) *DurationCmd
- func (c Ring) Time(ctx context.Context) *TimeCmd
- func (c Ring) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Ring) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Ring) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Ring) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c Ring) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c Ring) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c Ring) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Ring) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c Ring) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c Ring) Touch(ctx context.Context, keys ...string) *IntCmd
- func (c *Ring) TxPipeline() Pipeliner
- func (c *Ring) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c Ring) Type(ctx context.Context, key string) *StatusCmd
- func (c Ring) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c Ring) VAdd(ctx context.Context, key, element string, val Vector) *BoolCmd
- func (c Ring) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
- func (c Ring) VCard(ctx context.Context, key string) *IntCmd
- func (c Ring) VClearAttributes(ctx context.Context, key, element string) *BoolCmd
- func (c Ring) VDim(ctx context.Context, key string) *IntCmd
- func (c Ring) VEmb(ctx context.Context, key, element string, raw bool) *SliceCmd
- func (c Ring) VGetAttr(ctx context.Context, key, element string) *StringCmd
- func (c Ring) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Ring) VIsMember(ctx context.Context, key, element string) *BoolCmd
- func (c Ring) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
- func (c Ring) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
- func (c Ring) VRandMember(ctx context.Context, key string) *StringCmd
- func (c Ring) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Ring) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
- func (c Ring) VRem(ctx context.Context, key, element string) *BoolCmd
- func (c Ring) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
- func (c Ring) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
- func (c Ring) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
- func (c Ring) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
- func (c Ring) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
- func (c Ring) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
- func (c Ring) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
- func (c Ring) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd
- func (c Ring) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntSliceCmd
- func (c *Ring) Watch(ctx context.Context, fn func(*Tx) error, keys ...string) error
- func (c Ring) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c Ring) XAckDel(ctx context.Context, stream string, group string, mode string, ids ...string) *SliceCmd
- func (c Ring) XAdd(ctx context.Context, a *XAddArgs) *StringCmd
- func (c Ring) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
- func (c Ring) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c Ring) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
- func (c Ring) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
- func (c Ring) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
- func (c Ring) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
- func (c Ring) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c Ring) XDelEx(ctx context.Context, stream string, mode string, ids ...string) *SliceCmd
- func (c Ring) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Ring) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Ring) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Ring) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Ring) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c Ring) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Ring) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
- func (c Ring) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c Ring) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c Ring) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
- func (c Ring) XLen(ctx context.Context, stream string) *IntCmd
- func (c Ring) XNack(ctx context.Context, a *XNackArgs) *IntCmd
- func (c Ring) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c Ring) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
- func (c Ring) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Ring) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Ring) XRead(ctx context.Context, a *XReadArgs) *XStreamSliceCmd
- func (c Ring) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
- func (c Ring) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c Ring) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Ring) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Ring) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c Ring) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c Ring) XTrimMaxLenApproxMode(ctx context.Context, key string, maxLen, limit int64, mode string) *IntCmd
- func (c Ring) XTrimMaxLenMode(ctx context.Context, key string, maxLen int64, mode string) *IntCmd
- func (c Ring) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c Ring) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c Ring) XTrimMinIDApproxMode(ctx context.Context, key string, minID string, limit int64, mode string) *IntCmd
- func (c Ring) XTrimMinIDMode(ctx context.Context, key string, minID string, mode string) *IntCmd
- func (c Ring) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Ring) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c Ring) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c Ring) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Ring) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Ring) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Ring) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Ring) ZCard(ctx context.Context, key string) *IntCmd
- func (c Ring) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Ring) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Ring) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Ring) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c Ring) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c Ring) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd
- func (c Ring) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Ring) ZInterStore(ctx context.Context, destination string, store *ZStore) *IntCmd
- func (c Ring) ZInterWithScores(ctx context.Context, store *ZStore) *ZSliceCmd
- func (c Ring) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Ring) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c Ring) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c Ring) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Ring) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Ring) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Ring) ZRandMemberWithScores(ctx context.Context, key string, count int) *ZSliceCmd
- func (c Ring) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Ring) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c Ring) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c Ring) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Ring) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Ring) ZRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Ring) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c Ring) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Ring) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c Ring) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Ring) ZRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Ring) ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd
- func (c Ring) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c Ring) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c Ring) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmddeprecated
- func (c Ring) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Ring) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Ring) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Ring) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Ring) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c Ring) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Ring) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Ring) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c Ring) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c Ring) ZUnionStore(ctx context.Context, dest string, store *ZStore) *IntCmd
- func (c Ring) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type RingOptions
- type RunningScript
- type SDiffCardOptions
- type SUnionCardOptions
- type ScanCmd
- func (cmd *ScanCmd) Args() []interface{}
- func (cmd *ScanCmd) Clone() Cmder
- func (cmd *ScanCmd) Err() error
- func (cmd *ScanCmd) FullName() string
- func (cmd *ScanCmd) GetCmdType() CmdType
- func (cmd *ScanCmd) Iterator() *ScanIterator
- func (cmd *ScanCmd) Name() string
- func (cmd *ScanCmd) NoRetry() bool
- func (cmd *ScanCmd) Result() (keys []string, cursor uint64, err error)
- func (cmd *ScanCmd) SetErr(e error)
- func (cmd *ScanCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ScanCmd) SetStepCount(stepCount int8)
- func (cmd *ScanCmd) SetVal(page []string, cursor uint64)
- func (cmd *ScanCmd) String() string
- func (cmd *ScanCmd) Val() (keys []string, cursor uint64)
- type ScanDump
- type ScanDumpCmd
- func (cmd *ScanDumpCmd) Args() []interface{}
- func (cmd *ScanDumpCmd) Clone() Cmder
- func (cmd *ScanDumpCmd) Err() error
- func (cmd *ScanDumpCmd) FullName() string
- func (cmd *ScanDumpCmd) GetCmdType() CmdType
- func (cmd *ScanDumpCmd) Name() string
- func (cmd *ScanDumpCmd) NoRetry() bool
- func (cmd *ScanDumpCmd) Result() (ScanDump, error)
- func (cmd *ScanDumpCmd) SetErr(e error)
- func (cmd *ScanDumpCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ScanDumpCmd) SetStepCount(stepCount int8)
- func (cmd *ScanDumpCmd) SetVal(val ScanDump)
- func (cmd *ScanDumpCmd) String() string
- func (cmd *ScanDumpCmd) Val() ScanDump
- type ScanIterator
- 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 ScriptingFunctionsCmdable
- type SearchAggregator
- type SearchBuilder
- func (b *SearchBuilder) CountOnly() *SearchBuilder
- func (b *SearchBuilder) Dialect(version int) *SearchBuilder
- func (b *SearchBuilder) Expander(expander string) *SearchBuilder
- func (b *SearchBuilder) ExplainScore() *SearchBuilder
- func (b *SearchBuilder) Filter(field string, min, max interface{}) *SearchBuilder
- func (b *SearchBuilder) GeoFilter(field string, lon, lat, radius float64, unit string) *SearchBuilder
- func (b *SearchBuilder) InFields(fields ...interface{}) *SearchBuilder
- func (b *SearchBuilder) InKeys(keys ...interface{}) *SearchBuilder
- func (b *SearchBuilder) InOrder() *SearchBuilder
- func (b *SearchBuilder) Language(lang string) *SearchBuilder
- func (b *SearchBuilder) Limit(offset, count int) *SearchBuilder
- func (b *SearchBuilder) NoContent() *SearchBuilder
- func (b *SearchBuilder) NoStopWords() *SearchBuilder
- func (b *SearchBuilder) Param(key string, value interface{}) *SearchBuilder
- func (b *SearchBuilder) ParamsMap(p map[string]interface{}) *SearchBuilder
- func (b *SearchBuilder) Payload(payload string) *SearchBuilder
- func (b *SearchBuilder) ReturnAs(field, alias string) *SearchBuilder
- func (b *SearchBuilder) ReturnFields(fields ...string) *SearchBuilder
- func (b *SearchBuilder) Run() (FTSearchResult, error)
- func (b *SearchBuilder) Scorer(scorer string) *SearchBuilder
- func (b *SearchBuilder) Slop(slop int) *SearchBuilder
- func (b *SearchBuilder) SortBy(field string, asc bool) *SearchBuilder
- func (b *SearchBuilder) Timeout(timeout int) *SearchBuilder
- func (b *SearchBuilder) Verbatim() *SearchBuilder
- func (b *SearchBuilder) WithPayloads() *SearchBuilder
- func (b *SearchBuilder) WithScores() *SearchBuilder
- func (b *SearchBuilder) WithSortByCount() *SearchBuilder
- func (b *SearchBuilder) WithSortKeys() *SearchBuilder
- type SearchCmdable
- type SearchFieldType
- type SearchQuery
- type SentinelClient
- func (c *SentinelClient) CkQuorum(ctx context.Context, name string) *StringCmd
- func (c SentinelClient) Close() error
- func (c *SentinelClient) Failover(ctx context.Context, name string) *StatusCmd
- func (c *SentinelClient) FlushConfig(ctx context.Context) *StatusCmd
- func (c *SentinelClient) GetMasterAddrByName(ctx context.Context, name string) *StringSliceCmd
- func (c *SentinelClient) GetPushNotificationHandler(pushNotificationName string) push.NotificationHandler
- func (c *SentinelClient) Master(ctx context.Context, name string) *MapStringStringCmd
- func (c *SentinelClient) Masters(ctx context.Context) *SliceCmd
- func (c *SentinelClient) Monitor(ctx context.Context, name, ip, port, quorum string) *StringCmd
- func (c *SentinelClient) PSubscribe(ctx context.Context, channels ...string) *PubSub
- func (c *SentinelClient) Ping(ctx context.Context) *StringCmd
- func (c *SentinelClient) Process(ctx context.Context, cmd Cmder) error
- func (c *SentinelClient) RegisterPushNotificationHandler(pushNotificationName string, handler push.NotificationHandler, protected bool) error
- func (c *SentinelClient) Remove(ctx context.Context, name string) *StringCmd
- func (c *SentinelClient) Replicas(ctx context.Context, name string) *MapStringStringSliceCmd
- func (c *SentinelClient) Reset(ctx context.Context, pattern string) *IntCmd
- func (c *SentinelClient) Sentinels(ctx context.Context, name string) *MapStringStringSliceCmd
- func (c *SentinelClient) Set(ctx context.Context, name, option, value string) *StringCmd
- func (c SentinelClient) String() string
- func (c *SentinelClient) Subscribe(ctx context.Context, channels ...string) *PubSub
- type SetArgs
- type SetCmdable
- type SetCondition
- type SliceCmd
- func (cmd *SliceCmd) Args() []interface{}
- func (cmd *SliceCmd) Clone() Cmder
- func (cmd *SliceCmd) Err() error
- func (cmd *SliceCmd) FullName() string
- func (cmd *SliceCmd) GetCmdType() CmdType
- func (cmd *SliceCmd) Name() string
- func (cmd *SliceCmd) NoRetry() bool
- func (cmd *SliceCmd) Result() ([]interface{}, error)
- func (cmd *SliceCmd) Scan(dst interface{}) error
- func (cmd *SliceCmd) SetErr(e error)
- func (cmd *SliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *SliceCmd) SetStepCount(stepCount int8)
- func (cmd *SliceCmd) SetVal(val []interface{})
- func (cmd *SliceCmd) String() string
- func (cmd *SliceCmd) Val() []interface{}
- type SlotRange
- type SlowLog
- type SlowLogCmd
- func (cmd *SlowLogCmd) Args() []interface{}
- func (cmd *SlowLogCmd) Clone() Cmder
- func (cmd *SlowLogCmd) Err() error
- func (cmd *SlowLogCmd) FullName() string
- func (cmd *SlowLogCmd) GetCmdType() CmdType
- func (cmd *SlowLogCmd) Name() string
- func (cmd *SlowLogCmd) NoRetry() bool
- func (cmd *SlowLogCmd) Result() ([]SlowLog, error)
- func (cmd *SlowLogCmd) SetErr(e error)
- func (cmd *SlowLogCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *SlowLogCmd) SetStepCount(stepCount int8)
- func (cmd *SlowLogCmd) SetVal(val []SlowLog)
- func (cmd *SlowLogCmd) String() string
- func (cmd *SlowLogCmd) Val() []SlowLog
- type Sort
- type SortedSetCmdable
- type SpellCheckBuilder
- type SpellCheckResult
- type SpellCheckSuggestion
- type SpellCheckTerms
- type StatefulCmdable
- type StatusCmd
- func (cmd *StatusCmd) Args() []interface{}
- func (cmd *StatusCmd) Bytes() ([]byte, error)
- func (cmd *StatusCmd) Clone() Cmder
- func (cmd *StatusCmd) Err() error
- func (cmd *StatusCmd) FullName() string
- func (cmd *StatusCmd) GetCmdType() CmdType
- func (cmd *StatusCmd) Name() string
- func (cmd *StatusCmd) NoRetry() bool
- func (cmd *StatusCmd) Result() (string, error)
- func (cmd *StatusCmd) SetErr(e error)
- func (cmd *StatusCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *StatusCmd) SetStepCount(stepCount int8)
- func (cmd *StatusCmd) SetVal(val string)
- func (cmd *StatusCmd) String() string
- func (cmd *StatusCmd) Val() string
- type StreamCmdable
- type StringCmd
- func (cmd *StringCmd) Args() []interface{}
- func (cmd *StringCmd) Bool() (bool, error)
- func (cmd *StringCmd) Bytes() ([]byte, error)
- func (cmd *StringCmd) Clone() Cmder
- func (cmd *StringCmd) Err() error
- func (cmd *StringCmd) Float32() (float32, error)
- func (cmd *StringCmd) Float64() (float64, error)
- func (cmd *StringCmd) FullName() string
- func (cmd *StringCmd) GetCmdType() CmdType
- func (cmd *StringCmd) Int() (int, error)
- func (cmd *StringCmd) Int64() (int64, error)
- func (cmd *StringCmd) Name() string
- func (cmd *StringCmd) NoRetry() bool
- func (cmd *StringCmd) Result() (string, error)
- func (cmd *StringCmd) Scan(val interface{}) error
- func (cmd *StringCmd) SetErr(e error)
- func (cmd *StringCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *StringCmd) SetStepCount(stepCount int8)
- func (cmd *StringCmd) SetVal(val string)
- func (cmd *StringCmd) String() string
- func (cmd *StringCmd) Time() (time.Time, error)
- func (cmd *StringCmd) Uint64() (uint64, error)
- func (cmd *StringCmd) Val() string
- type StringCmdable
- type StringSliceCmd
- func (cmd *StringSliceCmd) Args() []interface{}
- func (cmd *StringSliceCmd) Clone() Cmder
- func (cmd *StringSliceCmd) Err() error
- func (cmd *StringSliceCmd) FullName() string
- func (cmd *StringSliceCmd) GetCmdType() CmdType
- func (cmd *StringSliceCmd) Name() string
- func (cmd *StringSliceCmd) NoRetry() bool
- func (cmd *StringSliceCmd) Result() ([]string, error)
- func (cmd *StringSliceCmd) ScanSlice(container interface{}) error
- func (cmd *StringSliceCmd) SetErr(e error)
- func (cmd *StringSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *StringSliceCmd) SetStepCount(stepCount int8)
- func (cmd *StringSliceCmd) SetVal(val []string)
- func (cmd *StringSliceCmd) String() string
- func (cmd *StringSliceCmd) Val() []string
- type StringSliceSliceCmd
- func (cmd *StringSliceSliceCmd) Args() []interface{}
- func (cmd *StringSliceSliceCmd) Clone() Cmder
- func (cmd *StringSliceSliceCmd) Err() error
- func (cmd *StringSliceSliceCmd) FullName() string
- func (cmd *StringSliceSliceCmd) GetCmdType() CmdType
- func (cmd *StringSliceSliceCmd) Name() string
- func (cmd *StringSliceSliceCmd) NoRetry() bool
- func (cmd *StringSliceSliceCmd) Result() ([][]string, error)
- func (cmd *StringSliceSliceCmd) SetErr(e error)
- func (cmd *StringSliceSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *StringSliceSliceCmd) SetStepCount(stepCount int8)
- func (cmd *StringSliceSliceCmd) SetVal(val [][]string)
- func (cmd *StringSliceSliceCmd) String() string
- func (cmd *StringSliceSliceCmd) Val() [][]string
- type StringStructMapCmd
- func (cmd *StringStructMapCmd) Args() []interface{}
- func (cmd *StringStructMapCmd) Clone() Cmder
- func (cmd *StringStructMapCmd) Err() error
- func (cmd *StringStructMapCmd) FullName() string
- func (cmd *StringStructMapCmd) GetCmdType() CmdType
- func (cmd *StringStructMapCmd) Name() string
- func (cmd *StringStructMapCmd) NoRetry() bool
- func (cmd *StringStructMapCmd) Result() (map[string]struct{}, error)
- func (cmd *StringStructMapCmd) SetErr(e error)
- func (cmd *StringStructMapCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *StringStructMapCmd) SetStepCount(stepCount int8)
- func (cmd *StringStructMapCmd) SetVal(val map[string]struct{})
- func (cmd *StringStructMapCmd) String() string
- func (cmd *StringStructMapCmd) Val() map[string]struct{}
- type Subscription
- type SynUpdateBuilder
- type TDigestInfo
- type TDigestInfoCmd
- func (cmd *TDigestInfoCmd) Args() []interface{}
- func (cmd *TDigestInfoCmd) Clone() Cmder
- func (cmd *TDigestInfoCmd) Err() error
- func (cmd *TDigestInfoCmd) FullName() string
- func (cmd *TDigestInfoCmd) GetCmdType() CmdType
- func (cmd *TDigestInfoCmd) Name() string
- func (cmd *TDigestInfoCmd) NoRetry() bool
- func (cmd *TDigestInfoCmd) Result() (TDigestInfo, error)
- func (cmd *TDigestInfoCmd) SetErr(e error)
- func (cmd *TDigestInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *TDigestInfoCmd) SetStepCount(stepCount int8)
- func (cmd *TDigestInfoCmd) SetVal(val TDigestInfo)
- func (cmd *TDigestInfoCmd) String() string
- func (cmd *TDigestInfoCmd) Val() TDigestInfo
- type TDigestMergeOptions
- type TSAlterOptions
- type TSCreateRuleOptions
- type TSGetOptions
- type TSIncrDecrOptions
- type TSInfoOptions
- type TSMGetOptions
- type TSMRangeOptions
- type TSMRevRangeOptions
- type TSNRangeOptions
- type TSNRangePivotRow
- type TSNRangePivotRowSliceCmd
- func (cmd *TSNRangePivotRowSliceCmd) Args() []interface{}
- func (cmd *TSNRangePivotRowSliceCmd) Clone() Cmder
- func (cmd *TSNRangePivotRowSliceCmd) Err() error
- func (cmd *TSNRangePivotRowSliceCmd) FullName() string
- func (cmd *TSNRangePivotRowSliceCmd) GetCmdType() CmdType
- func (cmd *TSNRangePivotRowSliceCmd) Name() string
- func (cmd *TSNRangePivotRowSliceCmd) NoRetry() bool
- func (cmd *TSNRangePivotRowSliceCmd) Result() ([]TSNRangePivotRow, error)
- func (cmd *TSNRangePivotRowSliceCmd) SetErr(e error)
- func (cmd *TSNRangePivotRowSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *TSNRangePivotRowSliceCmd) SetStepCount(stepCount int8)
- func (cmd *TSNRangePivotRowSliceCmd) SetVal(val []TSNRangePivotRow)
- func (cmd *TSNRangePivotRowSliceCmd) String() string
- func (cmd *TSNRangePivotRowSliceCmd) Val() []TSNRangePivotRow
- type TSNRevRangeOptions
- type TSOptions
- type TSRangeOptions
- type TSReadOptions
- type TSRevRangeOptions
- type TSTimestampValue
- type TSTimestampValueCmd
- func (cmd *TSTimestampValueCmd) Args() []interface{}
- func (cmd *TSTimestampValueCmd) Clone() Cmder
- func (cmd *TSTimestampValueCmd) Err() error
- func (cmd *TSTimestampValueCmd) FullName() string
- func (cmd *TSTimestampValueCmd) GetCmdType() CmdType
- func (cmd *TSTimestampValueCmd) Name() string
- func (cmd *TSTimestampValueCmd) NoRetry() bool
- func (cmd *TSTimestampValueCmd) Result() (TSTimestampValue, error)
- func (cmd *TSTimestampValueCmd) SetErr(e error)
- func (cmd *TSTimestampValueCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *TSTimestampValueCmd) SetStepCount(stepCount int8)
- func (cmd *TSTimestampValueCmd) SetVal(val TSTimestampValue)
- func (cmd *TSTimestampValueCmd) String() string
- func (cmd *TSTimestampValueCmd) Val() TSTimestampValue
- type TSTimestampValueSliceCmd
- func (cmd *TSTimestampValueSliceCmd) Args() []interface{}
- func (cmd *TSTimestampValueSliceCmd) Clone() Cmder
- func (cmd *TSTimestampValueSliceCmd) Err() error
- func (cmd *TSTimestampValueSliceCmd) FullName() string
- func (cmd *TSTimestampValueSliceCmd) GetCmdType() CmdType
- func (cmd *TSTimestampValueSliceCmd) Name() string
- func (cmd *TSTimestampValueSliceCmd) NoRetry() bool
- func (cmd *TSTimestampValueSliceCmd) Result() ([]TSTimestampValue, error)
- func (cmd *TSTimestampValueSliceCmd) SetErr(e error)
- func (cmd *TSTimestampValueSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *TSTimestampValueSliceCmd) SetStepCount(stepCount int8)
- func (cmd *TSTimestampValueSliceCmd) SetVal(val []TSTimestampValue)
- func (cmd *TSTimestampValueSliceCmd) String() string
- func (cmd *TSTimestampValueSliceCmd) Val() []TSTimestampValue
- type TagValsBuilder
- type TimeCmd
- func (cmd *TimeCmd) Args() []interface{}
- func (cmd *TimeCmd) Clone() Cmder
- func (cmd *TimeCmd) Err() error
- func (cmd *TimeCmd) FullName() string
- func (cmd *TimeCmd) GetCmdType() CmdType
- func (cmd *TimeCmd) Name() string
- func (cmd *TimeCmd) NoRetry() bool
- func (cmd *TimeCmd) Result() (time.Time, error)
- func (cmd *TimeCmd) SetErr(e error)
- func (cmd *TimeCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *TimeCmd) SetStepCount(stepCount int8)
- func (cmd *TimeCmd) SetVal(val time.Time)
- func (cmd *TimeCmd) String() string
- func (cmd *TimeCmd) Val() time.Time
- type TimeseriesCmdable
- type TopKInfo
- type TopKInfoCmd
- func (cmd *TopKInfoCmd) Args() []interface{}
- func (cmd *TopKInfoCmd) Clone() Cmder
- func (cmd *TopKInfoCmd) Err() error
- func (cmd *TopKInfoCmd) FullName() string
- func (cmd *TopKInfoCmd) GetCmdType() CmdType
- func (cmd *TopKInfoCmd) Name() string
- func (cmd *TopKInfoCmd) NoRetry() bool
- func (cmd *TopKInfoCmd) Result() (TopKInfo, error)
- func (cmd *TopKInfoCmd) SetErr(e error)
- func (cmd *TopKInfoCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *TopKInfoCmd) SetStepCount(stepCount int8)
- func (cmd *TopKInfoCmd) SetVal(val TopKInfo)
- func (cmd *TopKInfoCmd) String() string
- func (cmd *TopKInfoCmd) Val() TopKInfo
- type Tx
- func (c Tx) ACLCat(ctx context.Context) *StringSliceCmd
- func (c Tx) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
- func (c Tx) ACLDelUser(ctx context.Context, username string) *IntCmd
- func (c Tx) ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
- func (c Tx) ACLGenPass(ctx context.Context, bit int) *StringCmd
- func (c Tx) ACLList(ctx context.Context) *StringSliceCmd
- func (c Tx) ACLLog(ctx context.Context, count int64) *ACLLogCmd
- func (c Tx) ACLLogReset(ctx context.Context) *StatusCmd
- func (c Tx) ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
- func (c Tx) ACLUsers(ctx context.Context) *StringSliceCmd
- func (c Tx) ACLWhoAmI(ctx context.Context) *StringCmd
- func (c Tx) ARCount(ctx context.Context, key string) *UintCmd
- func (c Tx) ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
- func (c Tx) ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
- func (c Tx) ARGet(ctx context.Context, key string, index uint64) *StringCmd
- func (c Tx) ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
- func (c Tx) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
- func (c Tx) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
- func (c Tx) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Tx) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Tx) ARInsert(ctx context.Context, key string, values ...string) *UintCmd
- func (c Tx) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
- func (c Tx) ARLen(ctx context.Context, key string) *UintCmd
- func (c Tx) ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
- func (c Tx) ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
- func (c Tx) ARNext(ctx context.Context, key string) *UintCmd
- func (c Tx) AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Tx) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
- func (c Tx) AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Tx) AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Tx) AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Tx) AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
- func (c Tx) AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Tx) AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
- func (c Tx) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
- func (c Tx) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
- func (c Tx) ARSeek(ctx context.Context, key string, index uint64) *IntCmd
- func (c Tx) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
- func (c Tx) Append(ctx context.Context, key, value string) *IntCmd
- func (c Tx) Auth(ctx context.Context, password string) *StatusCmd
- func (c Tx) AuthACL(ctx context.Context, username, password string) *StatusCmd
- func (c Tx) BFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Tx) BFCard(ctx context.Context, key string) *IntCmd
- func (c Tx) BFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Tx) BFInfo(ctx context.Context, key string) *BFInfoCmd
- func (c Tx) BFInfoArg(ctx context.Context, key, option string) *BFInfoCmd
- func (c Tx) BFInfoCapacity(ctx context.Context, key string) *BFInfoCmd
- func (c Tx) BFInfoExpansion(ctx context.Context, key string) *BFInfoCmd
- func (c Tx) BFInfoFilters(ctx context.Context, key string) *BFInfoCmd
- func (c Tx) BFInfoItems(ctx context.Context, key string) *BFInfoCmd
- func (c Tx) BFInfoSize(ctx context.Context, key string) *BFInfoCmd
- func (c Tx) BFInsert(ctx context.Context, key string, options *BFInsertOptions, ...) *BoolSliceCmd
- func (c Tx) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Tx) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Tx) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Tx) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Tx) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
- func (c Tx) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
- func (c Tx) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
- func (c Tx) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Tx) BLMPop(ctx context.Context, timeout time.Duration, direction string, count int64, ...) *KeyValuesCmd
- func (c Tx) BLMove(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringCmd
- func (c Tx) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, ...) *StringSliceCmd
- func (c Tx) BLPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Tx) BRPop(ctx context.Context, timeout time.Duration, keys ...string) *StringSliceCmd
- func (c Tx) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmddeprecated
- func (c Tx) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, ...) *ZSliceWithKeyCmd
- func (c Tx) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Tx) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
- func (c Tx) BgRewriteAOF(ctx context.Context) *StatusCmd
- func (c Tx) BgSave(ctx context.Context) *StatusCmd
- func (c Tx) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd
- func (c Tx) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Tx) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
- func (c Tx) BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Tx) BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Tx) BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Tx) BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Tx) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
- func (c Tx) BitOpOne(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Tx) BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Tx) BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
- func (c Tx) BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
- func (c Tx) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
- func (c Tx) CFAdd(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Tx) CFAddNX(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Tx) CFCount(ctx context.Context, key string, element interface{}) *IntCmd
- func (c Tx) CFDel(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Tx) CFExists(ctx context.Context, key string, element interface{}) *BoolCmd
- func (c Tx) CFInfo(ctx context.Context, key string) *CFInfoCmd
- func (c Tx) CFInsert(ctx context.Context, key string, options *CFInsertOptions, ...) *BoolSliceCmd
- func (c Tx) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, ...) *IntSliceCmd
- func (c Tx) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
- func (c Tx) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Tx) CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
- func (c Tx) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
- func (c Tx) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
- func (c Tx) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
- func (c Tx) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
- func (c Tx) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
- func (c Tx) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Tx) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
- func (c Tx) CMSInitByDim(ctx context.Context, key string, width, depth int64) *StatusCmd
- func (c Tx) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
- func (c Tx) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
- func (c Tx) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
- func (c Tx) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Tx) ClientGetName(ctx context.Context) *StringCmd
- func (c Tx) ClientID(ctx context.Context) *IntCmd
- func (c Tx) ClientInfo(ctx context.Context) *ClientInfoCmd
- func (c Tx) ClientKill(ctx context.Context, ipPort string) *StatusCmd
- func (c Tx) ClientKillByFilter(ctx context.Context, keys ...string) *IntCmd
- func (c Tx) ClientList(ctx context.Context) *StringCmd
- func (c Tx) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
- func (c Tx) ClientPause(ctx context.Context, dur time.Duration) *BoolCmd
- func (c Tx) ClientSetInfo(ctx context.Context, info LibraryInfo) *StatusCmd
- func (c Tx) ClientSetName(ctx context.Context, name string) *BoolCmd
- func (c Tx) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
- func (c Tx) ClientTrackingOff(ctx context.Context) *StatusCmd
- func (c Tx) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
- func (c Tx) ClientUnblock(ctx context.Context, id int64) *IntCmd
- func (c Tx) ClientUnblockWithError(ctx context.Context, id int64) *IntCmd
- func (c Tx) ClientUnpause(ctx context.Context) *BoolCmd
- func (c *Tx) Close(ctx context.Context) error
- func (c Tx) ClusterAddSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Tx) ClusterAddSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Tx) ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
- func (c Tx) ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
- func (c Tx) ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
- func (c Tx) ClusterDelSlotsRange(ctx context.Context, min, max int) *StatusCmd
- func (c Tx) ClusterFailover(ctx context.Context) *StatusCmd
- func (c Tx) ClusterForget(ctx context.Context, nodeID string) *StatusCmd
- func (c Tx) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
- func (c Tx) ClusterInfo(ctx context.Context) *StringCmd
- func (c Tx) ClusterKeySlot(ctx context.Context, key string) *IntCmd
- func (c Tx) ClusterLinks(ctx context.Context) *ClusterLinksCmd
- func (c Tx) ClusterMeet(ctx context.Context, host, port string) *StatusCmd
- func (c Tx) ClusterMyID(ctx context.Context) *StringCmd
- func (c Tx) ClusterMyShardID(ctx context.Context) *StringCmd
- func (c Tx) ClusterNodes(ctx context.Context) *StringCmd
- func (c Tx) ClusterReplicate(ctx context.Context, nodeID string) *StatusCmd
- func (c Tx) ClusterResetHard(ctx context.Context) *StatusCmd
- func (c Tx) ClusterResetSoft(ctx context.Context) *StatusCmd
- func (c Tx) ClusterSaveConfig(ctx context.Context) *StatusCmd
- func (c Tx) ClusterShards(ctx context.Context) *ClusterShardsCmd
- func (c Tx) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmddeprecated
- func (c Tx) ClusterSlots(ctx context.Context) *ClusterSlotsCmddeprecated
- func (c Tx) Command(ctx context.Context) *CommandsInfoCmd
- func (c Tx) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
- func (c Tx) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
- func (c Tx) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
- func (c Tx) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
- func (c Tx) ConfigResetStat(ctx context.Context) *StatusCmd
- func (c Tx) ConfigRewrite(ctx context.Context) *StatusCmd
- func (c Tx) ConfigSet(ctx context.Context, parameter, value string) *StatusCmd
- func (c Tx) Copy(ctx context.Context, sourceKey, destKey string, db int, replace bool) *IntCmd
- func (c Tx) DBSize(ctx context.Context) *IntCmd
- func (c Tx) DebugObject(ctx context.Context, key string) *StringCmd
- func (c Tx) Decr(ctx context.Context, key string) *IntCmd
- func (c Tx) DecrBy(ctx context.Context, key string, decrement int64) *IntCmd
- func (c Tx) Del(ctx context.Context, keys ...string) *IntCmd
- func (c Tx) DelExArgs(ctx context.Context, key string, a DelExArgs) *IntCmd
- func (c Tx) Digest(ctx context.Context, key string) *DigestCmd
- func (c Tx) Do(ctx context.Context, args ...interface{}) *Cmd
- func (c Tx) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
- func (c Tx) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
- func (c Tx) Dump(ctx context.Context, key string) *StringCmd
- func (c Tx) Echo(ctx context.Context, message interface{}) *StringCmd
- func (c Tx) Eval(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Tx) EvalRO(ctx context.Context, script string, keys []string, args ...interface{}) *Cmd
- func (c Tx) EvalSha(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Tx) EvalShaRO(ctx context.Context, sha1 string, keys []string, args ...interface{}) *Cmd
- func (c Tx) Exists(ctx context.Context, keys ...string) *IntCmd
- func (c Tx) Expire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Tx) ExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Tx) ExpireGT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Tx) ExpireLT(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Tx) ExpireNX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Tx) ExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Tx) ExpireXX(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Tx) FCall(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Tx) FCallRO(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Tx) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
- func (c Tx) FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
- func (c Tx) FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
- func (c Tx) FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
- func (c Tx) FTAliasDel(ctx context.Context, alias string) *StatusCmd
- func (c Tx) FTAliasList(ctx context.Context, index string) *StringSliceCmd
- func (c Tx) FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
- func (c Tx) FTAlter(ctx context.Context, index string, skipInitialScan bool, ...) *StatusCmd
- func (c Tx) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmddeprecated
- func (c Tx) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmddeprecated
- func (c Tx) FTCreate(ctx context.Context, index string, options *FTCreateOptions, ...) *StatusCmd
- func (c Tx) FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
- func (c Tx) FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
- func (c Tx) FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Tx) FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
- func (c Tx) FTDictDump(ctx context.Context, dict string) *StringSliceCmd
- func (c Tx) FTDropIndex(ctx context.Context, index string) *StatusCmd
- func (c Tx) FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
- func (c Tx) FTExplain(ctx context.Context, index string, query string) *StringCmd
- func (c Tx) FTExplainCli(ctx context.Context, key, path string) error
- func (c Tx) FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
- func (c Tx) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, ...) *FTHybridCmd
- func (c Tx) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
- func (c Tx) FTInfo(ctx context.Context, index string) *FTInfoCmd
- func (c Tx) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
- func (c Tx) FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
- func (c Tx) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
- func (c Tx) FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
- func (c Tx) FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
- func (c Tx) FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
- func (c Tx) FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, ...) *StatusCmd
- func (c Tx) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
- func (c Tx) FT_List(ctx context.Context) *StringSliceCmd
- func (c Tx) FlushAll(ctx context.Context) *StatusCmd
- func (c Tx) FlushAllAsync(ctx context.Context) *StatusCmd
- func (c Tx) FlushDB(ctx context.Context) *StatusCmd
- func (c Tx) FlushDBAsync(ctx context.Context) *StatusCmd
- func (c Tx) FunctionDelete(ctx context.Context, libName string) *StringCmd
- func (c Tx) FunctionDump(ctx context.Context) *StringCmd
- func (c Tx) FunctionFlush(ctx context.Context) *StringCmd
- func (c Tx) FunctionFlushAsync(ctx context.Context) *StringCmd
- func (c Tx) FunctionKill(ctx context.Context) *StringCmd
- func (c Tx) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
- func (c Tx) FunctionLoad(ctx context.Context, code string) *StringCmd
- func (c Tx) FunctionLoadReplace(ctx context.Context, code string) *StringCmd
- func (c Tx) FunctionRestore(ctx context.Context, libDump string) *StringCmd
- func (c Tx) FunctionStats(ctx context.Context) *FunctionStatsCmd
- func (c Tx) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
- func (c Tx) GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
- func (c Tx) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
- func (c Tx) GeoPos(ctx context.Context, key string, members ...string) *GeoPosCmd
- func (c Tx) GeoRadius(ctx context.Context, key string, longitude, latitude float64, ...) *GeoLocationCmddeprecated
- func (c Tx) GeoRadiusByMember(ctx context.Context, key, member string, query *GeoRadiusQuery) *GeoLocationCmddeprecated
- func (c Tx) GeoRadiusByMemberStore(ctx context.Context, key, member string, query *GeoRadiusQuery) *IntCmd
- func (c Tx) GeoRadiusStore(ctx context.Context, key string, longitude, latitude float64, ...) *IntCmd
- func (c Tx) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
- func (c Tx) GeoSearchLocation(ctx context.Context, key string, q *GeoSearchLocationQuery) *GeoSearchLocationCmd
- func (c Tx) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
- func (c Tx) Get(ctx context.Context, key string) *StringCmd
- func (c Tx) GetBit(ctx context.Context, key string, offset int64) *IntCmd
- func (c Tx) GetDel(ctx context.Context, key string) *StringCmd
- func (c Tx) GetEx(ctx context.Context, key string, expiration time.Duration) *StringCmd
- func (c Tx) GetRange(ctx context.Context, key string, start, end int64) *StringCmd
- func (c Tx) GetSet(ctx context.Context, key string, value interface{}) *StringCmddeprecated
- func (c Tx) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
- func (c Tx) HDel(ctx context.Context, key string, fields ...string) *IntCmd
- func (c Tx) HExists(ctx context.Context, key, field string) *BoolCmd
- func (c Tx) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Tx) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Tx) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Tx) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Tx) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Tx) HGet(ctx context.Context, key, field string) *StringCmd
- func (c Tx) HGetAll(ctx context.Context, key string) *MapStringStringCmd
- func (c Tx) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Tx) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
- func (c Tx) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
- func (c Tx) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
- func (c Tx) HImportDiscardAll(ctx context.Context) *IntCmd
- func (c Tx) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
- func (c Tx) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
- func (c Tx) HIncrBy(ctx context.Context, key, field string, incr int64) *IntCmd
- func (c Tx) HIncrByFloat(ctx context.Context, key, field string, incr float64) *FloatCmd
- func (c Tx) HKeys(ctx context.Context, key string) *StringSliceCmd
- func (c Tx) HLen(ctx context.Context, key string) *IntCmd
- func (c Tx) HMGet(ctx context.Context, key string, fields ...string) *SliceCmd
- func (c Tx) HMSet(ctx context.Context, key string, values ...interface{}) *BoolCmd
- func (c Tx) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
- func (c Tx) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
- func (c Tx) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, ...) *IntSliceCmd
- func (c Tx) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Tx) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, ...) *IntSliceCmd
- func (c Tx) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Tx) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Tx) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Tx) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
- func (c Tx) HScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Tx) HScanNoValues(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Tx) HSet(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Tx) HSetEX(ctx context.Context, key string, fieldsAndValues ...string) *IntCmd
- func (c Tx) HSetEXWithArgs(ctx context.Context, key string, options *HSetEXOptions, ...) *IntCmd
- func (c Tx) HSetNX(ctx context.Context, key, field string, value interface{}) *BoolCmd
- func (c Tx) HStrLen(ctx context.Context, key, field string) *IntCmd
- func (c Tx) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
- func (c Tx) HVals(ctx context.Context, key string) *StringSliceCmd
- func (c Tx) Hello(ctx context.Context, ver int, username, password, clientName string) *MapStringInterfaceCmd
- func (c Tx) Incr(ctx context.Context, key string) *IntCmd
- func (c Tx) IncrBy(ctx context.Context, key string, value int64) *IntCmd
- func (c Tx) IncrByFloat(ctx context.Context, key string, value float64) *FloatCmd
- func (c Tx) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
- func (c Tx) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
- func (c Tx) Info(ctx context.Context, sections ...string) *StringCmd
- func (c Tx) InfoMap(ctx context.Context, sections ...string) *InfoCmd
- func (c Tx) JSONArrAppend(ctx context.Context, key, path string, values ...interface{}) *IntSliceCmd
- func (c Tx) JSONArrIndex(ctx context.Context, key, path string, value ...interface{}) *IntSliceCmd
- func (c Tx) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, ...) *IntSliceCmd
- func (c Tx) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
- func (c Tx) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
- func (c Tx) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
- func (c Tx) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
- func (c Tx) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
- func (c Tx) JSONClear(ctx context.Context, key, path string) *IntCmd
- func (c Tx) JSONDebugMemory(ctx context.Context, key, path string) *IntCmd
- func (c Tx) JSONDel(ctx context.Context, key, path string) *IntCmd
- func (c Tx) JSONForget(ctx context.Context, key, path string) *IntCmd
- func (c Tx) JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
- func (c Tx) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
- func (c Tx) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
- func (c Tx) JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
- func (c Tx) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
- func (c Tx) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
- func (c Tx) JSONNumIncrBy(ctx context.Context, key, path string, value float64) *JSONCmd
- func (c Tx) JSONObjKeys(ctx context.Context, key, path string) *SliceCmd
- func (c Tx) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Tx) JSONSet(ctx context.Context, key, path string, value interface{}) *StatusCmd
- func (c Tx) JSONSetMode(ctx context.Context, key, path string, value interface{}, mode string) *StatusCmd
- func (c Tx) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, ...) *StatusCmd
- func (c Tx) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
- func (c Tx) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Tx) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
- func (c Tx) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
- func (c Tx) Keys(ctx context.Context, pattern string) *StringSliceCmd
- func (c Tx) LCS(ctx context.Context, q *LCSQuery) *LCSCmd
- func (c Tx) LIndex(ctx context.Context, key string, index int64) *StringCmd
- func (c Tx) LInsert(ctx context.Context, key, op string, pivot, value interface{}) *IntCmd
- func (c Tx) LInsertAfter(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Tx) LInsertBefore(ctx context.Context, key string, pivot, value interface{}) *IntCmd
- func (c Tx) LLen(ctx context.Context, key string) *IntCmd
- func (c Tx) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
- func (c Tx) LMove(ctx context.Context, source, destination, srcpos, destpos string) *StringCmd
- func (c Tx) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
- func (c Tx) LPop(ctx context.Context, key string) *StringCmd
- func (c Tx) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Tx) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd
- func (c Tx) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd
- func (c Tx) LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Tx) LPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Tx) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Tx) LRem(ctx context.Context, key string, count int64, value interface{}) *IntCmd
- func (c Tx) LSet(ctx context.Context, key string, index int64, value interface{}) *StatusCmd
- func (c Tx) LTrim(ctx context.Context, key string, start, stop int64) *StatusCmd
- func (c Tx) LastSave(ctx context.Context) *IntCmd
- func (c Tx) Latency(ctx context.Context) *LatencyCmd
- func (c Tx) LatencyReset(ctx context.Context, events ...interface{}) *StatusCmd
- func (c Tx) MGet(ctx context.Context, keys ...string) *SliceCmd
- func (c Tx) MSet(ctx context.Context, values ...interface{}) *StatusCmd
- func (c Tx) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
- func (c Tx) MSetNX(ctx context.Context, values ...interface{}) *BoolCmd
- func (c Tx) MemoryUsage(ctx context.Context, key string, samples ...int) *IntCmd
- func (c Tx) Migrate(ctx context.Context, host, port, key string, db int, timeout time.Duration) *StatusCmd
- func (c Tx) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
- func (c Tx) Monitor(ctx context.Context, ch chan string) *MonitorCmd
- func (c Tx) Move(ctx context.Context, key string, db int) *BoolCmd
- func (c Tx) ObjectEncoding(ctx context.Context, key string) *StringCmd
- func (c Tx) ObjectFreq(ctx context.Context, key string) *IntCmd
- func (c Tx) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
- func (c Tx) ObjectRefCount(ctx context.Context, key string) *IntCmd
- func (c Tx) PExpire(ctx context.Context, key string, expiration time.Duration) *BoolCmd
- func (c Tx) PExpireAt(ctx context.Context, key string, tm time.Time) *BoolCmd
- func (c Tx) PExpireTime(ctx context.Context, key string) *DurationCmd
- func (c Tx) PFAdd(ctx context.Context, key string, els ...interface{}) *IntCmd
- func (c Tx) PFCount(ctx context.Context, keys ...string) *IntCmd
- func (c Tx) PFMerge(ctx context.Context, dest string, keys ...string) *StatusCmd
- func (c Tx) PTTL(ctx context.Context, key string) *DurationCmd
- func (c Tx) Persist(ctx context.Context, key string) *BoolCmd
- func (c Tx) Ping(ctx context.Context) *StatusCmd
- func (c *Tx) Pipeline() Pipeliner
- func (c *Tx) Pipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c *Tx) Process(ctx context.Context, cmd Cmder) error
- func (c Tx) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Tx) PubSubNumPat(ctx context.Context) *IntCmd
- func (c Tx) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Tx) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
- func (c Tx) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
- func (c Tx) Publish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Tx) Quit(_ context.Context) *StatusCmddeprecated
- func (c Tx) RPop(ctx context.Context, key string) *StringCmd
- func (c Tx) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Tx) RPopLPush(ctx context.Context, source, destination string) *StringCmddeprecated
- func (c Tx) RPush(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Tx) RPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
- func (c Tx) RandomKey(ctx context.Context) *StringCmd
- func (c Tx) ReadOnly(ctx context.Context) *StatusCmd
- func (c Tx) ReadWrite(ctx context.Context) *StatusCmd
- func (c Tx) Rename(ctx context.Context, key, newkey string) *StatusCmd
- func (c Tx) RenameNX(ctx context.Context, key, newkey string) *BoolCmd
- func (c Tx) ReplicaOf(ctx context.Context, host, port string) *StatusCmd
- func (c Tx) Restore(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Tx) RestoreReplace(ctx context.Context, key string, ttl time.Duration, value string) *StatusCmd
- func (c Tx) SAdd(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Tx) SCard(ctx context.Context, key string) *IntCmd
- func (c Tx) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Tx) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
- func (c Tx) SDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Tx) SInter(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Tx) SInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Tx) SInterStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Tx) SIsMember(ctx context.Context, key string, member interface{}) *BoolCmd
- func (c Tx) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
- func (c Tx) SMembers(ctx context.Context, key string) *StringSliceCmd
- func (c Tx) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
- func (c Tx) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
- func (c Tx) SPop(ctx context.Context, key string) *StringCmd
- func (c Tx) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Tx) SPublish(ctx context.Context, channel string, message interface{}) *IntCmd
- func (c Tx) SRandMember(ctx context.Context, key string) *StringCmd
- func (c Tx) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
- func (c Tx) SRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Tx) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Tx) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Tx) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
- func (c Tx) SUnionStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Tx) Save(ctx context.Context) *StatusCmd
- func (c Tx) Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
- func (c Tx) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
- func (c Tx) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
- func (c Tx) ScriptFlush(ctx context.Context) *StatusCmd
- func (c Tx) ScriptKill(ctx context.Context) *StatusCmd
- func (c Tx) ScriptLoad(ctx context.Context, script string) *StringCmd
- func (c Tx) Select(ctx context.Context, index int) *StatusCmd
- func (c Tx) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
- func (c Tx) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
- func (c Tx) SetBit(ctx context.Context, key string, offset int64, value int) *IntCmd
- func (c Tx) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmddeprecated
- func (c Tx) SetFromBuffer(ctx context.Context, key string, buf []byte) *StatusCmd
- func (c Tx) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Tx) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Tx) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StatusCmd
- func (c Tx) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, ...) *StringCmd
- func (c Tx) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Tx) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Tx) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StatusCmd
- func (c Tx) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, ...) *StringCmd
- func (c Tx) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Tx) SetRange(ctx context.Context, key string, offset int64, value string) *IntCmd
- func (c Tx) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
- func (c Tx) Shutdown(ctx context.Context) *StatusCmd
- func (c Tx) ShutdownNoSave(ctx context.Context) *StatusCmd
- func (c Tx) ShutdownSave(ctx context.Context) *StatusCmd
- func (c Tx) SlaveOf(ctx context.Context, host, port string) *StatusCmddeprecated
- func (c Tx) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
- func (c Tx) SlowLogLen(ctx context.Context) *IntCmd
- func (c Tx) SlowLogReset(ctx context.Context) *StatusCmd
- func (c Tx) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Tx) SortInterfaces(ctx context.Context, key string, sort *Sort) *SliceCmd
- func (c Tx) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
- func (c Tx) SortStore(ctx context.Context, key, store string, sort *Sort) *IntCmd
- func (c Tx) StrLen(ctx context.Context, key string) *IntCmd
- func (c *Tx) String() string
- func (c Tx) SwapDB(ctx context.Context, index1, index2 int) *StatusCmd
- func (c Tx) Sync(_ context.Context)
- func (c Tx) TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
- func (c Tx) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Tx) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
- func (c Tx) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Tx) TDigestCreate(ctx context.Context, key string) *StatusCmd
- func (c Tx) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
- func (c Tx) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
- func (c Tx) TDigestMax(ctx context.Context, key string) *FloatCmd
- func (c Tx) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, ...) *StatusCmd
- func (c Tx) TDigestMin(ctx context.Context, key string) *FloatCmd
- func (c Tx) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
- func (c Tx) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Tx) TDigestReset(ctx context.Context, key string) *StatusCmd
- func (c Tx) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
- func (c Tx) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
- func (c Tx) TSAdd(ctx context.Context, key string, timestamp interface{}, value float64) *IntCmd
- func (c Tx) TSAddWithArgs(ctx context.Context, key string, timestamp interface{}, value float64, ...) *IntCmd
- func (c Tx) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
- func (c Tx) TSCreate(ctx context.Context, key string) *StatusCmd
- func (c Tx) TSCreateRule(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Tx) TSCreateRuleWithArgs(ctx context.Context, sourceKey string, destKey string, aggregator Aggregator, ...) *StatusCmd
- func (c Tx) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
- func (c Tx) TSDecrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Tx) TSDecrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Tx) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
- func (c Tx) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
- func (c Tx) TSGet(ctx context.Context, key string) *TSTimestampValueCmd
- func (c Tx) TSGetWithArgs(ctx context.Context, key string, options *TSGetOptions) *TSTimestampValueCmd
- func (c Tx) TSIncrBy(ctx context.Context, Key string, timestamp float64) *IntCmd
- func (c Tx) TSIncrByWithArgs(ctx context.Context, key string, timestamp float64, options *TSIncrDecrOptions) *IntCmd
- func (c Tx) TSInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Tx) TSInfoWithArgs(ctx context.Context, key string, options *TSInfoOptions) *MapStringInterfaceCmd
- func (c Tx) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
- func (c Tx) TSMGet(ctx context.Context, filters []string) *MapStringSliceInterfaceCmd
- func (c Tx) TSMGetWithArgs(ctx context.Context, filters []string, options *TSMGetOptions) *MapStringSliceInterfaceCmd
- func (c Tx) TSMRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Tx) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Tx) TSMRevRange(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string) *MapStringSliceInterfaceCmd
- func (c Tx) TSMRevRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, ...) *MapStringSliceInterfaceCmd
- func (c Tx) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Tx) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Tx) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Tx) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, ...) *TSNRangePivotRowSliceCmd
- func (c Tx) TSQueryIndex(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Tx) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
- func (c Tx) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
- func (c Tx) TSRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Tx) TSRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Tx) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
- func (c Tx) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
- func (c Tx) TSRevRange(ctx context.Context, key string, fromTimestamp int, toTimestamp int) *TSTimestampValueSliceCmd
- func (c Tx) TSRevRangeWithArgs(ctx context.Context, key string, fromTimestamp int, toTimestamp int, ...) *TSTimestampValueSliceCmd
- func (c Tx) TTL(ctx context.Context, key string) *DurationCmd
- func (c Tx) Time(ctx context.Context) *TimeCmd
- func (c Tx) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Tx) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
- func (c Tx) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
- func (c Tx) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
- func (c Tx) TopKList(ctx context.Context, key string) *StringSliceCmd
- func (c Tx) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
- func (c Tx) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
- func (c Tx) TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
- func (c Tx) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
- func (c Tx) Touch(ctx context.Context, keys ...string) *IntCmd
- func (c *Tx) TxPipeline() Pipeliner
- func (c *Tx) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
- func (c Tx) Type(ctx context.Context, key string) *StatusCmd
- func (c Tx) Unlink(ctx context.Context, keys ...string) *IntCmd
- func (c *Tx) Unwatch(ctx context.Context, keys ...string) *StatusCmd
- func (c Tx) VAdd(ctx context.Context, key, element string, val Vector) *BoolCmd
- func (c Tx) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
- func (c Tx) VCard(ctx context.Context, key string) *IntCmd
- func (c Tx) VClearAttributes(ctx context.Context, key, element string) *BoolCmd
- func (c Tx) VDim(ctx context.Context, key string) *IntCmd
- func (c Tx) VEmb(ctx context.Context, key, element string, raw bool) *SliceCmd
- func (c Tx) VGetAttr(ctx context.Context, key, element string) *StringCmd
- func (c Tx) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
- func (c Tx) VIsMember(ctx context.Context, key, element string) *BoolCmd
- func (c Tx) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
- func (c Tx) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
- func (c Tx) VRandMember(ctx context.Context, key string) *StringCmd
- func (c Tx) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Tx) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
- func (c Tx) VRem(ctx context.Context, key, element string) *BoolCmd
- func (c Tx) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
- func (c Tx) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
- func (c Tx) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
- func (c Tx) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
- func (c Tx) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
- func (c Tx) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
- func (c Tx) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
- func (c Tx) Wait(ctx context.Context, numSlaves int, timeout time.Duration) *IntCmd
- func (c Tx) WaitAOF(ctx context.Context, numLocal, numSlaves int, timeout time.Duration) *IntSliceCmd
- func (c *Tx) Watch(ctx context.Context, keys ...string) *StatusCmd
- func (c Tx) XAck(ctx context.Context, stream, group string, ids ...string) *IntCmd
- func (c Tx) XAckDel(ctx context.Context, stream string, group string, mode string, ids ...string) *SliceCmd
- func (c Tx) XAdd(ctx context.Context, a *XAddArgs) *StringCmd
- func (c Tx) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
- func (c Tx) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
- func (c Tx) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
- func (c Tx) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
- func (c Tx) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
- func (c Tx) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
- func (c Tx) XDel(ctx context.Context, stream string, ids ...string) *IntCmd
- func (c Tx) XDelEx(ctx context.Context, stream string, mode string, ids ...string) *SliceCmd
- func (c Tx) XGroupCreate(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Tx) XGroupCreateConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Tx) XGroupCreateMkStream(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Tx) XGroupDelConsumer(ctx context.Context, stream, group, consumer string) *IntCmd
- func (c Tx) XGroupDestroy(ctx context.Context, stream, group string) *IntCmd
- func (c Tx) XGroupSetID(ctx context.Context, stream, group, start string) *StatusCmd
- func (c Tx) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
- func (c Tx) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
- func (c Tx) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
- func (c Tx) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
- func (c Tx) XLen(ctx context.Context, stream string) *IntCmd
- func (c Tx) XNack(ctx context.Context, a *XNackArgs) *IntCmd
- func (c Tx) XPending(ctx context.Context, stream, group string) *XPendingCmd
- func (c Tx) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
- func (c Tx) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Tx) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Tx) XRead(ctx context.Context, a *XReadArgs) *XStreamSliceCmd
- func (c Tx) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
- func (c Tx) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
- func (c Tx) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
- func (c Tx) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
- func (c Tx) XTrimMaxLen(ctx context.Context, key string, maxLen int64) *IntCmd
- func (c Tx) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
- func (c Tx) XTrimMaxLenApproxMode(ctx context.Context, key string, maxLen, limit int64, mode string) *IntCmd
- func (c Tx) XTrimMaxLenMode(ctx context.Context, key string, maxLen int64, mode string) *IntCmd
- func (c Tx) XTrimMinID(ctx context.Context, key string, minID string) *IntCmd
- func (c Tx) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
- func (c Tx) XTrimMinIDApproxMode(ctx context.Context, key string, minID string, limit int64, mode string) *IntCmd
- func (c Tx) XTrimMinIDMode(ctx context.Context, key string, minID string, mode string) *IntCmd
- func (c Tx) ZAdd(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Tx) ZAddArgs(ctx context.Context, key string, args ZAddArgs) *IntCmd
- func (c Tx) ZAddArgsIncr(ctx context.Context, key string, args ZAddArgs) *FloatCmd
- func (c Tx) ZAddGT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Tx) ZAddLT(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Tx) ZAddNX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Tx) ZAddXX(ctx context.Context, key string, members ...Z) *IntCmd
- func (c Tx) ZCard(ctx context.Context, key string) *IntCmd
- func (c Tx) ZCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Tx) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
- func (c Tx) ZDiffStore(ctx context.Context, destination string, keys ...string) *IntCmd
- func (c Tx) ZDiffWithScores(ctx context.Context, keys ...string) *ZSliceCmd
- func (c Tx) ZIncrBy(ctx context.Context, key string, increment float64, member string) *FloatCmd
- func (c Tx) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd
- func (c Tx) ZInterCard(ctx context.Context, limit int64, keys ...string) *IntCmd
- func (c Tx) ZInterStore(ctx context.Context, destination string, store *ZStore) *IntCmd
- func (c Tx) ZInterWithScores(ctx context.Context, store *ZStore) *ZSliceCmd
- func (c Tx) ZLexCount(ctx context.Context, key, min, max string) *IntCmd
- func (c Tx) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
- func (c Tx) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
- func (c Tx) ZPopMax(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Tx) ZPopMin(ctx context.Context, key string, count ...int64) *ZSliceCmd
- func (c Tx) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
- func (c Tx) ZRandMemberWithScores(ctx context.Context, key string, count int) *ZSliceCmd
- func (c Tx) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
- func (c Tx) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
- func (c Tx) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
- func (c Tx) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Tx) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Tx) ZRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Tx) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
- func (c Tx) ZRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Tx) ZRank(ctx context.Context, key, member string) *IntCmd
- func (c Tx) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Tx) ZRem(ctx context.Context, key string, members ...interface{}) *IntCmd
- func (c Tx) ZRemRangeByLex(ctx context.Context, key, min, max string) *IntCmd
- func (c Tx) ZRemRangeByRank(ctx context.Context, key string, start, stop int64) *IntCmd
- func (c Tx) ZRemRangeByScore(ctx context.Context, key, min, max string) *IntCmd
- func (c Tx) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmddeprecated
- func (c Tx) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Tx) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmddeprecated
- func (c Tx) ZRevRangeByScoreWithScores(ctx context.Context, key string, opt *ZRangeBy) *ZSliceCmd
- func (c Tx) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
- func (c Tx) ZRevRank(ctx context.Context, key, member string) *IntCmd
- func (c Tx) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
- func (c Tx) ZScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
- func (c Tx) ZScore(ctx context.Context, key, member string) *FloatCmd
- func (c Tx) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
- func (c Tx) ZUnionStore(ctx context.Context, dest string, store *ZStore) *IntCmd
- func (c Tx) ZUnionWithScores(ctx context.Context, store ZStore) *ZSliceCmd
- type UintCmd
- func (cmd *UintCmd) Args() []interface{}
- func (cmd *UintCmd) Clone() Cmder
- func (cmd *UintCmd) Err() error
- func (cmd *UintCmd) FullName() string
- func (cmd *UintCmd) GetCmdType() CmdType
- func (cmd *UintCmd) Name() string
- func (cmd *UintCmd) NoRetry() bool
- func (cmd *UintCmd) Result() (uint64, error)
- func (cmd *UintCmd) SetErr(e error)
- func (cmd *UintCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *UintCmd) SetStepCount(stepCount int8)
- func (cmd *UintCmd) SetVal(val uint64)
- func (cmd *UintCmd) String() string
- func (cmd *UintCmd) Val() uint64
- type UintSliceCmd
- func (cmd *UintSliceCmd) Args() []interface{}
- func (cmd *UintSliceCmd) Clone() Cmder
- func (cmd *UintSliceCmd) Err() error
- func (cmd *UintSliceCmd) FullName() string
- func (cmd *UintSliceCmd) GetCmdType() CmdType
- func (cmd *UintSliceCmd) Name() string
- func (cmd *UintSliceCmd) NoRetry() bool
- func (cmd *UintSliceCmd) Result() ([]uint64, error)
- func (cmd *UintSliceCmd) SetErr(e error)
- func (cmd *UintSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *UintSliceCmd) SetStepCount(stepCount int8)
- func (cmd *UintSliceCmd) SetVal(val []uint64)
- func (cmd *UintSliceCmd) String() string
- func (cmd *UintSliceCmd) Val() []uint64
- type UniversalClient
- type UniversalOptions
- type VAddArgs
- type VSimArgs
- type Vector
- type VectorAttrib
- type VectorAttribSliceCmd
- func (cmd *VectorAttribSliceCmd) Args() []interface{}
- func (cmd *VectorAttribSliceCmd) Clone() Cmder
- func (cmd *VectorAttribSliceCmd) Err() error
- func (cmd *VectorAttribSliceCmd) FullName() string
- func (cmd *VectorAttribSliceCmd) GetCmdType() CmdType
- func (cmd *VectorAttribSliceCmd) Name() string
- func (cmd *VectorAttribSliceCmd) NoRetry() bool
- func (cmd *VectorAttribSliceCmd) Result() ([]VectorAttrib, error)
- func (cmd *VectorAttribSliceCmd) SetErr(e error)
- func (cmd *VectorAttribSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *VectorAttribSliceCmd) SetStepCount(stepCount int8)
- func (cmd *VectorAttribSliceCmd) SetVal(val []VectorAttrib)
- func (cmd *VectorAttribSliceCmd) String() string
- func (cmd *VectorAttribSliceCmd) Val() []VectorAttrib
- type VectorBFloat16
- type VectorFP32
- type VectorFloat16
- type VectorFloat64
- type VectorInt8
- type VectorRef
- type VectorScore
- type VectorScoreAttrib
- type VectorScoreAttribSliceCmd
- func (cmd *VectorScoreAttribSliceCmd) Args() []interface{}
- func (cmd *VectorScoreAttribSliceCmd) Clone() Cmder
- func (cmd *VectorScoreAttribSliceCmd) Err() error
- func (cmd *VectorScoreAttribSliceCmd) FullName() string
- func (cmd *VectorScoreAttribSliceCmd) GetCmdType() CmdType
- func (cmd *VectorScoreAttribSliceCmd) Name() string
- func (cmd *VectorScoreAttribSliceCmd) NoRetry() bool
- func (cmd *VectorScoreAttribSliceCmd) Result() ([]VectorScoreAttrib, error)
- func (cmd *VectorScoreAttribSliceCmd) SetErr(e error)
- func (cmd *VectorScoreAttribSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *VectorScoreAttribSliceCmd) SetStepCount(stepCount int8)
- func (cmd *VectorScoreAttribSliceCmd) SetVal(val []VectorScoreAttrib)
- func (cmd *VectorScoreAttribSliceCmd) String() string
- func (cmd *VectorScoreAttribSliceCmd) Val() []VectorScoreAttrib
- type VectorScoreSliceCmd
- func (cmd *VectorScoreSliceCmd) Args() []interface{}
- func (cmd *VectorScoreSliceCmd) Clone() Cmder
- func (cmd *VectorScoreSliceCmd) Err() error
- func (cmd *VectorScoreSliceCmd) FullName() string
- func (cmd *VectorScoreSliceCmd) GetCmdType() CmdType
- func (cmd *VectorScoreSliceCmd) Name() string
- func (cmd *VectorScoreSliceCmd) NoRetry() bool
- func (cmd *VectorScoreSliceCmd) Result() ([]VectorScore, error)
- func (cmd *VectorScoreSliceCmd) SetErr(e error)
- func (cmd *VectorScoreSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *VectorScoreSliceCmd) SetStepCount(stepCount int8)
- func (cmd *VectorScoreSliceCmd) SetVal(val []VectorScore)
- func (cmd *VectorScoreSliceCmd) String() string
- func (cmd *VectorScoreSliceCmd) Val() []VectorScore
- type VectorScoreSliceSliceCmd
- func (cmd *VectorScoreSliceSliceCmd) Args() []interface{}
- func (cmd *VectorScoreSliceSliceCmd) Clone() Cmder
- func (cmd *VectorScoreSliceSliceCmd) Err() error
- func (cmd *VectorScoreSliceSliceCmd) FullName() string
- func (cmd *VectorScoreSliceSliceCmd) GetCmdType() CmdType
- func (cmd *VectorScoreSliceSliceCmd) Name() string
- func (cmd *VectorScoreSliceSliceCmd) NoRetry() bool
- func (cmd *VectorScoreSliceSliceCmd) Result() ([][]VectorScore, error)
- func (cmd *VectorScoreSliceSliceCmd) SetErr(e error)
- func (cmd *VectorScoreSliceSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *VectorScoreSliceSliceCmd) SetStepCount(stepCount int8)
- func (cmd *VectorScoreSliceSliceCmd) SetVal(val [][]VectorScore)
- func (cmd *VectorScoreSliceSliceCmd) String() string
- func (cmd *VectorScoreSliceSliceCmd) Val() [][]VectorScore
- type VectorSetCmdable
- type VectorUint8
- type VectorValues
- type XAddArgs
- type XAutoClaimArgs
- type XAutoClaimCmd
- func (cmd *XAutoClaimCmd) Args() []interface{}
- func (cmd *XAutoClaimCmd) Clone() Cmder
- func (cmd *XAutoClaimCmd) Err() error
- func (cmd *XAutoClaimCmd) FullName() string
- func (cmd *XAutoClaimCmd) GetCmdType() CmdType
- func (cmd *XAutoClaimCmd) Name() string
- func (cmd *XAutoClaimCmd) NoRetry() bool
- func (cmd *XAutoClaimCmd) Result() (messages []XMessage, start string, err error)
- func (cmd *XAutoClaimCmd) SetErr(e error)
- func (cmd *XAutoClaimCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XAutoClaimCmd) SetStepCount(stepCount int8)
- func (cmd *XAutoClaimCmd) SetVal(val []XMessage, start string)
- func (cmd *XAutoClaimCmd) String() string
- func (cmd *XAutoClaimCmd) Val() (messages []XMessage, start string)
- type XAutoClaimJustIDCmd
- func (cmd *XAutoClaimJustIDCmd) Args() []interface{}
- func (cmd *XAutoClaimJustIDCmd) Clone() Cmder
- func (cmd *XAutoClaimJustIDCmd) Err() error
- func (cmd *XAutoClaimJustIDCmd) FullName() string
- func (cmd *XAutoClaimJustIDCmd) GetCmdType() CmdType
- func (cmd *XAutoClaimJustIDCmd) Name() string
- func (cmd *XAutoClaimJustIDCmd) NoRetry() bool
- func (cmd *XAutoClaimJustIDCmd) Result() (ids []string, start string, err error)
- func (cmd *XAutoClaimJustIDCmd) SetErr(e error)
- func (cmd *XAutoClaimJustIDCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XAutoClaimJustIDCmd) SetStepCount(stepCount int8)
- func (cmd *XAutoClaimJustIDCmd) SetVal(val []string, start string)
- func (cmd *XAutoClaimJustIDCmd) String() string
- func (cmd *XAutoClaimJustIDCmd) Val() (ids []string, start string)
- type XAutoClaimWithDeletedCmd
- func (cmd *XAutoClaimWithDeletedCmd) Args() []interface{}
- func (cmd *XAutoClaimWithDeletedCmd) Clone() Cmder
- func (cmd *XAutoClaimWithDeletedCmd) Err() error
- func (cmd *XAutoClaimWithDeletedCmd) FullName() string
- func (cmd *XAutoClaimWithDeletedCmd) GetCmdType() CmdType
- func (cmd *XAutoClaimWithDeletedCmd) Name() string
- func (cmd *XAutoClaimWithDeletedCmd) NoRetry() bool
- func (cmd *XAutoClaimWithDeletedCmd) Result() (messages []XMessage, start string, deletedIDs []string, err error)
- func (cmd *XAutoClaimWithDeletedCmd) SetErr(e error)
- func (cmd *XAutoClaimWithDeletedCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XAutoClaimWithDeletedCmd) SetStepCount(stepCount int8)
- func (cmd *XAutoClaimWithDeletedCmd) SetVal(val []XMessage, start string, deletedIDs []string)
- func (cmd *XAutoClaimWithDeletedCmd) String() string
- func (cmd *XAutoClaimWithDeletedCmd) Val() (messages []XMessage, start string, deletedIDs []string)
- type XCfgSetArgs
- type XClaimArgs
- type XInfoConsumer
- type XInfoConsumersCmd
- func (cmd *XInfoConsumersCmd) Args() []interface{}
- func (cmd *XInfoConsumersCmd) Clone() Cmder
- func (cmd *XInfoConsumersCmd) Err() error
- func (cmd *XInfoConsumersCmd) FullName() string
- func (cmd *XInfoConsumersCmd) GetCmdType() CmdType
- func (cmd *XInfoConsumersCmd) Name() string
- func (cmd *XInfoConsumersCmd) NoRetry() bool
- func (cmd *XInfoConsumersCmd) Result() ([]XInfoConsumer, error)
- func (cmd *XInfoConsumersCmd) SetErr(e error)
- func (cmd *XInfoConsumersCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XInfoConsumersCmd) SetStepCount(stepCount int8)
- func (cmd *XInfoConsumersCmd) SetVal(val []XInfoConsumer)
- func (cmd *XInfoConsumersCmd) String() string
- func (cmd *XInfoConsumersCmd) Val() []XInfoConsumer
- type XInfoGroup
- type XInfoGroupsCmd
- func (cmd *XInfoGroupsCmd) Args() []interface{}
- func (cmd *XInfoGroupsCmd) Clone() Cmder
- func (cmd *XInfoGroupsCmd) Err() error
- func (cmd *XInfoGroupsCmd) FullName() string
- func (cmd *XInfoGroupsCmd) GetCmdType() CmdType
- func (cmd *XInfoGroupsCmd) Name() string
- func (cmd *XInfoGroupsCmd) NoRetry() bool
- func (cmd *XInfoGroupsCmd) Result() ([]XInfoGroup, error)
- func (cmd *XInfoGroupsCmd) SetErr(e error)
- func (cmd *XInfoGroupsCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XInfoGroupsCmd) SetStepCount(stepCount int8)
- func (cmd *XInfoGroupsCmd) SetVal(val []XInfoGroup)
- func (cmd *XInfoGroupsCmd) String() string
- func (cmd *XInfoGroupsCmd) Val() []XInfoGroup
- type XInfoStream
- type XInfoStreamCmd
- func (cmd *XInfoStreamCmd) Args() []interface{}
- func (cmd *XInfoStreamCmd) Clone() Cmder
- func (cmd *XInfoStreamCmd) Err() error
- func (cmd *XInfoStreamCmd) FullName() string
- func (cmd *XInfoStreamCmd) GetCmdType() CmdType
- func (cmd *XInfoStreamCmd) Name() string
- func (cmd *XInfoStreamCmd) NoRetry() bool
- func (cmd *XInfoStreamCmd) Result() (*XInfoStream, error)
- func (cmd *XInfoStreamCmd) SetErr(e error)
- func (cmd *XInfoStreamCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XInfoStreamCmd) SetStepCount(stepCount int8)
- func (cmd *XInfoStreamCmd) SetVal(val *XInfoStream)
- func (cmd *XInfoStreamCmd) String() string
- func (cmd *XInfoStreamCmd) Val() *XInfoStream
- type XInfoStreamConsumer
- type XInfoStreamConsumerPending
- type XInfoStreamFull
- type XInfoStreamFullCmd
- func (cmd *XInfoStreamFullCmd) Args() []interface{}
- func (cmd *XInfoStreamFullCmd) Clone() Cmder
- func (cmd *XInfoStreamFullCmd) Err() error
- func (cmd *XInfoStreamFullCmd) FullName() string
- func (cmd *XInfoStreamFullCmd) GetCmdType() CmdType
- func (cmd *XInfoStreamFullCmd) Name() string
- func (cmd *XInfoStreamFullCmd) NoRetry() bool
- func (cmd *XInfoStreamFullCmd) Result() (*XInfoStreamFull, error)
- func (cmd *XInfoStreamFullCmd) SetErr(e error)
- func (cmd *XInfoStreamFullCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XInfoStreamFullCmd) SetStepCount(stepCount int8)
- func (cmd *XInfoStreamFullCmd) SetVal(val *XInfoStreamFull)
- func (cmd *XInfoStreamFullCmd) String() string
- func (cmd *XInfoStreamFullCmd) Val() *XInfoStreamFull
- type XInfoStreamGroup
- type XInfoStreamGroupPending
- type XMessage
- type XMessageSliceCmd
- func (cmd *XMessageSliceCmd) Args() []interface{}
- func (cmd *XMessageSliceCmd) Clone() Cmder
- func (cmd *XMessageSliceCmd) Err() error
- func (cmd *XMessageSliceCmd) FullName() string
- func (cmd *XMessageSliceCmd) GetCmdType() CmdType
- func (cmd *XMessageSliceCmd) Name() string
- func (cmd *XMessageSliceCmd) NoRetry() bool
- func (cmd *XMessageSliceCmd) Result() ([]XMessage, error)
- func (cmd *XMessageSliceCmd) SetErr(e error)
- func (cmd *XMessageSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XMessageSliceCmd) SetStepCount(stepCount int8)
- func (cmd *XMessageSliceCmd) SetVal(val []XMessage)
- func (cmd *XMessageSliceCmd) String() string
- func (cmd *XMessageSliceCmd) Val() []XMessage
- type XNackArgs
- type XPending
- type XPendingCmd
- func (cmd *XPendingCmd) Args() []interface{}
- func (cmd *XPendingCmd) Clone() Cmder
- func (cmd *XPendingCmd) Err() error
- func (cmd *XPendingCmd) FullName() string
- func (cmd *XPendingCmd) GetCmdType() CmdType
- func (cmd *XPendingCmd) Name() string
- func (cmd *XPendingCmd) NoRetry() bool
- func (cmd *XPendingCmd) Result() (*XPending, error)
- func (cmd *XPendingCmd) SetErr(e error)
- func (cmd *XPendingCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XPendingCmd) SetStepCount(stepCount int8)
- func (cmd *XPendingCmd) SetVal(val *XPending)
- func (cmd *XPendingCmd) String() string
- func (cmd *XPendingCmd) Val() *XPending
- type XPendingExt
- type XPendingExtArgs
- type XPendingExtCmd
- func (cmd *XPendingExtCmd) Args() []interface{}
- func (cmd *XPendingExtCmd) Clone() Cmder
- func (cmd *XPendingExtCmd) Err() error
- func (cmd *XPendingExtCmd) FullName() string
- func (cmd *XPendingExtCmd) GetCmdType() CmdType
- func (cmd *XPendingExtCmd) Name() string
- func (cmd *XPendingExtCmd) NoRetry() bool
- func (cmd *XPendingExtCmd) Result() ([]XPendingExt, error)
- func (cmd *XPendingExtCmd) SetErr(e error)
- func (cmd *XPendingExtCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XPendingExtCmd) SetStepCount(stepCount int8)
- func (cmd *XPendingExtCmd) SetVal(val []XPendingExt)
- func (cmd *XPendingExtCmd) String() string
- func (cmd *XPendingExtCmd) Val() []XPendingExt
- type XReadArgs
- type XReadGroupArgs
- type XStream
- type XStreamSliceCmd
- func (cmd *XStreamSliceCmd) Args() []interface{}
- func (cmd *XStreamSliceCmd) Clone() Cmder
- func (cmd *XStreamSliceCmd) Err() error
- func (cmd *XStreamSliceCmd) FullName() string
- func (cmd *XStreamSliceCmd) GetCmdType() CmdType
- func (cmd *XStreamSliceCmd) Name() string
- func (cmd *XStreamSliceCmd) NoRetry() bool
- func (cmd *XStreamSliceCmd) Result() ([]XStream, error)
- func (cmd *XStreamSliceCmd) SetErr(e error)
- func (cmd *XStreamSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *XStreamSliceCmd) SetStepCount(stepCount int8)
- func (cmd *XStreamSliceCmd) SetVal(val []XStream)
- func (cmd *XStreamSliceCmd) String() string
- func (cmd *XStreamSliceCmd) Val() []XStream
- type Z
- type ZAddArgs
- type ZRangeArgs
- type ZRangeBy
- type ZSliceCmd
- func (cmd *ZSliceCmd) Args() []interface{}
- func (cmd *ZSliceCmd) Clone() Cmder
- func (cmd *ZSliceCmd) Err() error
- func (cmd *ZSliceCmd) FullName() string
- func (cmd *ZSliceCmd) GetCmdType() CmdType
- func (cmd *ZSliceCmd) Name() string
- func (cmd *ZSliceCmd) NoRetry() bool
- func (cmd *ZSliceCmd) Result() ([]Z, error)
- func (cmd *ZSliceCmd) SetErr(e error)
- func (cmd *ZSliceCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ZSliceCmd) SetStepCount(stepCount int8)
- func (cmd *ZSliceCmd) SetVal(val []Z)
- func (cmd *ZSliceCmd) String() string
- func (cmd *ZSliceCmd) Val() []Z
- type ZSliceWithKeyCmd
- func (cmd *ZSliceWithKeyCmd) Args() []interface{}
- func (cmd *ZSliceWithKeyCmd) Clone() Cmder
- func (cmd *ZSliceWithKeyCmd) Err() error
- func (cmd *ZSliceWithKeyCmd) FullName() string
- func (cmd *ZSliceWithKeyCmd) GetCmdType() CmdType
- func (cmd *ZSliceWithKeyCmd) Name() string
- func (cmd *ZSliceWithKeyCmd) NoRetry() bool
- func (cmd *ZSliceWithKeyCmd) Result() (string, []Z, error)
- func (cmd *ZSliceWithKeyCmd) SetErr(e error)
- func (cmd *ZSliceWithKeyCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ZSliceWithKeyCmd) SetStepCount(stepCount int8)
- func (cmd *ZSliceWithKeyCmd) SetVal(key string, val []Z)
- func (cmd *ZSliceWithKeyCmd) String() string
- func (cmd *ZSliceWithKeyCmd) Val() (string, []Z)
- type ZStore
- type ZWithKey
- type ZWithKeyCmd
- func (cmd *ZWithKeyCmd) Args() []interface{}
- func (cmd *ZWithKeyCmd) Clone() Cmder
- func (cmd *ZWithKeyCmd) Err() error
- func (cmd *ZWithKeyCmd) FullName() string
- func (cmd *ZWithKeyCmd) GetCmdType() CmdType
- func (cmd *ZWithKeyCmd) Name() string
- func (cmd *ZWithKeyCmd) NoRetry() bool
- func (cmd *ZWithKeyCmd) Result() (*ZWithKey, error)
- func (cmd *ZWithKeyCmd) SetErr(e error)
- func (cmd *ZWithKeyCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ZWithKeyCmd) SetStepCount(stepCount int8)
- func (cmd *ZWithKeyCmd) SetVal(val *ZWithKey)
- func (cmd *ZWithKeyCmd) String() string
- func (cmd *ZWithKeyCmd) Val() *ZWithKey
- type ZeroCopyStringCmd
- func (cmd *ZeroCopyStringCmd) Args() []interface{}
- func (cmd *ZeroCopyStringCmd) Bytes() []byte
- func (cmd *ZeroCopyStringCmd) Clone() Cmder
- func (cmd *ZeroCopyStringCmd) Err() error
- func (cmd *ZeroCopyStringCmd) FullName() string
- func (cmd *ZeroCopyStringCmd) GetCmdType() CmdType
- func (cmd *ZeroCopyStringCmd) Name() string
- func (cmd *ZeroCopyStringCmd) NoRetry() bool
- func (cmd *ZeroCopyStringCmd) Result() (int, error)
- func (cmd *ZeroCopyStringCmd) SetErr(e error)
- func (cmd *ZeroCopyStringCmd) SetFirstKeyPos(keyPos int8)
- func (cmd *ZeroCopyStringCmd) SetStepCount(stepCount int8)
- func (cmd *ZeroCopyStringCmd) SetVal(n int)
- func (cmd *ZeroCopyStringCmd) String() string
- func (cmd *ZeroCopyStringCmd) Val() int
Examples ¶
- Package (CustomCommand)
- Package (CustomCommand2)
- Package (Instrumentation)
- Client
- Client.BLPop
- Client.HSet
- Client.Incr
- Client.Pipeline
- Client.Pipelined
- Client.Scan
- Client.ScanType
- Client.ScanType (HashType)
- Client.Set
- Client.SetEx
- Client.SlowLogGet
- Client.TxPipeline
- Client.TxPipelined
- Client.Watch
- Client.Watch (Instrumentation)
- Conn (Client_setInfo_libraryVersion)
- Conn (Name)
- MapStringStringCmd.Scan
- NewClient
- NewClusterClient
- NewClusterClient (ManualSetup)
- NewFailoverClient
- NewRing
- NewUniversalClient (Cluster)
- NewUniversalClient (Failover)
- NewUniversalClient (Simple)
- ParseURL
- Pipeline (Instrumentation)
- PubSub
- PubSub.Receive
- ScanCmd.Iterator
- ScanIterator
- Script
- SliceCmd.Scan
Constants ¶
const ( NaN = internal.NaN // Not a Number Inf = internal.Inf // Positive infinity NInf = internal.NInf // Negative infinity )
String representations of special float values. Values are lowercase for consistency with Redis RESP2 protocol responses.
const ( SearchInvalid = SearchAggregator(iota) SearchAvg SearchSum SearchMin SearchMax SearchCount SearchCountDistinct SearchCountDistinctish SearchStdDev SearchQuantile SearchToList SearchFirstValue SearchRandomSample // SearchCollect is the COLLECT reducer for FT.AGGREGATE. Within each // GROUPBY group it projects a chosen set of fields from every row and // emits them as an array of per-entry maps under the reducer alias. // Requires Redis 8.8+ with unstable features enabled // (CONFIG SET search-enable-unstable-features yes). SearchCollect )
const ( SearchFieldTypeInvalid = SearchFieldType(iota) SearchFieldTypeNumeric SearchFieldTypeTag SearchFieldTypeText SearchFieldTypeGeo SearchFieldTypeVector SearchFieldTypeGeoShape )
const ( XNackModeSilent = "SILENT" XNackModeFail = "FAIL" XNackModeFatal = "FATAL" )
XNACK modes. See XNackArgs.Mode.
const ( TSReadEarliest = "-" // read from the earliest sample TSReadLatest = "+" // latest sample, inclusive TSReadNew = "$" // only samples added after the call )
TS.READ timestamp cursor sentinels.
const ( Invalid = Aggregator(iota) Avg Sum Min Max Range Count First Last StdP StdS VarP VarS Twa CountNaN CountAll )
const BitCountIndexBit string = "BIT"
const BitCountIndexByte string = "BYTE"
const DefaultPipelineBufferSize = 128 * 1024
DefaultPipelineBufferSize is the per-connection read/write buffer size for the dedicated pipeline pool when no explicit pipeline buffer size is set (the larger of this and the regular buffer size is used). Pipeline connections move whole batches per round trip, so they earn bigger buffers than regular per-command traffic: measured on the autopipeline engine, throughput plateaus around 64 KiB and gains nothing past ~128 KiB for TYPICAL (small-command) traffic, while very large buffers (>=512 KiB) can regress it.
Set to 128 KiB anyway: the extra headroom is not about typical-traffic throughput but about full-duplex's large-payload backpressure guardrail (see MaxBatchBytes's default) — more bufio headroom before a write() to a slow-draining peer blocks widens the margin before that guardrail's cap is reached. The aggregate memory cost stays negligible because the pool this backs holds few connections: the dedicated pipeline pool never pre-dials (DefaultPipelinePoolSize, MinIdleConns forced to 0), and full-duplex holds exactly one connection per node regardless of pool size.
const DefaultPipelinePoolSize = 10
DefaultPipelinePoolSize is the pipeline pool size used when PipelinePoolSize is not set. Pipelining batches many commands per round trip, so it needs far fewer connections than regular traffic. The pool is pure burst capacity: it never pre-dials idle connections (MinIdleConns is forced to 0 on it), so an unused pipeline pool holds no connections at all and the size is only a cap — bursts wider than it spill to the main pool.
const DefaultPipelinePoolTimeout = 100 * time.Millisecond
DefaultPipelinePoolTimeout is the dedicated pipeline pool's PoolTimeout (pipelinePoolOptions caps the pipeline clone's PoolTimeout at this value but honors a caller's SHORTER PoolTimeout). It does NOT gate the spill to the main pool: withPipelineConn acquires with a non-blocking TryGet, so a burst wider than the pipeline pool's cap spills to the main pool IMMEDIATELY (see the pipeline-pool note in Options and withPipelineConn), never waiting this timeout, and the spilled op then uses the MAIN pool's own PoolTimeout, not this one.
It currently has NO other live effect either. Every acquisition against the dedicated pipeline pool — withPipelineConn's per-round-trip borrow above, and the full-duplex engine's own session lease (autopipeline_fullduplex.go) — uses TryGet, never the blocking Get. TryGet's non-wait branch returns ErrPoolTryFull at once for BOTH a saturated pool turn and an active maintnotifications drainer claim, before waitForDrainer or this deadline is ever consulted (see ConnPool.getConn/waitTurn in internal/pool). A previous version of this doc claimed a residual drainer-handoff budget; that was inaccurate (codex on #4002) — there is no code path that currently waits out this value. It is kept short anyway in case a future acquisition path, or a caller that obtains the pool via getPipelinePool's exported pool.Pooler interface, uses the blocking Get.
const ErrorTypeNil = "NIL"
ErrorTypeNil is the error type reported to OTelRecorder.RecordError for a Nil reply.
const KeepTTL = -1
KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error. For example:
rdb.Set(ctx, key, value, redis.KeepTTL)
const Nil = proto.Nil
Nil reply returned by Redis when key does not exist.
const TxFailedErr = proto.RedisError("redis: transaction failed")
TxFailedErr transaction redis failed.
const XTrimLimitDisabled = -1
XTrimLimitDisabled is a sentinel value for the LIMIT argument of stream trimming (XAddArgs.Limit and the XTrim*Approx* commands). Passing it emits an explicit "LIMIT 0", which tells Redis to disable the trimming effort cap entirely. This differs from passing 0, which keeps the historical behavior: no LIMIT clause is sent and Redis applies its implicit default (100 * stream-node-max-entries examined entries).
LIMIT is only valid together with the "~" (approximate) trimming flag; Redis rejects LIMIT used with exact ("=") trimming.
Variables ¶
var ErrAutoPipelineQueueFull = errors.New(
"redis: autopipeline: queue full (MaxQueuedCommands reached)",
)
ErrAutoPipelineQueueFull is set on a command rejected because the autopipeliner already holds AutoPipelineOptions.MaxQueuedCommands accepted commands. The command was not sent. The caller may retry it later.
EXPERIMENTAL: this API is subject to change, use with caution.
var ErrAutoPipelineTimeout = errors.New(
"redis: autopipeline: no batch permit within the internal backstop (engine overloaded or a batch is wedged)",
)
ErrAutoPipelineTimeout is set on drained commands when a flush could not obtain a batch permit within the engine's internal backstop — the engine is overloaded or an in-flight batch is wedged (e.g. read timeouts disabled on a dead peer). It is deliberately NOT context.DeadlineExceeded: the caller's own context did not expire, and errors.Is(err, context.DeadlineExceeded) must not fire for an internal engine timeout.
EXPERIMENTAL: this API is subject to change, use with caution.
var ErrClosed = pool.ErrClosed
ErrClosed performs any operation on the closed client will return this error.
var ErrCrossSlot = proto.RedisError("CROSSSLOT Keys in request don't hash to the same slot")
ErrCrossSlot is returned when keys are used in the same Redis command and the keys are not in the same hash slot. This error is returned by Redis Cluster and will be returned by the client when TxPipeline or TxPipelined is used on a ClusterClient with keys in different slots.
var ErrFDPipelineDiverts = errors.New(
"redis: FDPipelined got a command that must be diverted off the full-duplex pipe")
ErrFDPipelineDiverts is returned when a batch contains a command the engine cannot stream (blocking, per-command read timeout, runs-outside-pipeline, HIMPORT, or one the caller's own mustDivert rejects). Such a command has to leave the pipe, which would break the batch's contiguity, so the whole call is refused instead of being silently split. A NoRetry command (e.g. RawWriteTo) is refused too: it makes the batch unreplayable as a unit, which the pipe's per-command recovery cannot honor.
var ErrFDPipelineSpansEngines = errors.New(
"redis: FDPipelined batch has keys on different full-duplex engines")
ErrFDPipelineSpansEngines is returned when NumShards > 1 runs several full-duplex engines and the batch's keyed commands hash to different ones. The batch can only ride one wire, and keeping per-first-key order needs each command on its own key's engine, so it is refused rather than split. Pipeline() falls back to an ordinary pipeline for such a batch.
var ErrFDPipelineTooLarge = errors.New(
"redis: FDPipelined batch is larger than the full-duplex submit queue")
ErrFDPipelineTooLarge is returned when a batch cannot fit the submit queue even when the queue is empty.
"redis: FDPipelined requires a full-duplex autopipeliner on a standalone Client")
ErrFDPipelineUnavailable is returned when batch submission is requested on an autopipeliner that has no full-duplex engine. It is deliberately an error rather than a silent fallback to the pooled pipeline path: a caller asking for this wants the commands on the FD wire, and quietly running them somewhere else would be measured (or relied upon) as something it is not.
Batch submission is STANDALONE ONLY. A full-duplex autopipeliner on a ClusterClient reports Config().FullDuplex true but runs one engine per node, and a pipeline can span nodes, so it gets this error and its Pipeline() keeps using the cluster pipeline, as it did before FD batches existed.
var ErrHotKeysNoMetrics = errors.New("redis: at least one metric must be specified for HOTKEYS START")
ErrHotKeysNoMetrics is returned when HotKeysStart is called without any metrics specified.
var ErrInvalidCommand = errors.New("invalid command type")
ErrInvalidCommand is returned when an invalid command is passed to ExecuteCommand.
var ErrInvalidPool = errors.New("invalid pool type")
ErrInvalidPool is returned when the pool type is not supported.
var ErrNoScript = proto.RedisError("NOSCRIPT No matching script. Please use EVAL.")
ErrNoScript is returned when EVALSHA is requested for a script digest that is not available in the script cache. Note that this error text is reproduced literally from that used by Redis.
var ErrPoolExhausted = pool.ErrPoolExhausted
ErrPoolExhausted is returned from a pool connection method when the maximum number of database connections in the pool has been reached.
var ErrPoolTimeout = pool.ErrPoolTimeout
ErrPoolTimeout timed out waiting to get a connection from the connection pool.
var ErrRingAutoPipelineUnsupported = errors.New("redis: AutoPipeline is not supported by Ring")
ErrRingAutoPipelineUnsupported is returned by Ring's AutoPipeline / AsyncAutoPipeline (and their WithOptions forms); check for it with errors.Is. Autopipelining is not implemented for Ring; use the per-shard clients or a ClusterClient. Ring is part of the UniversalClient interface, so these methods exist to satisfy it and fail explicitly rather than being silently absent.
var ErrSubmitBlockingFace = errors.New(
"redis: Submit requires the deferred autopipeliner (AsyncAutoPipeline); on the blocking face use the typed methods or Do",
)
ErrSubmitBlockingFace rejects Submit on the blocking face: Submit does not wait, so a windowed caller could have several commands in flight at once — but the blocking face stripes its enqueue queue on the strength of every caller waiting per command, and a non-waiting window there can be reordered. The deferred face (AsyncAutoPipeline) is built for exactly that usage.
EXPERIMENTAL: this API is subject to change, use with caution.
Functions ¶
func DialRetryBackoffConstant ¶ added in v9.19.0
DialRetryBackoffConstant returns a dial retry backoff function that always returns d. attempt is 0-based: attempt=0 is the delay after the 1st failed dial.
func DialRetryBackoffExponential ¶ added in v9.19.0
func DialRetryBackoffExponential(minBackoff, maxBackoff time.Duration) func(attempt int) time.Duration
DialRetryBackoffExponential returns a dial retry backoff function that uses exponential backoff with jitter and a cap, using internal.RetryBackoff.
attempt is 0-based: attempt=0 is the delay after the 1st failed dial.
func ExtractCommandValue ¶ added in v9.18.0
func ExtractCommandValue(cmd interface{}) (interface{}, error)
ExtractCommandValue extracts the value from a command result using the fast enum-based approach
func HasErrorPrefix ¶
HasErrorPrefix checks if the err is a Redis error and the message contains a prefix.
func IsAskError ¶ added in v9.17.0
IsAskError checks if an error is a Redis ASK error, even if wrapped. ASK errors occur in cluster mode when a key is being migrated and the client should ask another node. Returns the address of the node to ask and a boolean indicating if it's an ASK error.
func IsAuthError ¶ added in v9.17.0
IsAuthError checks if an error is a Redis authentication error, even if wrapped. Authentication errors occur when: - NOAUTH: Redis requires authentication but none was provided - WRONGPASS: Redis authentication failed due to incorrect password - unauthenticated: Error returned when password changed
func IsClusterDownError ¶ added in v9.17.0
IsClusterDownError checks if an error is a Redis CLUSTERDOWN error, even if wrapped. CLUSTERDOWN errors occur when the cluster is down.
func IsExecAbortError ¶ added in v9.17.0
IsExecAbortError checks if an error is a Redis EXECABORT error, even if wrapped. EXECABORT errors occur when a transaction is aborted.
func IsLoadingError ¶ added in v9.17.0
IsLoadingError checks if an error is a Redis LOADING error, even if wrapped. LOADING errors occur when Redis is loading the dataset in memory.
func IsMasterDownError ¶ added in v9.17.0
IsMasterDownError checks if an error is a Redis MASTERDOWN error, even if wrapped. MASTERDOWN errors occur when the master is down.
func IsMaxClientsError ¶ added in v9.17.0
IsMaxClientsError checks if an error is a Redis max clients error, even if wrapped. This error occurs when the maximum number of clients has been reached.
func IsMovedError ¶ added in v9.17.0
IsMovedError checks if an error is a Redis MOVED error, even if wrapped. MOVED errors occur in cluster mode when a key has been moved to a different node. Returns the address of the node where the key has been moved and a boolean indicating if it's a MOVED error.
func IsNoReplicasError ¶ added in v9.18.0
IsNoReplicasError checks if an error is a Redis NOREPLICAS error, even if wrapped. NOREPLICAS errors occur when not enough replicas acknowledge a write operation. This typically happens with WAIT/WAITAOF commands or CLUSTER SETSLOT with synchronous replication when the required number of replicas cannot confirm the write within the timeout.
func IsOOMError ¶ added in v9.17.0
IsOOMError checks if an error is a Redis OOM (Out Of Memory) error, even if wrapped. OOM errors occur when Redis is out of memory.
func IsPermissionError ¶ added in v9.17.0
IsPermissionError checks if an error is a Redis permission error, even if wrapped. Permission errors (NOPERM) occur when a user does not have permission to execute a command.
func IsReadOnlyError ¶ added in v9.17.0
IsReadOnlyError checks if an error is a Redis READONLY error, even if wrapped. READONLY errors occur when trying to write to a read-only replica.
func IsTryAgainError ¶ added in v9.17.0
IsTryAgainError checks if an error is a Redis TRYAGAIN error, even if wrapped. TRYAGAIN errors occur when a command cannot be processed and should be retried.
func NewCommandInfoResolver ¶ added in v9.18.0
func NewCommandInfoResolver(resolveFunc CommandInfoResolveFunc) *commandInfoResolver
func NewDefaultCommandPolicyResolver ¶ added in v9.18.0
func NewDefaultCommandPolicyResolver() *commandInfoResolver
func NewDialer ¶
NewDialer returns a function that will be used as the default dialer when none is specified in Options.Dialer.
func NewPushNotificationProcessor ¶ added in v9.15.0
func NewPushNotificationProcessor() push.NotificationProcessor
NewPushNotificationProcessor creates a new push notification processor This processor maintains a registry of handlers and processes push notifications It is used for RESP3 connections where push notifications are available
func NewVoidPushNotificationProcessor ¶ added in v9.15.0
func NewVoidPushNotificationProcessor() push.NotificationProcessor
NewVoidPushNotificationProcessor creates a new void push notification processor This processor does not maintain any handlers and always returns nil for all operations It is used for RESP2 connections where push notifications are not available It can also be used to disable push notifications for RESP3 connections, where it will discard all push notifications without processing them
func SetLogLevel ¶ added in v9.15.0
SetLogLevel sets the log level for the library.
func SetLogger ¶
SetLogger set custom log Use with VoidLogger to disable logging. If logger is nil, the call is ignored and the existing logger is kept.
func SetOTelRecorder ¶ added in v9.18.0
func SetOTelRecorder(r OTelRecorder)
SetOTelRecorder sets the global OpenTelemetry recorder.
Types ¶
type ACLCatArgs ¶ added in v9.7.2
type ACLCatArgs struct {
Category string
}
type ACLCmdable ¶ added in v9.2.0
type ACLCmdable interface {
ACLDryRun(ctx context.Context, username string, command ...interface{}) *StringCmd
ACLLog(ctx context.Context, count int64) *ACLLogCmd
ACLLogReset(ctx context.Context) *StatusCmd
ACLGenPass(ctx context.Context, bit int) *StringCmd
ACLSetUser(ctx context.Context, username string, rules ...string) *StatusCmd
ACLDelUser(ctx context.Context, username string) *IntCmd
ACLUsers(ctx context.Context) *StringSliceCmd
ACLWhoAmI(ctx context.Context) *StringCmd
ACLList(ctx context.Context) *StringSliceCmd
ACLCat(ctx context.Context) *StringSliceCmd
ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
}
type ACLLogCmd ¶ added in v9.0.5
type ACLLogCmd struct {
// contains filtered or unexported fields
}
func NewACLLogCmd ¶ added in v9.0.5
func (*ACLLogCmd) GetCmdType ¶ added in v9.18.0
func (cmd *ACLLogCmd) GetCmdType() CmdType
func (*ACLLogCmd) NoRetry ¶ added in v9.19.0
func (cmd *ACLLogCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*ACLLogCmd) Result ¶ added in v9.0.5
func (cmd *ACLLogCmd) Result() ([]*ACLLogEntry, error)
func (*ACLLogCmd) SetFirstKeyPos ¶ added in v9.0.5
func (cmd *ACLLogCmd) SetFirstKeyPos(keyPos int8)
func (*ACLLogCmd) SetStepCount ¶ added in v9.18.0
func (cmd *ACLLogCmd) SetStepCount(stepCount int8)
func (*ACLLogCmd) SetVal ¶ added in v9.0.5
func (cmd *ACLLogCmd) SetVal(val []*ACLLogEntry)
func (*ACLLogCmd) Val ¶ added in v9.0.5
func (cmd *ACLLogCmd) Val() []*ACLLogEntry
type ACLLogEntry ¶ added in v9.0.5
type AREntrySliceCmd ¶ added in v9.20.0
type AREntrySliceCmd struct {
// contains filtered or unexported fields
}
AREntrySliceCmd is a command that returns index-value pairs from ARSCAN or ARGREP.
func NewAREntrySliceCmd ¶ added in v9.20.0
func NewAREntrySliceCmd(ctx context.Context, args ...any) *AREntrySliceCmd
func (*AREntrySliceCmd) Clone ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) Clone() Cmder
func (*AREntrySliceCmd) GetCmdType ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) GetCmdType() CmdType
func (*AREntrySliceCmd) NoRetry ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*AREntrySliceCmd) Result ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) Result() ([]AREntry, error)
func (*AREntrySliceCmd) SetFirstKeyPos ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) SetFirstKeyPos(keyPos int8)
func (*AREntrySliceCmd) SetStepCount ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) SetStepCount(stepCount int8)
func (*AREntrySliceCmd) SetVal ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) SetVal(val []AREntry)
func (*AREntrySliceCmd) String ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) String() string
func (*AREntrySliceCmd) Val ¶ added in v9.20.0
func (cmd *AREntrySliceCmd) Val() []AREntry
type ARGrepArgs ¶ added in v9.20.0
type ARGrepArgs struct {
Predicates []ARGrepPredicate
CombineAnd bool
Limit uint64
NoCase bool
}
ARGrepArgs contains optional arguments for ARGREP. Redis ARGREP defaults to OR when multiple predicates are given. Set CombineAnd to true to combine predicates with AND instead.
func (*ARGrepArgs) Append ¶ added in v9.20.0
func (args *ARGrepArgs) Append(a []any) []any
func (*ARGrepArgs) Len ¶ added in v9.20.0
func (args *ARGrepArgs) Len() int
type ARGrepPredicate ¶ added in v9.20.0
type ARGrepPredicate struct {
Type ARGrepPredicateType
Value string
}
ARGrepPredicate represents a search predicate for ARGREP.
type ARGrepPredicateType ¶ added in v9.20.0
type ARGrepPredicateType string
ARGrepPredicateType defines the type of predicate for ARGREP.
const ( ARGrepExact ARGrepPredicateType = "EXACT" ARGrepMatch ARGrepPredicateType = "MATCH" ARGrepGlob ARGrepPredicateType = "GLOB" ARGrepRegex ARGrepPredicateType = "RE" )
type ARScanArgs ¶ added in v9.20.0
type ARScanArgs struct {
Limit uint64
}
ARScanArgs contains optional arguments for ARSCAN.
type AggregateBuilder ¶ added in v9.12.0
type AggregateBuilder struct {
// contains filtered or unexported fields
}
func (*AggregateBuilder) AddScores ¶ added in v9.12.0
func (b *AggregateBuilder) AddScores() *AggregateBuilder
AddScores includes ADDSCORES.
func (*AggregateBuilder) Apply ¶ added in v9.12.0
func (b *AggregateBuilder) Apply(field string, alias ...string) *AggregateBuilder
Apply adds an APPLY <field> [AS alias] step.
func (*AggregateBuilder) Collect ¶ added in v9.22.0
func (b *AggregateBuilder) Collect(o FTAggregateCollect) *AggregateBuilder
Collect adds a REDUCE COLLECT clause to the last step, which must be a GROUPBY. The COLLECT options (FIELDS/DISTINCT/SORTBY/LIMIT/AS) are rendered and the argument count is computed automatically; field and sort names are normalized to a single "@" prefix. Set FTAggregateCollect.As to alias the output column.
If the last step is not a GROUPBY, or the options are invalid (no FIELDS selector), Run returns the recorded error without issuing the command. COLLECT requires Redis 8.8+ with unstable features enabled.
func (*AggregateBuilder) Dialect ¶ added in v9.12.0
func (b *AggregateBuilder) Dialect(version int) *AggregateBuilder
Dialect sets DIALECT <version>.
func (*AggregateBuilder) Filter ¶ added in v9.12.0
func (b *AggregateBuilder) Filter(expr string) *AggregateBuilder
Filter sets FILTER <expr>.
func (*AggregateBuilder) GroupBy ¶ added in v9.12.0
func (b *AggregateBuilder) GroupBy(fields ...interface{}) *AggregateBuilder
GroupBy adds a new GROUPBY <fields...> step.
func (*AggregateBuilder) Load ¶ added in v9.12.0
func (b *AggregateBuilder) Load(field string, alias ...string) *AggregateBuilder
Load adds a LOAD <field> [AS alias] step. You can call it multiple times; each call becomes a separate LOAD clause at its position in the pipeline.
func (*AggregateBuilder) LoadAll ¶ added in v9.12.0
func (b *AggregateBuilder) LoadAll() *AggregateBuilder
LoadAll includes LOAD * (mutually exclusive with Load).
func (*AggregateBuilder) Params ¶ added in v9.12.0
func (b *AggregateBuilder) Params(p map[string]interface{}) *AggregateBuilder
Params adds PARAMS <k v> pairs.
func (*AggregateBuilder) Reduce ¶ added in v9.12.0
func (b *AggregateBuilder) Reduce(fn SearchAggregator, args ...interface{}) *AggregateBuilder
Reduce adds a REDUCE <fn> [<#args> <args...>] clause to the last step, which must be a GROUPBY. If it is not, Run will return an error.
func (*AggregateBuilder) ReduceAs ¶ added in v9.12.0
func (b *AggregateBuilder) ReduceAs(fn SearchAggregator, alias string, args ...interface{}) *AggregateBuilder
ReduceAs does the same but also sets an alias: REDUCE <fn> … AS <alias>. The last step must be a GROUPBY; otherwise Run will return an error.
func (*AggregateBuilder) Run ¶ added in v9.12.0
func (b *AggregateBuilder) Run() (*FTAggregateResult, error)
Run executes FT.AGGREGATE and returns a typed result. If the builder recorded a validation error while constructing the pipeline (for example, calling SortByMax when the last step is not a SortBy), that error is returned without issuing the command.
func (*AggregateBuilder) Scorer ¶ added in v9.12.0
func (b *AggregateBuilder) Scorer(s string) *AggregateBuilder
Scorer sets SCORER <scorer>.
func (*AggregateBuilder) SortBy ¶ added in v9.12.0
func (b *AggregateBuilder) SortBy(field string, asc bool) *AggregateBuilder
SortBy adds SORTBY <field> ASC|DESC. Consecutive SortBy calls (with no other step in between) are merged into a single SORTBY clause so fields act as tiebreakers. A SortBy call after a non-SortBy step starts a new SORTBY step.
Note: this is a semantics change from earlier experimental versions of the builder, where SortBy always accumulated into a single SORTBY clause regardless of position in the pipeline.
func (*AggregateBuilder) SortByMax ¶ added in v9.12.0
func (b *AggregateBuilder) SortByMax(max int) *AggregateBuilder
SortByMax sets MAX <n> on the last SORTBY step. The last step must be a SORTBY; otherwise Run will return an error.
func (*AggregateBuilder) Timeout ¶ added in v9.12.0
func (b *AggregateBuilder) Timeout(ms int) *AggregateBuilder
Timeout sets TIMEOUT <ms>.
func (*AggregateBuilder) Verbatim ¶ added in v9.12.0
func (b *AggregateBuilder) Verbatim() *AggregateBuilder
Verbatim includes VERBATIM.
func (*AggregateBuilder) WithCursor ¶ added in v9.12.0
func (b *AggregateBuilder) WithCursor(count, maxIdle int) *AggregateBuilder
WithCursor enables WITHCURSOR [COUNT <n>] [MAXIDLE <ms>].
type AggregateCmd ¶ added in v9.5.4
type AggregateCmd struct {
// contains filtered or unexported fields
}
func NewAggregateCmd ¶ added in v9.5.4
func NewAggregateCmd(ctx context.Context, args ...interface{}) *AggregateCmd
func (*AggregateCmd) Clone ¶ added in v9.18.0
func (cmd *AggregateCmd) Clone() Cmder
func (*AggregateCmd) GetCmdType ¶ added in v9.18.0
func (cmd *AggregateCmd) GetCmdType() CmdType
func (*AggregateCmd) NoRetry ¶ added in v9.19.0
func (cmd *AggregateCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*AggregateCmd) RawResult ¶ added in v9.7.0
func (cmd *AggregateCmd) RawResult() (interface{}, error)
func (*AggregateCmd) RawVal ¶ added in v9.7.0
func (cmd *AggregateCmd) RawVal() interface{}
func (*AggregateCmd) Result ¶ added in v9.5.4
func (cmd *AggregateCmd) Result() (*FTAggregateResult, error)
func (*AggregateCmd) SetFirstKeyPos ¶ added in v9.5.4
func (cmd *AggregateCmd) SetFirstKeyPos(keyPos int8)
func (*AggregateCmd) SetStepCount ¶ added in v9.18.0
func (cmd *AggregateCmd) SetStepCount(stepCount int8)
func (*AggregateCmd) SetVal ¶ added in v9.5.4
func (cmd *AggregateCmd) SetVal(val *FTAggregateResult)
func (*AggregateCmd) String ¶ added in v9.5.4
func (cmd *AggregateCmd) String() string
func (*AggregateCmd) Val ¶ added in v9.5.4
func (cmd *AggregateCmd) Val() *FTAggregateResult
type AggregateQuery ¶ added in v9.5.4
type AggregateQuery []interface{}
func FTAggregateQuery ¶ added in v9.5.4
func FTAggregateQuery(query string, options *FTAggregateOptions) (AggregateQuery, error)
type AggregateRow ¶ added in v9.5.4
type AggregateRow struct {
Fields map[string]interface{}
}
func (AggregateRow) Collect ¶ added in v9.22.0
func (r AggregateRow) Collect(alias string) (CollectColumn, error)
Collect decodes the COLLECT reducer column stored under alias in this row into a uniform CollectColumn, hiding the RESP2/RESP3 representation difference (RESP3 entries are maps; RESP2 entries are flat key/value arrays).
It returns (nil, nil) when the alias is absent from the row. Entry order is preserved as returned by the server; it is meaningful only when the COLLECT reducer was given a SORTBY.
type Aggregator ¶ added in v9.2.0
type Aggregator int
func (Aggregator) String ¶ added in v9.2.0
func (a Aggregator) String() string
type AliasBuilder ¶ added in v9.12.0
type AliasBuilder struct {
// contains filtered or unexported fields
}
---------------------- AliasBuilder for FT.ALIAS* commands ---------------------- AliasBuilder is builder for FT.ALIAS* commands EXPERIMENTAL: this API is subject to change, use with caution.
func (*AliasBuilder) Action ¶ added in v9.12.0
func (b *AliasBuilder) Action(action string) *AliasBuilder
Action sets the action for the alias builder.
func (*AliasBuilder) Add ¶ added in v9.12.0
func (b *AliasBuilder) Add(index string) *AliasBuilder
Add sets the action to "add" and requires an index.
func (*AliasBuilder) Del ¶ added in v9.12.0
func (b *AliasBuilder) Del() *AliasBuilder
Del sets the action to "del".
func (*AliasBuilder) Run ¶ added in v9.12.0
func (b *AliasBuilder) Run() (string, error)
Run executes the configured alias command.
func (*AliasBuilder) Update ¶ added in v9.12.0
func (b *AliasBuilder) Update(index string) *AliasBuilder
Update sets the action to "update" and requires an index.
type ArrayCmdable ¶ added in v9.20.0
type ArrayCmdable interface {
ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
ARGet(ctx context.Context, key string, index uint64) *StringCmd
ARGetRange(ctx context.Context, key string, start, end uint64) *SliceCmd
ARMGet(ctx context.Context, key string, indexes ...uint64) *SliceCmd
ARMSet(ctx context.Context, key string, members ...AREntry) *IntCmd
ARInsert(ctx context.Context, key string, values ...string) *UintCmd
ARDel(ctx context.Context, key string, indexes ...uint64) *IntCmd
ARDelRange(ctx context.Context, key string, ranges ...ARRange) *UintCmd
ARLen(ctx context.Context, key string) *UintCmd
ARCount(ctx context.Context, key string) *UintCmd
ARNext(ctx context.Context, key string) *UintCmd
ARSeek(ctx context.Context, key string, index uint64) *IntCmd
ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
ARScan(ctx context.Context, key string, start, end uint64, args *ARScanArgs) *AREntrySliceCmd
AROpSum(ctx context.Context, key string, start, end uint64) *StringCmd
AROpMin(ctx context.Context, key string, start, end uint64) *StringCmd
AROpMax(ctx context.Context, key string, start, end uint64) *StringCmd
AROpAnd(ctx context.Context, key string, start, end uint64) *IntCmd
AROpOr(ctx context.Context, key string, start, end uint64) *IntCmd
AROpXor(ctx context.Context, key string, start, end uint64) *IntCmd
AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
AROpUsed(ctx context.Context, key string, start, end uint64) *IntCmd
ARGrep(ctx context.Context, key string, start, end string, args *ARGrepArgs) *UintSliceCmd
ARGrepWithValues(ctx context.Context, key string, start, end string, args *ARGrepArgs) *AREntrySliceCmd
ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
}
note: the APIs is experimental and may be subject to change.
ArrayCmdable defines the interface for Redis Array data structure commands available in Redis 8.8.0+.
Redis array supports index range [0, math.MaxUint64-1), so index parameters use uint64.
type AutoFuture ¶ added in v9.22.0
type AutoFuture struct {
// contains filtered or unexported fields
}
AutoFuture is the handle returned by Submit. Call Wait (or Result on the command after Wait) once the result is needed; it blocks only until the command's batch has executed.
func (AutoFuture) Cmd ¶ added in v9.22.0
func (f AutoFuture) Cmd() Cmder
Cmd returns the underlying command (call Wait first before reading results).
func (AutoFuture) Wait ¶ added in v9.22.0
func (f AutoFuture) Wait() error
Wait blocks until the submitted command has executed, then returns its error. The zero AutoFuture (no submitted command) returns an error rather than panicking.
func (AutoFuture) WaitContext ¶ added in v9.22.0
func (f AutoFuture) WaitContext(ctx context.Context) error
WaitContext is like Wait but stops waiting when ctx is done. The command still executes and its result remains readable once its batch completes — ctx abandons only this wait, it does not cancel the command (per-command contexts are not honored after enqueue; see the AutoPipeliner doc).
After a ctx error the result may simply not be there YET: the batch is still in flight and may populate the command at any moment, so do not read Cmd()'s value or error directly — that races the executing batch. Call Wait (or WaitContext with a fresh context) again; once it returns a non-context error, the command's result is complete and safe to read.
type AutoPipelineOptions ¶ added in v9.22.0
type AutoPipelineOptions struct {
// MaxBatchSize is the target batch size: the accumulator stops waiting for
// more commands once the shard queue reaches it, so a batch flushes promptly
// instead of lingering. It is a soft threshold, not a hard cap — under heavy
// concurrent enqueue (or while a flush waits on the concurrency semaphore) the
// queue can grow past it and execute as a single larger pipeline, which is
// safe and simply yields a deeper pipeline.
// Default: 200 (the blocking face's no-options preset,
// DefaultBlockingAutoPipelineOptions, uses 300).
MaxBatchSize int
// MaxBatchBytes caps a batch by APPROXIMATE payload volume: the
// accumulator stops waiting once the queued commands' argument bytes reach
// it, so many large values flush as several bounded writes instead of one
// huge burst (300 x 64KiB is ~19MB written down one connection before any
// reply is read — enough to stall a constrained link past its write
// deadline). Like MaxBatchSize it is a soft threshold, not a hard cap.
// The estimate sizes string, []byte, *string and BinaryMarshaler arguments
// by their encoded length (other argument kinds by a small fixed size) plus
// a small per-argument overhead.
//
// Default: 128 KiB. Only 0 selects the default; a negative value is
// rejected by Validate rather than silently coerced (the autopipeliner
// getters return that error). There is no "unbounded" setting — pass a
// deliberately large value instead. This is a
// full-duplex safety guardrail, not a throughput knob: with FullDuplex,
// the reader cannot start draining replies until the writer finishes
// flushing the WHOLE batch (see autopipeline_fullduplex.go), so a batch
// with ≥2 large-payload commands can deadlock both directions — Redis
// blocks writing an early large reply while the client is still blocked
// writing the rest of the batch, resolved only by WriteTimeout, and
// recovery may then replay a command Redis already executed (cursor/codex
// on #4002). The cap bounds this for large-REQUEST commands (big ECHO,
// large SET values); it does NOT bound expected REPLY size, so a batch of
// plain GETs against large values is still exposed regardless of this
// setting — closing that gap needs the reader to drain incrementally, not
// a byte cap. For ordinary small commands this default rarely binds:
// MaxBatchSize's 200-command cap already keeps a typical batch under
// ~15 KiB, far below this threshold.
MaxBatchBytes int
// MaxConcurrentBatches is the maximum number of pipeline batches that may
// execute concurrently.
//
// Default: 1, which gives a single ordered command stream — batches execute
// serially in submit order, so even a windowed caller (submit many, read
// later) sees strict ordering, while still reaching high throughput via deep
// pipelines (~3M ops/sec locally).
//
// Setting this above 1 runs batches in parallel for maximum throughput, but
// commands then have NO guaranteed execution order. Because that trades away
// ordering, it is only allowed together with Unordered: true — otherwise the
// configuration is rejected (see Validate). This makes the trade-off
// explicit: you cannot accidentally lose ordering by raising concurrency.
MaxConcurrentBatches int
// Unordered must be set to true to allow MaxConcurrentBatches > 1. It is the
// caller's explicit acknowledgement that parallel batch execution gives up
// command ordering in exchange for throughput. With the default (false),
// MaxConcurrentBatches is forced to 1 (an ordered stream) and any value > 1
// is a configuration error.
Unordered bool
// FullDuplex enables the ordered full-duplex dispatch path: one held
// pipeline-pool connection with a writer+reader goroutine pair streaming the
// ordered command stream, instead of the half-duplex one-batch-per-round-trip
// flusher. Its win is a latency-bound (WAN) link under many concurrent
// goroutines: ~1 RTT latency and pipe-saturated throughput on a single
// connection. On a fast link (loopback) prefer half-duplex — with no RTT to
// overlap, full-duplex only adds coordination overhead.
//
// Also honored by the full-duplex writer, where it is gated on in-flight
// depth so it never taxes low-concurrency callers (see fdAccumMinFor).
//
// Honored on the ordered (Unordered:false, MaxConcurrentBatches<=1) face of a
// standalone *Client that has a pipeline pool — BOTH the deferred
// (AsyncAutoPipeline) and the blocking (AutoPipeline) face. NumShards > 1
// runs that many full-duplex engines, each on its own held connection; see
// NumShards for the ordering that mode keeps. A SINGLE
// blocking caller gains nothing: it has one command in flight, so there is
// nothing to overlap, and it still pays the held connection and goroutine
// overhead; the win needs MANY concurrent blocking callers, whose commands then
// overlap on the shared pipe exactly as on the async face (~1 RTT each instead
// of batch phase-locking). On a ClusterClient it runs natively per node: the
// engine keeps one FD child per master (each on that node's node.Client, which
// has a pipeline pool by default) and routes each command to the child that
// owns its slot; MOVED/ASK redirects are followed through the redirect-aware
// cluster path (topology reload included). It falls back to half-duplex only
// when PipelinePoolSize<0 removes the node pipeline pools. Validate rejects the
// contradictory standalone combos (FullDuplex with Unordered or MaxConcurrentBatches>1).
//
// Ordering caveat: blocking and connection-hostile commands (BLPOP, WAIT,
// XREAD BLOCK, SUBSCRIBE, MULTI, ...) are diverted to a separate pooled
// connection so they cannot stall the shared pipe. Managed HIMPORT
// (PREPARE/SET/DISCARD/DISCARDALL) is diverted too, but only on the full-duplex
// path: a fieldset is connection-session state that the FD writer does not
// replay and the FD reader does not track, so it runs through the normal Process
// path — which injects the registered PREPARE and keeps the registry current —
// instead of failing with "no such fieldset". A reply that is a retryable Redis
// error (LOADING/READONLY/…) is likewise re-run through Process, off the FD
// reader, so the reader keeps completing later replies. A MOVED/ASK redirect is
// NOT replayed on the standalone full-duplex path — a standalone Client cannot
// route it — so the redirect surfaces to the caller as the command's error,
// exactly as it does for a plain standalone command (a cluster-aware FD path
// could route it instead; that is a follow-up). Per-caller ordering therefore
// does NOT hold across a diverted command: it may settle AFTER a command
// submitted later on the same goroutine.
// That reorders only a caller holding TWO causally-dependent commands in flight
// WITHOUT awaiting the first (e.g. Set(k) then Get(k) both fired on the async
// face before reading Set's result); awaiting a result before issuing a
// dependent one preserves order, and the blocking face waits per command by
// construction, so its per-goroutine ordering is unaffected. NoRetry commands
// are never diverted. Half-duplex diverts identically; blocking commands were
// never part of the ordered stream.
//
// Observability: process hooks (redisotel spans/metrics, custom AddHook
// ProcessHooks) DO fire on the full-duplex path — each command runs the hook
// chain individually (withProcessHook, not the batch ProcessPipelineHook), the
// span bracketing its real write→reply latency; with none registered the hosting
// is skipped entirely (the fast path). Presence is checked per command at submit
// time, so a hook registered via AddHook is observed only by commands submitted
// after it (one already in flight is not retroactively spanned). DialHook and
// pool stats work as usual. Caveat: the write is already queued on the shared
// stream when the hook host starts, so a hook that SHORT-CIRCUITS (returns
// without calling next) does NOT cancel execution — the command still runs on
// the wire and only the hook's returned error reaches the caller, unlike the
// half-duplex path where next() gates the write. A hook that relies on
// short-circuiting to BLOCK a command (a policy/ACL/kill-switch hook, or a
// mock/cache that must not touch the server) therefore does NOT prevent the
// server write under FullDuplex — run such hooks on a plain client or the
// half-duplex autopipeline. A hook that calls next and only OBSERVES the
// command (reads its result after next, optionally rewriting the returned
// error) is unaffected. But because the write is already queued when the host
// starts, a hook MUST NOT mutate the command — e.g. cmd.Args() — set its
// result, or READ its result (cmd.Err(), cmd.Val(), cmd.String(), ...)
// BEFORE calling next: the write is already queued and the reader may be
// completing the command concurrently. On the hook-host goroutine the result
// accessors do not block (it is the batch's executor; blocking there would
// self-deadlock — see await), so a pre-next read is the not-yet-executed view
// racing the reader's write, not a wait for the result. Read results only
// after next returns. Mutate-before-next hooks must run on a plain client or
// the half-duplex autopipeline, where next() gates the write.
//
// A ProcessHook MUST NOT synchronously call Close (Client.Close or
// AutoPipeliner.Close) from inside the hook: the hook runs on the full-duplex
// hook-host goroutine and Close waits for that goroutine to finish, so a
// synchronous Close from the hook deadlocks until the close backstop (~30s).
// Trigger Close from a separate goroutine if a hook must initiate it.
//
// TODO(fullduplex): offer opt-in write-gating for blocking hooks — a per-client
// or per-command flag that waits for the hook to call next before enqueuing the
// command onto fd.ch, so a policy hook can veto the write, at the cost of the
// ~1-RTT concurrency for gated commands (observability-only hooks keep the fast
// path). Until then the short-circuit-does-not-block semantics above are
// intentional, not a bug.
//
// Limiter: Options.Limiter is admitted (Allow/ReportResult) once PER WRITTEN
// BATCH — the chunk flushed to the connection in one write, the full-duplex
// analogue of a pipeline exec or a half-duplex flush — not per command and
// not per session. A deny fails every command of that chunk with the
// Limiter's own error, verbatim (examinable via errors.Is); the session and
// its connection stay alive, and the next chunk pays Allow again, so an open
// breaker fail-fasts and service resumes as soon as it closes. Because
// admission happens at write time, a deny surfaces as queue latency on the
// awaited result, not as a submit-time error — and one deny covers a whole
// chunk, exactly as one Allow covers a whole pipeline exec elsewhere.
// ReportResult fires exactly once per admitted chunk, strictly paired with its
// Allow, and carries the REPLY-side outcome — not the write result. A clean write
// does NOT report at admission: the obligation rides the in-flight deque on the
// chunk's last command and reports nil once every reply of the chunk has landed
// (reply-LEVEL errors such as redis.Nil / WRONGTYPE / MOVED still report nil — a
// server that answers is healthy). A write failure or encoder panic reports that
// write error immediately (the replies will never come); a later transport failure
// that abandons the chunk's unread replies reports that error. A denied (or
// panicking) Allow grants no permit and reports nothing. So a custom Limiter must
// expect its permit to be released on the reply side and to observe only transport
// failures, never reply-level Redis errors.
FullDuplex bool
// FullDuplexWindow is the maximum in-flight (written-but-unacknowledged)
// commands before the writer applies backpressure — a hard memory bound AND the
// cap on how deep the pipe can fill, so it must exceed the bandwidth-delay
// product (RTT × target rate) or it throttles throughput. The deque holds only
// ACTUAL in-flight (self-limited by throughput), so a generous window costs no
// memory until a stalled peer makes in-flight grow. Only used when FullDuplex is
// set; 0 means the default (65536, covering ~50ms links at ~1.3M ops/s) and a
// negative value is rejected by Validate.
//
// The window is PER ENGINE. With NumShards > 1 each full-duplex engine gets
// its own window and submit queue of this size, so the client-wide bound is
// NumShards × FullDuplexWindow in flight, plus as many queued. Size it for
// one wire; to cap the total, divide by NumShards.
FullDuplexWindow int
// FullDuplexIdleTimeout is how long the held full-duplex connection may sit
// with no queued work and a drained in-flight before it is returned to the pool
// (so it is reusable and its per-conn hooks — streaming-creds re-auth,
// maintnotifications — get a chance to run). Only used when FullDuplex is set.
// 0 means the default (1s); a negative value is rejected by Validate.
FullDuplexIdleTimeout time.Duration
// FullDuplexMaxHold forces the same clean return under continuous load, so the
// per-conn hooks run at least this often even when the connection never goes
// idle. Only used when FullDuplex is set. 0 means the default (5s); a negative
// value is rejected by Validate.
FullDuplexMaxHold time.Duration
// NumShards is the number of independent queue+flusher shards the
// autopipeliner runs. 0 (the default) means auto: a single shard, which
// funnels every caller into one queue so batches stay deep — measured
// throughput and latency are best with one shard even under heavy
// goroutine concurrency. Cluster clients default to several slot-routed
// shards instead, so commands for different nodes queue independently
// (per-key order still holds: a key's slot always maps to the same
// shard). Raising NumShards splits the queue: it reduces enqueue-mutex
// contention but fragments batches, which usually costs far more than the
// contention saves. Every shard always has at least one concurrency
// permit, so the effective global batch concurrency is
// max(NumShards, MaxConcurrentBatches) — and because shards flush
// concurrently, NumShards > 1 on the deferred (async) face requires
// Unordered: true (construction fails otherwise).
//
// With FullDuplex active on a standalone *Client, NumShards means something
// else: the number of full-duplex engines, each holding one pipeline-pool
// connection with its own window (see FullDuplexWindow). More engines pay
// off only with many concurrent callers: measured with 10-command
// pipelines, 8 engines were 30% slower than 1 at 8 callers, broke even at about
// 128, and 2.2x faster at 1024. Commands are routed
// to an engine by a hash of their first key, so Unordered is not required,
// but order holds only between commands that share a first key. The key is
// hashed in its string form (fmt for non-string arguments, as Ring does), so
// pass a key as the same Go type everywhere: true and "1" are the same Redis
// key but can land on different engines. Commands
// that touch other keys after the first one (COPY, RENAME, MSET, multi-key
// DEL, EVAL/FCALL with several keys) and keyless commands (including
// FLUSHDB and SWAPDB) are not ordered against the rest; await the first
// future before submitting a dependent one, or keep NumShards at 1, which
// keeps the whole submit order. A Pipeline() rides the FD wire only when all
// its keyed commands hash to one engine; otherwise it runs as an ordinary
// pipeline on a pooled connection, not ordered against unawaited commands on
// the engines. The pipeline pool must hold at least
// NumShards connections for every full-duplex autopipeliner in use
// (construction checks this one). If full duplex cannot engage (no
// pipeline pool), the Unordered rule above applies.
NumShards int
// MaxFlushDelay is the maximum delay after flushing before checking for more commands.
// A small delay (e.g., 100μs) can significantly reduce CPU usage by allowing
// more commands to batch together, at the cost of slightly higher latency.
//
// Trade-off:
// - 0 (default): Lowest latency, higher CPU usage
// - 100μs: Balanced (recommended for most workloads)
// - 500μs: Lower CPU usage, higher latency
//
// Based on benchmarks, 100μs can reduce CPU usage by 50%
// while adding only ~100μs average latency per command.
// Default: 0, meaning the flusher applies no coalescing wait — it flushes
// each batch as soon as the queue is ready and lets in-flight backpressure
// coalesce concurrent callers (see accumulateBatch). Set a value here to add
// an explicit accumulation window, trading latency for larger batches / less
// CPU as described above.
MaxFlushDelay time.Duration
// AdaptiveDelay enables smart delay calculation based on queue fill level.
// When enabled, the delay is automatically adjusted:
// - Queue ≥75% full: No delay (flush immediately to prevent overflow)
// - Queue ≥50% full: 25% of MaxFlushDelay (queue filling up)
// - Queue ≥25% full: 50% of MaxFlushDelay (moderate load)
// - Queue <25% full: 100% of MaxFlushDelay (low load, maximize batching)
//
// This provides automatic adaptation to varying load patterns without
// manual tuning. Uses integer-only arithmetic for optimal performance.
// Default: false (use fixed MaxFlushDelay)
//
// Half-duplex only. The full-duplex writer has its own policy: it waits
// MaxFlushDelay only when enough commands are in flight (see MaxFlushDelay)
// and ignores AdaptiveDelay.
AdaptiveDelay bool
// MaxQueuedCommands, when > 0, is a hard limit on commands the
// autopipeliner has accepted but not yet completed: queued, waiting for a
// batch permit, executing, and commands run outside the pipeline (Do,
// blocking and connection-hostile commands). A command submitted at the limit is not
// queued: it fails at once with ErrAutoPipelineQueueFull. The limit bounds
// client memory when the server is slower than the producers.
//
// Rejection is per command, so it can break submit order on the deferred
// face: a SET may be rejected while a later GET on the same key is
// accepted. Check the error of each command that the next one depends on.
//
// With FullDuplex the ordered stream is bounded by FullDuplexWindow (a full
// window blocks the submitter instead of rejecting), so MaxQueuedCommands
// then limits only the commands run outside the pipeline.
// Default: 0 (no limit).
MaxQueuedCommands int
// contains filtered or unexported fields
}
AutoPipelineOptions configures the autopipelining behavior.
EXPERIMENTAL: this API is subject to change, use with caution.
func DefaultAutoPipelineOptions ¶ added in v9.22.0
func DefaultAutoPipelineOptions() *AutoPipelineOptions
DefaultAutoPipelineOptions returns the default autopipelining configuration.
The default is ordered: MaxConcurrentBatches is 1, so batches execute serially in submit order (a single ordered command stream) while still reaching high throughput via deep pipelines when callers submit in windows. To trade ordering for parallel-batch throughput, set MaxConcurrentBatches > 1 together with Unordered: true.
EXPERIMENTAL: this API is subject to change, use with caution.
func DefaultBlockingAutoPipelineOptions ¶ added in v9.22.0
func DefaultBlockingAutoPipelineOptions() *AutoPipelineOptions
DefaultBlockingAutoPipelineOptions returns the default config for the blocking face (Client.AutoPipeline). It uses a single ordered batch stream (MaxConcurrentBatches: 1). Counterintuitively this maximizes throughput AND minimizes latency for the blocking face: with one batch in flight, callers whose commands return while it executes re-enqueue and flush together as the next batch, so batches stay deep (a near-continuous, double-buffered pipeline), while a lone caller flushes promptly in a single round-trip (no coalescing wait — see accumulateBatch). More parallel permits (MaxConcurrentBatches>1) do the opposite: each command finds a free permit and flushes on its own before others accumulate, collapsing batch size — and throughput — toward one command per round-trip while latency rises. For maximum throughput use the async face (AsyncAutoPipeline) with a window of in-flight commands (inflight>1); it keeps MaxConcurrentBatches: 1 as well.
EXPERIMENTAL: this API is subject to change, use with caution.
func (*AutoPipelineOptions) Validate ¶ added in v9.22.0
func (cfg *AutoPipelineOptions) Validate() error
Validate reports whether the configuration is self-consistent. It returns an error if MaxConcurrentBatches > 1 without Unordered: true — raising concurrency gives up command ordering, so the caller must opt in explicitly.
Validate()==nil does not guarantee construction succeeds: rules that need the face (e.g. NumShards>1 requires Unordered on the deferred face) are enforced by the AutoPipeline/AsyncAutoPipeline getters. Note also that Options.AutoPipelineOptions is validated lazily — on the first getter call, not in NewClient.
type AutoPipeliner ¶ added in v9.22.0
type AutoPipeliner struct {
// contains filtered or unexported fields
}
func (AutoPipeliner) ACLCat ¶ added in v9.22.0
func (c AutoPipeliner) ACLCat(ctx context.Context) *StringSliceCmd
func (AutoPipeliner) ACLCatArgs ¶ added in v9.22.0
func (c AutoPipeliner) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
func (AutoPipeliner) ACLDelUser ¶ added in v9.22.0
func (AutoPipeliner) ACLGenPass ¶ added in v9.22.0
func (AutoPipeliner) ACLList ¶ added in v9.22.0
func (c AutoPipeliner) ACLList(ctx context.Context) *StringSliceCmd
func (AutoPipeliner) ACLLogReset ¶ added in v9.22.0
func (AutoPipeliner) ACLSetUser ¶ added in v9.22.0
func (AutoPipeliner) ACLUsers ¶ added in v9.22.0
func (c AutoPipeliner) ACLUsers(ctx context.Context) *StringSliceCmd
func (AutoPipeliner) ARCount ¶ added in v9.22.0
ARCount returns the number of non-empty elements in an array. Returns 0 if the key does not exist.
func (AutoPipeliner) ARDel ¶ added in v9.22.0
ARDel deletes elements at the specified indexes in an array. Returns the number of elements deleted.
func (AutoPipeliner) ARDelRange ¶ added in v9.22.0
ARDelRange deletes elements in one or more ranges. Returns the number of elements deleted.
func (AutoPipeliner) ARGet ¶ added in v9.22.0
ARGet gets the value at an index in an array. Returns redis.Nil if the key or index does not exist.
func (AutoPipeliner) ARGetRange ¶ added in v9.22.0
ARGetRange gets values in a range of indexes. Returns values in the range, with nil for unset indexes.
func (AutoPipeliner) ARGrep ¶ added in v9.22.0
func (c AutoPipeliner) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
ARGrep searches array elements in a range using textual predicates. Returns matching indexes only. Use ARGrepWithValues to also get the values.
func (AutoPipeliner) ARGrepWithValues ¶ added in v9.22.0
func (c AutoPipeliner) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
ARGrepWithValues searches array elements in a range using textual predicates. Returns matching indexes and their values as index-value pairs.
func (AutoPipeliner) ARInfo ¶ added in v9.22.0
func (c AutoPipeliner) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
ARInfo returns metadata about an array.
func (AutoPipeliner) ARInfoFull ¶ added in v9.22.0
func (c AutoPipeliner) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
ARInfoFull returns detailed metadata about an array including slice statistics.
func (AutoPipeliner) ARInsert ¶ added in v9.22.0
ARInsert inserts one or more values at consecutive indexes. Returns the last index where a value was inserted.
func (AutoPipeliner) ARLastItems ¶ added in v9.22.0
func (c AutoPipeliner) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
ARLastItems returns the most recently inserted elements. When rev is true, returns items in reverse order.
func (AutoPipeliner) ARLen ¶ added in v9.22.0
ARLen returns the length of an array (max index + 1). Returns 0 if the key does not exist.
func (AutoPipeliner) ARMGet ¶ added in v9.22.0
ARMGet gets values at multiple indexes in an array. Returns values at the specified indexes, with nil for unset indexes.
func (AutoPipeliner) ARMSet ¶ added in v9.22.0
ARMSet sets multiple index-value pairs in an array. Returns the number of new slots that were set (previously empty).
func (AutoPipeliner) ARNext ¶ added in v9.22.0
ARNext returns the next index ARINSERT would use. Returns 0 for missing keys or when no insert happened yet. Returns nil when the insertion cursor is exhausted / would overflow.
func (AutoPipeliner) AROpAnd ¶ added in v9.22.0
AROpAnd returns the bitwise AND of integer elements in a range.
func (AutoPipeliner) AROpMatch ¶ added in v9.22.0
func (c AutoPipeliner) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
AROpMatch returns the count of elements matching a target string in a range.
func (AutoPipeliner) AROpMax ¶ added in v9.22.0
AROpMax returns the maximum numeric element in a range.
func (AutoPipeliner) AROpMin ¶ added in v9.22.0
AROpMin returns the minimum numeric element in a range.
func (AutoPipeliner) AROpOr ¶ added in v9.22.0
AROpOr returns the bitwise OR of integer elements in a range.
func (AutoPipeliner) AROpSum ¶ added in v9.22.0
AROpSum returns the sum of numeric elements in a range.
func (AutoPipeliner) AROpUsed ¶ added in v9.22.0
AROpUsed returns the count of non-empty slots in a range.
func (AutoPipeliner) AROpXor ¶ added in v9.22.0
AROpXor returns the bitwise XOR of integer elements in a range.
func (AutoPipeliner) ARRing ¶ added in v9.22.0
func (c AutoPipeliner) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
ARRing inserts values into a ring buffer of specified size, wrapping and truncating as needed. Returns the last index where a value was inserted.
func (AutoPipeliner) ARScan ¶ added in v9.22.0
func (c AutoPipeliner) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
ARScan iterates existing elements in a range, returning index-value pairs.
func (AutoPipeliner) ARSeek ¶ added in v9.22.0
ARSeek sets the ARINSERT / ARRING cursor to a specific index. Returns 1 if the cursor was set, 0 if the key does not exist.
func (AutoPipeliner) ARSet ¶ added in v9.22.0
func (c AutoPipeliner) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
ARSet sets one or more contiguous values starting at an index in an array. Returns the number of new slots that were set (previously empty).
func (*AutoPipeliner) AddHook ¶ added in v9.22.0
func (ap *AutoPipeliner) AddHook(hook Hook)
AddHook adds a hook to the underlying client. Autopipelined batches are hooked too, since dispatch goes through the hook-wrapped pipeline entry.
Hook contract:
- Short-circuiting differs by dispatch mode. In half-duplex (batched) mode a hook MAY return without calling next to skip the server — a supported pattern for a mock or cache. In full-duplex mode the command is already queued on the held connection before the hook runs, so returning without calling next does NOT prevent the server write; a hook cannot cancel a full-duplex command.
- Do not call Close, or any other client control method, from inside a hook. A hook runs on the engine's dispatch goroutine; in full-duplex mode a synchronous Close from there blocks until the close backstop, because Close waits on the very hook host it is running on. Trigger Close from a separate goroutine (see the FullDuplex GoDoc).
- Do not panic. A panic in a batch hook is recovered so it cannot crash the process, but the affected batch fails.
- Do not mutate client or connection state.
func (*AutoPipeliner) AsyncAutoPipeline ¶ added in v9.22.0
func (ap *AutoPipeliner) AsyncAutoPipeline() (*AutoPipeliner, error)
AsyncAutoPipeline delegates to the underlying client. Present to satisfy the UniversalClient surface.
func (*AutoPipeliner) AsyncAutoPipelineWithOptions ¶ added in v9.22.0
func (ap *AutoPipeliner) AsyncAutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
AsyncAutoPipelineWithOptions delegates to the underlying client.
func (*AutoPipeliner) AutoPipeline ¶ added in v9.22.0
func (ap *AutoPipeliner) AutoPipeline() (*AutoPipeliner, error)
AutoPipeline delegates to the underlying client, which returns its cached autopipeliner (typically this same instance). Present to satisfy the UniversalClient surface.
func (*AutoPipeliner) AutoPipelineWithOptions ¶ added in v9.22.0
func (ap *AutoPipeliner) AutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
AutoPipelineWithOptions delegates to the underlying client.
func (AutoPipeliner) BFAdd ¶ added in v9.22.0
BFAdd adds an item to a Bloom filter. For more information - https://redis.io/commands/bf.add/
func (AutoPipeliner) BFCard ¶ added in v9.22.0
BFCard returns the cardinality of a Bloom filter - number of items that were added to a Bloom filter and detected as unique (items that caused at least one bit to be set in at least one sub-filter). For more information - https://redis.io/commands/bf.card/
func (AutoPipeliner) BFExists ¶ added in v9.22.0
BFExists determines whether a given item was added to a Bloom filter. For more information - https://redis.io/commands/bf.exists/
func (AutoPipeliner) BFInfo ¶ added in v9.22.0
Returns information about a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (AutoPipeliner) BFInfoArg ¶ added in v9.22.0
BFInfoArg returns information about a specific option of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (AutoPipeliner) BFInfoCapacity ¶ added in v9.22.0
BFInfoCapacity returns information about the capacity of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (AutoPipeliner) BFInfoExpansion ¶ added in v9.22.0
BFInfoExpansion returns information about the expansion rate of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (AutoPipeliner) BFInfoFilters ¶ added in v9.22.0
BFInfoFilters returns information about the filters of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (AutoPipeliner) BFInfoItems ¶ added in v9.22.0
BFInfoItems returns information about the items of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (AutoPipeliner) BFInfoSize ¶ added in v9.22.0
BFInfoSize returns information about the size of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (AutoPipeliner) BFInsert ¶ added in v9.22.0
func (c AutoPipeliner) BFInsert(ctx context.Context, key string, options *BFInsertOptions, elements ...interface{}) *BoolSliceCmd
BFInsert inserts elements into a Bloom filter. This function also allows for specifying additional options such as: capacity, error rate, expansion rate, and non-scaling behavior. For more information - https://redis.io/commands/bf.insert/
func (AutoPipeliner) BFLoadChunk ¶ added in v9.22.0
func (c AutoPipeliner) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
BFLoadChunk restores a Bloom filter previously saved using BF.SCANDUMP. For more information - https://redis.io/commands/bf.loadchunk/
func (AutoPipeliner) BFMAdd ¶ added in v9.22.0
func (c AutoPipeliner) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
BFMAdd adds multiple elements to a Bloom filter. Returns an array of booleans indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/bf.madd/
func (AutoPipeliner) BFMExists ¶ added in v9.22.0
func (c AutoPipeliner) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
BFMExists check if multiple elements exist in a Bloom filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/bf.mexists/
func (AutoPipeliner) BFReserve ¶ added in v9.22.0
func (c AutoPipeliner) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
BFReserve creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. For more information - https://redis.io/commands/bf.reserve/
func (AutoPipeliner) BFReserveExpansion ¶ added in v9.22.0
func (c AutoPipeliner) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
BFReserveExpansion creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying an expansion rate for the filter. For more information - https://redis.io/commands/bf.reserve/
func (AutoPipeliner) BFReserveNonScaling ¶ added in v9.22.0
func (c AutoPipeliner) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
BFReserveNonScaling creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying that the filter should not scale. For more information - https://redis.io/commands/bf.reserve/
func (AutoPipeliner) BFReserveWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
BFReserveWithArgs creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying additional options such as expansion rate and non-scaling behavior. For more information - https://redis.io/commands/bf.reserve/
func (AutoPipeliner) BFScanDump ¶ added in v9.22.0
func (c AutoPipeliner) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
Begins an incremental save of the Bloom filter. This command is useful for large Bloom filters that cannot fit into the DUMP and RESTORE model. For more information - https://redis.io/commands/bf.scandump/
func (AutoPipeliner) BLMoveM ¶ added in v9.22.0
func (c AutoPipeliner) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, timeout time.Duration, a LMoveMArgs) *StringSliceCmd
BLMoveM is the blocking variant of LMoveM (Redis 8.10+); timeout 0 blocks forever. Returns moved elements, or redis.Nil on timeout.
func (AutoPipeliner) BRPopLPush
deprecated
added in
v9.22.0
func (c AutoPipeliner) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmd
BRPopLPush pops an element from a list, pushes it to another list and returns it. Blocks until an element is available or timeout is reached.
Deprecated: Use BLMove with RIGHT and LEFT arguments instead as of Redis 6.2.0.
func (AutoPipeliner) BZMPop ¶ added in v9.22.0
func (c AutoPipeliner) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, keys ...string) *ZSliceWithKeyCmd
BZMPop is the blocking variant of ZMPOP. When any of the sorted sets contains elements, this command behaves exactly like ZMPOP. When all sorted sets are empty, Redis will block the connection until another client adds members to one of the keys or until the timeout elapses. A timeout of zero can be used to block indefinitely. example: client.BZMPop(ctx, 0,"max", 1, "set")
func (AutoPipeliner) BZPopMax ¶ added in v9.22.0
func (c AutoPipeliner) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
BZPopMax Redis `BZPOPMAX key [key ...] timeout` command.
func (AutoPipeliner) BZPopMin ¶ added in v9.22.0
func (c AutoPipeliner) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
BZPopMin Redis `BZPOPMIN key [key ...] timeout` command.
func (AutoPipeliner) BgRewriteAOF ¶ added in v9.22.0
func (AutoPipeliner) BitField ¶ added in v9.22.0
func (c AutoPipeliner) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
BitField accepts multiple values:
- BitField("set", "i1", "offset1", "value1","cmd2", "type2", "offset2", "value2")
- BitField([]string{"cmd1", "type1", "offset1", "value1","cmd2", "type2", "offset2", "value2"})
- BitField([]interface{}{"cmd1", "type1", "offset1", "value1","cmd2", "type2", "offset2", "value2"})
func (AutoPipeliner) BitFieldRO ¶ added in v9.22.0
func (c AutoPipeliner) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
BitFieldRO - Read-only variant of the BITFIELD command. It is like the original BITFIELD but only accepts GET subcommand and can safely be used in read-only replicas. - BitFieldRO(ctx, key, "<Encoding0>", "<Offset0>", "<Encoding1>","<Offset1>")
func (AutoPipeliner) BitOpAnd ¶ added in v9.22.0
BitOpAnd creates a new bitmap in which users are members of all given bitmaps
func (AutoPipeliner) BitOpAndOr ¶ added in v9.22.0
BitOpAndOr creates a new bitmap in which users are members of bitmap X and also members of one or more of bitmaps Y1, Y2, … Introduced with Redis 8.2
func (AutoPipeliner) BitOpDiff ¶ added in v9.22.0
BitOpDiff creates a new bitmap in which users are members of bitmap X but not of any of bitmaps Y1, Y2, … Introduced with Redis 8.2
func (AutoPipeliner) BitOpDiff1 ¶ added in v9.22.0
BitOpDiff1 creates a new bitmap in which users are members of one or more of bitmaps Y1, Y2, … but not members of bitmap X Introduced with Redis 8.2
func (AutoPipeliner) BitOpNot ¶ added in v9.22.0
BitOpNot creates a new bitmap in which users are not members of a given bitmap
func (AutoPipeliner) BitOpOne ¶ added in v9.22.0
BitOpOne creates a new bitmap in which users are members of exactly one of the given bitmaps Introduced with Redis 8.2
func (AutoPipeliner) BitOpOr ¶ added in v9.22.0
BitOpOr creates a new bitmap in which users are member of at least one given bitmap
func (AutoPipeliner) BitOpXor ¶ added in v9.22.0
BitOpXor creates a new bitmap in which users are the result of XORing all given bitmaps
func (AutoPipeliner) BitPos ¶ added in v9.22.0
BitPos is an API before Redis version 7.0, cmd: bitpos key bit start end if you need the `byte | bit` parameter, please use `BitPosSpan`.
func (AutoPipeliner) BitPosSpan ¶ added in v9.22.0
func (c AutoPipeliner) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
BitPosSpan supports the `byte | bit` parameters in redis version 7.0, the bitpos command defaults to using byte type for the `start-end` range, which means it counts in bytes from start to end. you can set the value of "span" to determine the type of `start-end`. span = "bit", cmd: bitpos key bit start end bit span = "byte", cmd: bitpos key bit start end byte
func (AutoPipeliner) CFAdd ¶ added in v9.22.0
CFAdd adds an element to a Cuckoo filter. Returns true if the element was added to the filter or false if it already exists in the filter. For more information - https://redis.io/commands/cf.add/
func (AutoPipeliner) CFAddNX ¶ added in v9.22.0
CFAddNX adds an element to a Cuckoo filter only if it does not already exist in the filter. Returns true if the element was added to the filter or false if it already exists in the filter. For more information - https://redis.io/commands/cf.addnx/
func (AutoPipeliner) CFCount ¶ added in v9.22.0
CFCount returns an estimate of the number of times an element may be in a Cuckoo Filter. For more information - https://redis.io/commands/cf.count/
func (AutoPipeliner) CFDel ¶ added in v9.22.0
CFDel deletes an item once from the cuckoo filter. For more information - https://redis.io/commands/cf.del/
func (AutoPipeliner) CFExists ¶ added in v9.22.0
CFExists determines whether an item may exist in the Cuckoo Filter or not. For more information - https://redis.io/commands/cf.exists/
func (AutoPipeliner) CFInfo ¶ added in v9.22.0
CFInfo returns information about a Cuckoo filter. For more information - https://redis.io/commands/cf.info/
func (AutoPipeliner) CFInsert ¶ added in v9.22.0
func (c AutoPipeliner) CFInsert(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *BoolSliceCmd
CFInsert inserts elements into a Cuckoo filter. This function also allows for specifying additional options such as capacity, error rate, expansion rate, and non-scaling behavior. Returns an array of booleans indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/cf.insert/
func (AutoPipeliner) CFInsertNX ¶ added in v9.22.0
func (c AutoPipeliner) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *IntSliceCmd
CFInsertNX inserts elements into a Cuckoo filter only if they do not already exist in the filter. This function also allows for specifying additional options such as: capacity, error rate, expansion rate, and non-scaling behavior. Returns an array of integers indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/cf.insertnx/
func (AutoPipeliner) CFLoadChunk ¶ added in v9.22.0
func (c AutoPipeliner) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
CFLoadChunk restores a filter previously saved using SCANDUMP. For more information - https://redis.io/commands/cf.loadchunk/
func (AutoPipeliner) CFMExists ¶ added in v9.22.0
func (c AutoPipeliner) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
CFMExists check if multiple elements exist in a Cuckoo filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/cf.mexists/
func (AutoPipeliner) CFReserve ¶ added in v9.22.0
CFReserve creates an empty Cuckoo filter with the specified capacity. For more information - https://redis.io/commands/cf.reserve/
func (AutoPipeliner) CFReserveBucketSize ¶ added in v9.22.0
func (c AutoPipeliner) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
CFReserveBucketSize creates an empty Cuckoo filter with the specified capacity and bucket size. For more information - https://redis.io/commands/cf.reserve/
func (AutoPipeliner) CFReserveExpansion ¶ added in v9.22.0
func (c AutoPipeliner) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
CFReserveExpansion creates an empty Cuckoo filter with the specified capacity and expansion rate. For more information - https://redis.io/commands/cf.reserve/
func (AutoPipeliner) CFReserveMaxIterations ¶ added in v9.22.0
func (c AutoPipeliner) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
CFReserveMaxIterations creates an empty Cuckoo filter with the specified capacity and maximum number of iterations. For more information - https://redis.io/commands/cf.reserve/
func (AutoPipeliner) CFReserveWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
CFReserveWithArgs creates an empty Cuckoo filter with the specified options. This function allows for specifying additional options such as bucket size and maximum number of iterations. For more information - https://redis.io/commands/cf.reserve/
func (AutoPipeliner) CFScanDump ¶ added in v9.22.0
func (c AutoPipeliner) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
CFScanDump begins an incremental save of the cuckoo filter. For more information - https://redis.io/commands/cf.scandump/
func (AutoPipeliner) CMSIncrBy ¶ added in v9.22.0
func (c AutoPipeliner) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
CMSIncrBy increments the count of one or more items in a Count-Min Sketch filter. Returns an array of integers representing the updated count of each item. For more information - https://redis.io/commands/cms.incrby/
func (AutoPipeliner) CMSInfo ¶ added in v9.22.0
func (c AutoPipeliner) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
CMSInfo returns information about a Count-Min Sketch filter. For more information - https://redis.io/commands/cms.info/
func (AutoPipeliner) CMSInitByDim ¶ added in v9.22.0
CMSInitByDim creates an empty Count-Min Sketch filter with the specified dimensions. For more information - https://redis.io/commands/cms.initbydim/
func (AutoPipeliner) CMSInitByProb ¶ added in v9.22.0
func (c AutoPipeliner) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
CMSInitByProb creates an empty Count-Min Sketch filter with the specified error rate and probability. For more information - https://redis.io/commands/cms.initbyprob/
func (AutoPipeliner) CMSMerge ¶ added in v9.22.0
func (c AutoPipeliner) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
CMSMerge merges multiple Count-Min Sketch filters into a single filter. The destination filter must not exist and will be created with the dimensions of the first source filter. The number of items in each source filter must be equal. Returns OK on success or an error if the filters could not be merged. For more information - https://redis.io/commands/cms.merge/
func (AutoPipeliner) CMSMergeWithWeight ¶ added in v9.22.0
func (c AutoPipeliner) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
CMSMergeWithWeight merges multiple Count-Min Sketch filters into a single filter with weights for each source filter. The destination filter must not exist and will be created with the dimensions of the first source filter. The number of items in each source filter must be equal. Returns OK on success or an error if the filters could not be merged. For more information - https://redis.io/commands/cms.merge/
func (AutoPipeliner) CMSQuery ¶ added in v9.22.0
func (c AutoPipeliner) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
CMSQuery returns count for item(s). For more information - https://redis.io/commands/cms.query/
func (AutoPipeliner) ClientGetName ¶ added in v9.22.0
ClientGetName returns the name of the connection.
func (AutoPipeliner) ClientInfo ¶ added in v9.22.0
func (c AutoPipeliner) ClientInfo(ctx context.Context) *ClientInfoCmd
func (AutoPipeliner) ClientKill ¶ added in v9.22.0
func (AutoPipeliner) ClientKillByFilter ¶ added in v9.22.0
ClientKillByFilter is new style syntax, while the ClientKill is old
CLIENT KILL <option> [value] ... <option> [value]
func (AutoPipeliner) ClientList ¶ added in v9.22.0
func (AutoPipeliner) ClientMaintNotifications ¶ added in v9.22.0
func (c AutoPipeliner) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
ClientMaintNotifications enables or disables maintenance notifications for maintenance upgrades. When enabled, the client will receive push notifications about Redis maintenance events.
func (AutoPipeliner) ClientPause ¶ added in v9.22.0
func (AutoPipeliner) ClientTracking ¶ added in v9.22.0
func (c AutoPipeliner) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
ClientTracking enables or disables server-assisted client-side caching for the ONE connection that happens to serve this command. On a pooled client that connection is arbitrary, so this is only meaningful on a dedicated connection (see Client.Conn). When on is false, opt is ignored. Invalid option combinations are reported via the returned command's Err and nothing is sent to the server.
Must not be combined with the built-in client-side cache: on a client configured with Options.ClientSideCache or ClientSideCacheConfig this command is rejected, because changing a pool connection's tracking state would silently break the cache's invalidation.
func (AutoPipeliner) ClientTrackingOff ¶ added in v9.22.0
ClientTrackingOff disables tracking on the serving connection. See ClientTracking for the pooled-client and built-in-CSC caveats.
func (AutoPipeliner) ClientTrackingOn ¶ added in v9.22.0
func (c AutoPipeliner) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
ClientTrackingOn enables tracking on the serving connection. See ClientTracking for the pooled-client and built-in-CSC caveats.
func (AutoPipeliner) ClientUnblock ¶ added in v9.22.0
func (AutoPipeliner) ClientUnblockWithError ¶ added in v9.22.0
func (AutoPipeliner) ClientUnpause ¶ added in v9.22.0
func (*AutoPipeliner) Close ¶ added in v9.22.0
func (ap *AutoPipeliner) Close() error
Close stops the autopipeliner and flushes any pending commands. Worst case it blocks up to the internal permit backstop (~30s) PER SHARD if in-flight batches are wedged (e.g. read timeouts disabled against a dead peer) — healthy shutdowns take one round trip per shard with commands queued, near-zero otherwise.
func (AutoPipeliner) ClusterAddSlots ¶ added in v9.22.0
func (AutoPipeliner) ClusterAddSlotsRange ¶ added in v9.22.0
func (AutoPipeliner) ClusterCountFailureReports ¶ added in v9.22.0
func (AutoPipeliner) ClusterCountKeysInSlot ¶ added in v9.22.0
func (AutoPipeliner) ClusterDelSlots ¶ added in v9.22.0
func (AutoPipeliner) ClusterDelSlotsRange ¶ added in v9.22.0
func (AutoPipeliner) ClusterFailover ¶ added in v9.22.0
func (AutoPipeliner) ClusterForget ¶ added in v9.22.0
func (AutoPipeliner) ClusterGetKeysInSlot ¶ added in v9.22.0
func (c AutoPipeliner) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
func (AutoPipeliner) ClusterInfo ¶ added in v9.22.0
func (AutoPipeliner) ClusterKeySlot ¶ added in v9.22.0
func (AutoPipeliner) ClusterLinks ¶ added in v9.22.0
func (c AutoPipeliner) ClusterLinks(ctx context.Context) *ClusterLinksCmd
func (AutoPipeliner) ClusterMeet ¶ added in v9.22.0
func (AutoPipeliner) ClusterMyID ¶ added in v9.22.0
func (AutoPipeliner) ClusterMyShardID ¶ added in v9.22.0
func (AutoPipeliner) ClusterNodes ¶ added in v9.22.0
func (AutoPipeliner) ClusterReplicate ¶ added in v9.22.0
func (AutoPipeliner) ClusterResetHard ¶ added in v9.22.0
func (AutoPipeliner) ClusterResetSoft ¶ added in v9.22.0
func (AutoPipeliner) ClusterSaveConfig ¶ added in v9.22.0
func (AutoPipeliner) ClusterShards ¶ added in v9.22.0
func (c AutoPipeliner) ClusterShards(ctx context.Context) *ClusterShardsCmd
func (AutoPipeliner) ClusterSlaves
deprecated
added in
v9.22.0
func (c AutoPipeliner) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
ClusterSlaves lists the replica nodes of a master node.
Deprecated: Use ClusterReplicas instead as of Redis 5.0.0.
func (AutoPipeliner) ClusterSlots
deprecated
added in
v9.22.0
func (c AutoPipeliner) ClusterSlots(ctx context.Context) *ClusterSlotsCmd
ClusterSlots returns the mapping of cluster slots to nodes.
Deprecated: Use ClusterShards instead as of Redis 7.0.0.
func (AutoPipeliner) Command ¶ added in v9.22.0
func (c AutoPipeliner) Command(ctx context.Context) *CommandsInfoCmd
func (AutoPipeliner) CommandGetKeys ¶ added in v9.22.0
func (c AutoPipeliner) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
func (AutoPipeliner) CommandGetKeysAndFlags ¶ added in v9.22.0
func (c AutoPipeliner) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
func (AutoPipeliner) CommandList ¶ added in v9.22.0
func (c AutoPipeliner) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
func (*AutoPipeliner) Config ¶ added in v9.22.0
func (ap *AutoPipeliner) Config() AutoPipelineOptions
Config returns a copy of the effective configuration (defaults filled in).
func (AutoPipeliner) ConfigGet ¶ added in v9.22.0
func (c AutoPipeliner) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
func (AutoPipeliner) ConfigResetStat ¶ added in v9.22.0
func (AutoPipeliner) ConfigRewrite ¶ added in v9.22.0
func (*AutoPipeliner) DBSize ¶ added in v9.22.0
func (ap *AutoPipeliner) DBSize(ctx context.Context) *IntCmd
DBSize delegates to the underlying client (cluster-wide sum on ClusterClient).
func (AutoPipeliner) DebugObject ¶ added in v9.22.0
func (AutoPipeliner) DelExArgs ¶ added in v9.22.0
DelExArgs Redis `DELEX key [IFEQ|IFNE|IFDEQ|IFDNE] match-value` command. Compare-and-delete with flexible conditions.
Returns the number of keys that were removed (0 or 1).
NOTE DelExArgs is still experimental it's signature and behaviour may change
func (AutoPipeliner) Digest ¶ added in v9.22.0
Digest returns the xxh3 hash (uint64) of the specified key's value.
The digest is a 64-bit xxh3 hash that can be used for optimistic locking with SetIFDEQ, SetIFDNE, and DelExArgs commands.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/digest/
NOTE Digest is still experimental it's signature and behaviour may change
func (*AutoPipeliner) Do ¶ added in v9.22.0
func (ap *AutoPipeliner) Do(ctx context.Context, args ...interface{}) *Cmd
Do executes a raw command on a NORMAL connection, outside the pipeline. Arbitrary command names can carry connection state (SELECT, MULTI, SUBSCRIBE, CLIENT ...) or block the connection (BLPOP ...); batching those onto a shared pipeline connection would silently poison it for every later batch, or stall unrelated commands. (Submit enforces the same rule for raw Cmders: names in the connection-hostile set are diverted off the pipeline automatically.) The typed surface (ap.Set, ap.Get, ...) is safe by construction and IS batched — prefer it. Do carries the same caveats as Client.Do: a stateful command still affects the (normal, non-pipeline) pooled connection it runs on. Do keeps each face's call shape: on a blocking autopipeliner the call blocks until the command has executed; on a deferred (async) one it returns immediately and the command's result accessors (Err/Val/Result) block until it completes.
func (*AutoPipeliner) DoRaw ¶ added in v9.22.0
func (ap *AutoPipeliner) DoRaw(ctx context.Context, args ...interface{}) *RawCmd
DoRaw mirrors Do for raw RESP access: AutoPipeliner embeds cmdable, so without this override DoRaw would ride the batching engine — but raw commands carry Do's caveats and DoRawWriteTo-style streaming must not run inside a shared batch's reply loop. Runs outside the pipeline, following the face's call shape (see Do).
func (*AutoPipeliner) DoRawWriteTo ¶ added in v9.22.0
func (ap *AutoPipeliner) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
DoRawWriteTo mirrors Do for streamed raw RESP access (see DoRaw). On the deferred face the write to w happens when the command executes; use the result accessors (Err/Written) to wait before reading w.
func (AutoPipeliner) ExpireTime ¶ added in v9.22.0
func (c AutoPipeliner) ExpireTime(ctx context.Context, key string) *DurationCmd
ExpireTime returns the absolute expiration time of key as a Unix timestamp encoded in *DurationCmd (seconds since the epoch), not a remaining TTL. Convert with: time.Unix(int64(d/time.Second), 0). Use TTL/PTTL for remaining TTL.
func (AutoPipeliner) FCallRo ¶ added in v9.22.0
func (c AutoPipeliner) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
FCallRo this function simply calls FCallRO, Deprecated: to maintain convention FCallRO.
func (*AutoPipeliner) FDPipelined ¶ added in v9.23.0
func (ap *AutoPipeliner) FDPipelined(ctx context.Context, cmds []Cmder) error
FDPipelined submits cmds as one contiguous batch on the full-duplex connection and blocks until every reply has landed. It returns the first command error, Nil included, the same as Pipeline.Exec.
Two differences from an ordinary pipeline. Retryable replies (LOADING and the like) are not retried here; Pipeline() retries the whole batch on top of this, see fdPipelineExec. And once the batch is admitted, ctx no longer bounds the wait: the commands share the held connection with other callers, so they cannot be abandoned mid-stream. ReadTimeout still bounds each reply.
Compared with the two shapes that already exist:
- Pipeline().Exec() batches up front and blocks, but on a pooled connection: a separate socket, its own round trip, no FD engine.
- Submit()/the async face keeps N commands in flight on the FD wire with individual completion, but the caller issues them one at a time and they may interleave with other callers' commands.
This is the third: batched up front, contiguous, blocking, on the FD wire.
The commands are still completed individually by the reader, so after this returns each cmd carries its own result and error.
Hooks and metrics match an ordinary pipeline: the client's ProcessPipelineHook chain runs around the batch (per-command ProcessHooks do not, as in an ordinary pipeline), and an OTel recorder gets one pipeline duration and, on failure, one pipeline-level error rather than per-command metrics. A Limiter is the exception: the FD writer asks it once per write chunk, and a chunk can mix this batch with other callers' commands, so a batch longer than MaxBatchSize (or MaxBatchBytes) can be partly admitted.
EXPERIMENTAL: this API is subject to change, use with caution.
func (AutoPipeliner) FTAggregate ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTAggregateWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTAliasAdd ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTAliasDel ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTAliasList ¶ added in v9.22.0
func (c AutoPipeliner) FTAliasList(ctx context.Context, index string) *StringSliceCmd
FTAliasList - Lists all aliases associated with an index. The 'index' parameter specifies the index whose aliases are listed; it must be the name of an index created with FT.CREATE, not an alias. The reply is an unordered collection of alias names, already deduplicated by the server; an index with no aliases yields an empty result, not an error. Available since Redis 8.10. For more information, please refer to the Redis documentation: [FT.ALIASLIST]: (https://redis.io/commands/ft.aliaslist/)
func (AutoPipeliner) FTAliasUpdate ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTAlter ¶ added in v9.22.0
func (c AutoPipeliner) FTAlter(ctx context.Context, index string, skipInitialScan 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/)
func (AutoPipeliner) FTConfigGet
deprecated
added in
v9.22.0
func (c AutoPipeliner) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
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 FT.CONFIG GET documentation.
Deprecated: FTConfigGet is deprecated in Redis 8. All configuration will be done with the CONFIG GET command. For more information check Client.ConfigGet and CONFIG GET Documentation
func (AutoPipeliner) FTConfigSet
deprecated
added in
v9.22.0
func (c AutoPipeliner) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmd
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 FT.CONFIG SET documentation.
Deprecated: FTConfigSet is deprecated in Redis 8. All configuration will be done with the CONFIG SET command. For more information check Client.ConfigSet and CONFIG SET Documentation
func (AutoPipeliner) FTCreate ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTCursorDel ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTCursorRead ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTDictAdd ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTDictDel ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTDictDump ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTDropIndex ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTDropIndexWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTExplain ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTExplainCli ¶ added in v9.22.0
FTExplainCli - Returns the execution plan for a complex query. [Not Implemented] For more information, see https://redis.io/commands/ft.explaincli/
func (AutoPipeliner) FTExplainWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTHybrid ¶ added in v9.22.0
func (c AutoPipeliner) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, vectorData Vector) *FTHybridCmd
FTHybrid - Executes a hybrid search combining full-text search and vector similarity The 'index' parameter specifies the index to search, 'searchExpr' is the search query, 'vectorField' is the name of the vector field, and 'vectorData' is the vector to search with. FTHybrid is still experimental, the command behaviour and signature may change
func (AutoPipeliner) FTHybridWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
FTHybridWithArgs - Executes a hybrid search with advanced options FTHybridWithArgs is still experimental, the command behaviour and signature may change
Vector data is always sent through the PARAMS mechanism, because inline vector blobs are no longer supported by Redis. For every vector expression whose VectorParamName is empty, a unique name is generated (e.g. "__vector_param_0") and the corresponding blob is passed via PARAMS.
options.Params is never mutated: the command is built from a local copy that combines the caller-provided params with any generated vector parameters. This makes it safe to reuse the same *FTHybridOptions across multiple calls. Generated names are also reserved against all explicit VectorParamName values, so they never collide with explicit names (even those following the "__vector_param_N" pattern).
func (AutoPipeliner) FTInfo ¶ added in v9.22.0
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/)
func (AutoPipeliner) FTSearch ¶ added in v9.22.0
func (c AutoPipeliner) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
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 about [FT.SEARCH].
[FT.SEARCH]: (https://redis.io/commands/ft.search/)
func (AutoPipeliner) FTSearchWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 about [FT.SEARCH].
[FT.SEARCH]: (https://redis.io/commands/ft.search/)
func (AutoPipeliner) FTSpellCheck ¶ added in v9.22.0
func (c AutoPipeliner) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
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/)
func (AutoPipeliner) FTSpellCheckWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTSynDump ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTSynUpdate ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTSynUpdateWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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/)
func (AutoPipeliner) FTTagVals ¶ added in v9.22.0
func (c AutoPipeliner) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
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/)
func (AutoPipeliner) FT_List ¶ added in v9.22.0
func (c AutoPipeliner) FT_List(ctx context.Context) *StringSliceCmd
FT_List - Lists all the existing indexes in the database. For more information, please refer to the Redis documentation: [FT._LIST]: (https://redis.io/commands/ft._list/)
func (AutoPipeliner) FlushAllAsync ¶ added in v9.22.0
func (AutoPipeliner) FlushDBAsync ¶ added in v9.22.0
func (AutoPipeliner) FunctionDelete ¶ added in v9.22.0
func (AutoPipeliner) FunctionDump ¶ added in v9.22.0
func (AutoPipeliner) FunctionFlush ¶ added in v9.22.0
func (AutoPipeliner) FunctionFlushAsync ¶ added in v9.22.0
func (AutoPipeliner) FunctionKill ¶ added in v9.22.0
func (AutoPipeliner) FunctionList ¶ added in v9.22.0
func (c AutoPipeliner) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
func (AutoPipeliner) FunctionLoad ¶ added in v9.22.0
func (AutoPipeliner) FunctionLoadReplace ¶ added in v9.22.0
func (AutoPipeliner) FunctionRestore ¶ added in v9.22.0
func (AutoPipeliner) FunctionStats ¶ added in v9.22.0
func (c AutoPipeliner) FunctionStats(ctx context.Context) *FunctionStatsCmd
func (AutoPipeliner) GeoAdd ¶ added in v9.22.0
func (c AutoPipeliner) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
func (AutoPipeliner) GeoHash ¶ added in v9.22.0
func (c AutoPipeliner) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
func (AutoPipeliner) GeoRadius
deprecated
added in
v9.22.0
func (c AutoPipeliner) GeoRadius( ctx context.Context, key string, longitude, latitude float64, query *GeoRadiusQuery, ) *GeoLocationCmd
GeoRadius queries a geospatial index for members within a distance from a coordinate. This is a read-only variant that does not support Store or StoreDist options.
Deprecated: Use GeoSearch with BYRADIUS argument instead as of Redis 6.2.0.
func (AutoPipeliner) GeoRadiusByMember
deprecated
added in
v9.22.0
func (c AutoPipeliner) GeoRadiusByMember( ctx context.Context, key, member string, query *GeoRadiusQuery, ) *GeoLocationCmd
GeoRadiusByMember queries a geospatial index for members within a distance from a member. This is a read-only variant that does not support Store or StoreDist options.
Deprecated: Use GeoSearch with BYRADIUS and FROMMEMBER arguments instead as of Redis 6.2.0.
func (AutoPipeliner) GeoRadiusByMemberStore ¶ added in v9.22.0
func (c AutoPipeliner) GeoRadiusByMemberStore( ctx context.Context, key, member string, query *GeoRadiusQuery, ) *IntCmd
GeoRadiusByMemberStore is a writing GEORADIUSBYMEMBER command.
func (AutoPipeliner) GeoRadiusStore ¶ added in v9.22.0
func (c AutoPipeliner) GeoRadiusStore( ctx context.Context, key string, longitude, latitude float64, query *GeoRadiusQuery, ) *IntCmd
GeoRadiusStore is a writing GEORADIUS command.
func (AutoPipeliner) GeoSearch ¶ added in v9.22.0
func (c AutoPipeliner) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
func (AutoPipeliner) GeoSearchLocation ¶ added in v9.22.0
func (c AutoPipeliner) GeoSearchLocation( ctx context.Context, key string, q *GeoSearchLocationQuery, ) *GeoSearchLocationCmd
func (AutoPipeliner) GeoSearchStore ¶ added in v9.22.0
func (c AutoPipeliner) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
func (AutoPipeliner) Get ¶ added in v9.22.0
Get Redis `GET key` command. It returns redis.Nil error when key does not exist.
func (AutoPipeliner) GetEx ¶ added in v9.22.0
GetEx An expiration of zero removes the TTL associated with the key (i.e. GETEX key persist). Requires Redis >= 6.2.0.
func (AutoPipeliner) GetToBuffer ¶ added in v9.22.0
func (c AutoPipeliner) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
GetToBuffer executes GET and reads the reply directly into buf, avoiding the intermediate string allocation that *StringCmd would produce. For values larger than the connection's read buffer, the payload is read straight from the socket into buf — effectively zero-copy on the receive path.
The returned *ZeroCopyStringCmd reports the number of bytes read via Val(), the populated slice via Bytes() (which is buf[:Val()]), and any error (including redis.Nil when the key does not exist) via Err(). If buf is too small to hold the value, Err() returns a "buffer too small" error.
Nothing is ever written past len(buf). When len(buf) >= value length + 2, the read takes a fast path that pulls the payload and the protocol's trailing CRLF in a single socket read, using the two bytes after the payload as scratch — size buffers with 2 spare bytes to opt in (see example/zerocopy-buffer).
This command opts out of automatic retries because partial data from a failed attempt would already be sitting in the caller's buffer.
func (AutoPipeliner) HExpire ¶ added in v9.22.0
func (c AutoPipeliner) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
HExpire - Sets the expiration time for specified fields in a hash in seconds. The command constructs an argument list starting with "HEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HEXPIRE Documentation.
func (AutoPipeliner) HExpireAt ¶ added in v9.22.0
func (c AutoPipeliner) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
HExpireAt - Sets the expiration time for specified fields in a hash to a UNIX timestamp in seconds. Takes a key, a UNIX timestamp, a struct of conditional flags, and a list of fields. The command sets absolute expiration times based on the UNIX timestamp provided. Available since Redis 7.4 CE. For more information refer to HExpireAt Documentation.
func (AutoPipeliner) HExpireAtWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (AutoPipeliner) HExpireTime ¶ added in v9.22.0
func (c AutoPipeliner) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
HExpireTime - Retrieves the expiration time for specified fields in a hash as a UNIX timestamp in seconds. Requires a key and the fields themselves to fetch their expiration timestamps. This command returns the expiration times for each field or error/status codes for each field as specified. Available since Redis 7.4 CE. For more information refer to [HExpireTime Documentation].
[HExpireTime Documentation]: https://redis.io/commands/hexpiretime/ For more information - https://redis.io/commands/hexpiretime/
func (AutoPipeliner) HExpireWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
HExpireWithArgs - Sets the expiration time for specified fields in a hash in seconds. It requires a key, an expiration duration, a struct with boolean flags for conditional expiration settings (NX, XX, GT, LT), and a list of fields. The command constructs an argument list starting with "HEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HEXPIRE Documentation.
func (AutoPipeliner) HGetAll ¶ added in v9.22.0
func (c AutoPipeliner) HGetAll(ctx context.Context, key string) *MapStringStringCmd
HGetAll returns a map of all fields and values stored at key.
Returns an empty map when key does not exist.
Time complexity: O(N) where N is the size of the hash.
func (AutoPipeliner) HGetDel ¶ added in v9.22.0
func (c AutoPipeliner) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
func (AutoPipeliner) HGetEX ¶ added in v9.22.0
func (c AutoPipeliner) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
func (AutoPipeliner) HGetEXWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
func (*AutoPipeliner) HImportDiscard ¶ added in v9.22.0
func (ap *AutoPipeliner) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
func (*AutoPipeliner) HImportDiscardAll ¶ added in v9.22.0
func (ap *AutoPipeliner) HImportDiscardAll(ctx context.Context) *IntCmd
func (*AutoPipeliner) HImportPrepare ¶ added in v9.22.0
func (ap *AutoPipeliner) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
HImportPrepare, HImportDiscard and HImportDiscardAll are the remaining cluster-wide overrides (see the delegation note above): ClusterClient fans them out to every master and updates the shared fieldset registry, so running them on a single routed node would let a later HImportSet for a key on another master fail with "no such fieldset". TestAPDelegatesClusterWideOverrides fails if a future ClusterClient override is added without a delegate here.
func (AutoPipeliner) HImportSet ¶ added in v9.22.0
func (c AutoPipeliner) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
HImportSet creates or fully replaces the hash at key using the field list registered under fieldsetName, pairing values positionally with the prepared fields:
HIMPORT SET key fieldset_name value [value ...]
The number of values must equal the fieldset's field count. The resulting key is a regular hash readable and writable by all hash commands. If the fieldset was registered through HImportPrepare on this client, it is prepared automatically on whichever pooled connection executes the command; otherwise the fieldset must have been prepared on the executing connection or the server replies "ERR no such fieldset".
"no such fieldset" never surfaces for a registered fieldset: a single-command HImportSet whose connection lost its session state (e.g. RESET) is transparently re-prepared and retried once — the failure also stales every other connection's prepared flag, so the retry re-prepares wherever it lands, and this recovery attempt is granted even when retries are disabled (MaxRetries -1). In pipelines the failed HImportSets — and only those — are re-prepared and re-issued once on the same connection (HIMPORT SET is a full replace, so the re-execution is idempotent and no other command of the batch runs again). Inside transactions the error does surface after EXEC — an executed transaction cannot be partially re-run — but the prepared flags are invalidated, so retrying the transaction succeeds.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (AutoPipeliner) HIncrByFloat ¶ added in v9.22.0
func (AutoPipeliner) HKeys ¶ added in v9.22.0
func (c AutoPipeliner) HKeys(ctx context.Context, key string) *StringSliceCmd
func (AutoPipeliner) HMGet ¶ added in v9.22.0
HMGet returns the values for the specified fields in the hash stored at key. It returns an interface{} to distinguish between empty string and nil value.
func (AutoPipeliner) HMSet ¶ added in v9.22.0
HMSet is a deprecated version of HSet left for compatibility with Redis 3.
func (AutoPipeliner) HPExpire ¶ added in v9.22.0
func (c AutoPipeliner) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
HPExpire - Sets the expiration time for specified fields in a hash in milliseconds. Similar to HExpire, it accepts a key, an expiration duration in milliseconds, a struct with expiration condition flags, and a list of fields. The command modifies the standard time.Duration to milliseconds for the Redis command. Available since Redis 7.4 CE. For more information refer to HPEXPIRE Documentation.
func (AutoPipeliner) HPExpireAt ¶ added in v9.22.0
func (c AutoPipeliner) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
HPExpireAt - Sets the expiration time for specified fields in a hash to a UNIX timestamp in milliseconds. Similar to HExpireAt but for timestamps in milliseconds. It accepts the same parameters and adjusts the UNIX time to milliseconds. Available since Redis 7.4 CE. For more information refer to HExpireAt Documentation.
func (AutoPipeliner) HPExpireAtWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (AutoPipeliner) HPExpireTime ¶ added in v9.22.0
func (c AutoPipeliner) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPExpireTime - Retrieves the expiration time for specified fields in a hash as a UNIX timestamp in milliseconds. Similar to HExpireTime, adjusted for timestamps in milliseconds. It requires the same parameters. Provides the expiration timestamp for each field in milliseconds. Available since Redis 7.4 CE. For more information refer to [HExpireTime Documentation].
[HExpireTime Documentation]: https://redis.io/commands/hexpiretime/ For more information - https://redis.io/commands/hexpiretime/
func (AutoPipeliner) HPExpireWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
HPExpireWithArgs - Sets the expiration time for specified fields in a hash in milliseconds. It requires a key, an expiration duration, a struct with boolean flags for conditional expiration settings (NX, XX, GT, LT), and a list of fields. The command constructs an argument list starting with "HPEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HPEXPIRE Documentation.
func (AutoPipeliner) HPTTL ¶ added in v9.22.0
func (c AutoPipeliner) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPTTL - Retrieves the remaining time to live for specified fields in a hash in milliseconds. Similar to HTTL, but returns the TTL in milliseconds. It requires a key and the specified fields. This command provides the TTL in milliseconds for each field or returns error/status codes as needed. Available since Redis 7.4 CE. For more information refer to [HPTTL Documentation].
[HPTTL Documentation]: https://redis.io/commands/hpttl/ For more information - https://redis.io/commands/hpttl/
func (AutoPipeliner) HPersist ¶ added in v9.22.0
func (c AutoPipeliner) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPersist - Removes the expiration time from specified fields in a hash. Accepts a key and the fields themselves. This command ensures that each field specified will have its expiration removed if present. Available since Redis 7.4 CE. For more information refer to HPersist Documentation.
func (AutoPipeliner) HRandField ¶ added in v9.22.0
func (c AutoPipeliner) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
HRandField redis-server version >= 6.2.0.
func (AutoPipeliner) HRandFieldWithValues ¶ added in v9.22.0
func (c AutoPipeliner) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
HRandFieldWithValues redis-server version >= 6.2.0.
func (AutoPipeliner) HScanNoValues ¶ added in v9.22.0
func (AutoPipeliner) HSet ¶ added in v9.22.0
HSet accepts values in following formats:
HSet(ctx, "myhash", "key1", "value1", "key2", "value2")
HSet(ctx, "myhash", []string{"key1", "value1", "key2", "value2"})
HSet(ctx, "myhash", map[string]interface{}{"key1": "value1", "key2": "value2"})
Playing struct With "redis" tag. type MyHash struct { Key1 string `redis:"key1"`; Key2 int `redis:"key2"` }
HSet(ctx, "myhash", MyHash{"value1", "value2"}) Warn: redis-server >= 4.0
For struct, can be a structure pointer type, we only parse the field whose tag is redis. if you don't want the field to be read, you can use the `redis:"-"` flag to ignore it, or you don't need to set the redis tag. For the type of structure field, we only support simple data types: string, int/uint(8,16,32,64), float(32,64), time.Time(to RFC3339Nano), time.Duration(to Nanoseconds ), if you are other more complex or custom data types, please implement the encoding.BinaryMarshaler interface.
Note that in older versions of Redis server(redis-server < 4.0), HSet only supports a single key-value pair. redis-docs: https://redis.io/commands/hset (Starting with Redis version 4.0.0: Accepts multiple field and value arguments.) If you are using a Struct type and the number of fields is greater than one, you will receive an error similar to "ERR wrong number of arguments", you can use HMSet as a substitute.
func (AutoPipeliner) HSetEXWithArgs ¶ added in v9.22.0
func (AutoPipeliner) HTTL ¶ added in v9.22.0
func (c AutoPipeliner) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
HTTL - Retrieves the remaining time to live for specified fields in a hash in seconds. Requires a key and the fields themselves. It returns the TTL for each specified field. This command fetches the TTL in seconds for each field or returns error/status codes as appropriate. Available since Redis 7.4 CE. For more information refer to HTTL Documentation.
func (AutoPipeliner) HVals ¶ added in v9.22.0
func (c AutoPipeliner) HVals(ctx context.Context, key string) *StringSliceCmd
func (AutoPipeliner) IncrByFloat ¶ added in v9.22.0
func (AutoPipeliner) IncrEXFloat ¶ added in v9.22.0
func (c AutoPipeliner) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
IncrEXFloat Redis `INCREX key [BYFLOAT amount] [LBOUND value] [UBOUND value] [SATURATE] [EX seconds | PX ms | EXAT ts | PXAT ts | PERSIST] [ENX]` command.
Available since Redis 8.8. For more information, see https://redis.io/commands/increx
func (AutoPipeliner) IncrEXInt ¶ added in v9.22.0
func (c AutoPipeliner) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
IncrEXInt Redis `INCREX key [BYINT amount] [LBOUND value] [UBOUND value] [SATURATE] [EX seconds | PX ms | EXAT ts | PXAT ts | PERSIST] [ENX]` command.
Atomically increments the integer value stored at key, optionally constraining the result to a range and applying expiration semantics. Returns the new value and the increment that was actually applied. When the increment would exceed LBOUND/UBOUND and SATURATE is not set, the key and TTL are left unchanged and the reply is [current_value, 0].
Available since Redis 8.8. For more information, see https://redis.io/commands/increx
func (*AutoPipeliner) IsBlocking ¶ added in v9.22.0
func (ap *AutoPipeliner) IsBlocking() bool
IsBlocking reports which face this autopipeliner is: true for the blocking face (Client.AutoPipeline — calls wait for execution), false for the deferred face (AsyncAutoPipeline — calls return immediately and result accessors block). The two faces reject different usage (Submit is blocking-face-rejected), so code handed an *AutoPipeliner can branch on this instead of probing with errors.
func (*AutoPipeliner) IsClosed ¶ added in v9.22.0
func (ap *AutoPipeliner) IsClosed() bool
IsClosed reports whether the AutoPipeliner has been closed, either by an explicit Close or by closing the owning client. A closed AutoPipeliner rejects new commands with ErrClosed.
func (AutoPipeliner) JSONArrAppend ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) JSONArrIndex ¶ added in v9.22.0
func (c AutoPipeliner) 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
func (AutoPipeliner) JSONArrIndexWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, value ...interface{}) *IntSliceCmd
JSONArrIndexWithArgs searches for the first occurrence of a JSON value in an array while allowing the start and stop options to be provided. For more information, see https://redis.io/commands/json.arrindex
func (AutoPipeliner) JSONArrInsert ¶ added in v9.22.0
func (c AutoPipeliner) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
JSONArrInsert inserts the JSON values into the array at the specified path before the index (shifts to the right). For more information, see https://redis.io/commands/json.arrinsert
func (AutoPipeliner) JSONArrLen ¶ added in v9.22.0
func (c AutoPipeliner) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
JSONArrLen reports the length of the JSON array at the specified path in the given key. For more information, see https://redis.io/commands/json.arrlen
func (AutoPipeliner) JSONArrPop ¶ added in v9.22.0
func (c AutoPipeliner) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
JSONArrPop removes and returns an element from the specified index in the array. For more information, see https://redis.io/commands/json.arrpop
func (AutoPipeliner) JSONArrTrim ¶ added in v9.22.0
func (c AutoPipeliner) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
JSONArrTrim trims an array to contain only the specified inclusive range of elements. For more information, see https://redis.io/commands/json.arrtrim
func (AutoPipeliner) JSONArrTrimWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
JSONArrTrimWithArgs trims an array to contain only the specified inclusive range of elements. For more information, see https://redis.io/commands/json.arrtrim
func (AutoPipeliner) JSONClear ¶ added in v9.22.0
JSONClear clears container values (arrays/objects) and sets numeric values to 0. For more information, see https://redis.io/commands/json.clear
func (AutoPipeliner) JSONDebugMemory ¶ added in v9.22.0
JSONDebugMemory reports a value's memory usage in bytes (unimplemented) For more information, see https://redis.io/commands/json.debug-memory
func (AutoPipeliner) JSONDel ¶ added in v9.22.0
JSONDel deletes a value. For more information, see https://redis.io/commands/json.del
func (AutoPipeliner) JSONForget ¶ added in v9.22.0
JSONForget deletes a value. For more information, see https://redis.io/commands/json.forget
func (AutoPipeliner) JSONGet ¶ added in v9.22.0
JSONGet returns the value at path in JSON serialized form. JSON.GET returns an array of strings. This function parses out the wrapping array but leaves the internal strings unprocessed by default (see Val()) For more information - https://redis.io/commands/json.get/
func (AutoPipeliner) JSONGetWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
JSONGetWithArgs - Retrieves the value of a key from a JSON document. This function also allows for specifying additional options such as: Indention, NewLine and Space For more information - https://redis.io/commands/json.get/
func (AutoPipeliner) JSONMGet ¶ added in v9.22.0
func (c AutoPipeliner) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
JSONMGet returns the values at the specified path from multiple key arguments. Note - the arguments are reversed when compared with `JSON.MGET` as we want to follow the pattern of having the last argument be variable. For more information, see https://redis.io/commands/json.mget
func (AutoPipeliner) JSONMSetArgs ¶ added in v9.22.0
func (c AutoPipeliner) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
JSONMSetArgs sets or updates one or more JSON values according to the specified key-path-value triplets. For more information, see https://redis.io/commands/json.mset
func (AutoPipeliner) JSONMerge ¶ added in v9.22.0
JSONMerge merges a given JSON value into matching paths. For more information, see https://redis.io/commands/json.merge
func (AutoPipeliner) JSONNumIncrBy ¶ added in v9.22.0
JSONNumIncrBy increments the number value stored at the specified path by the provided number. For more information, see https://redis.io/docs/latest/commands/json.numincrby/
func (AutoPipeliner) JSONObjKeys ¶ added in v9.22.0
JSONObjKeys returns the keys in the object that's referenced by the specified path. For more information, see https://redis.io/commands/json.objkeys
func (AutoPipeliner) JSONObjLen ¶ added in v9.22.0
func (c AutoPipeliner) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONObjLen reports the number of keys in the JSON object at the specified path in the given key. For more information, see https://redis.io/commands/json.objlen
func (AutoPipeliner) JSONSet ¶ added in v9.22.0
JSONSet sets the JSON value at the given path in the given key. The value must be something that can be marshaled to JSON (using encoding/JSON) unless the argument is a string or a []byte when we assume that it can be passed directly as JSON. For more information, see https://redis.io/commands/json.set
func (AutoPipeliner) JSONSetMode ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) JSONSetWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, options *JSONSetArgsOptions) *StatusCmd
JSONSetWithArgs sets the JSON value at the given path in the given key with optional arguments for setting mode (NX/XX) and the FPHA (Floating-Point Homogeneous Array) type used for storing FP arrays. 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 (AutoPipeliner) JSONStrAppend ¶ added in v9.22.0
func (c AutoPipeliner) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
JSONStrAppend appends the JSON-string values to the string at the specified path. For more information, see https://redis.io/commands/json.strappend
func (AutoPipeliner) JSONStrLen ¶ added in v9.22.0
func (c AutoPipeliner) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONStrLen reports the length of the JSON String at the specified path in the given key. For more information, see https://redis.io/commands/json.strlen
func (AutoPipeliner) JSONToggle ¶ added in v9.22.0
func (c AutoPipeliner) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONToggle toggles a Boolean value stored at the specified path. For more information, see https://redis.io/commands/json.toggle
func (AutoPipeliner) JSONType ¶ added in v9.22.0
func (c AutoPipeliner) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
JSONType reports the type of JSON value at the specified path. For more information, see https://redis.io/commands/json.type
func (AutoPipeliner) Keys ¶ added in v9.22.0
func (c AutoPipeliner) Keys(ctx context.Context, pattern string) *StringSliceCmd
func (AutoPipeliner) LInsertAfter ¶ added in v9.22.0
func (AutoPipeliner) LInsertBefore ¶ added in v9.22.0
func (AutoPipeliner) LMPop ¶ added in v9.22.0
func (c AutoPipeliner) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
LMPop Pops one or more elements from the first non-empty list key from the list of provided key names. direction: left or right, count: > 0 example: client.LMPop(ctx, "left", 3, "key1", "key2")
func (AutoPipeliner) LMoveM ¶ added in v9.22.0
func (c AutoPipeliner) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
LMoveM atomically moves multiple elements between lists (Redis 8.10+). srcpos/destpos are "LEFT" or "RIGHT". Returns moved elements, or redis.Nil if none.
func (AutoPipeliner) LPopCount ¶ added in v9.22.0
func (c AutoPipeliner) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
func (AutoPipeliner) LRange ¶ added in v9.22.0
func (c AutoPipeliner) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
func (AutoPipeliner) Latency ¶ added in v9.22.0
func (c AutoPipeliner) Latency(ctx context.Context) *LatencyCmd
func (AutoPipeliner) LatencyReset ¶ added in v9.22.0
func (*AutoPipeliner) Len ¶ added in v9.22.0
func (ap *AutoPipeliner) Len() int
Len returns the current number of queued commands across all shards.
func (AutoPipeliner) MSet ¶ added in v9.22.0
MSet is like Set but accepts multiple values:
- MSet("key1", "value1", "key2", "value2")
- MSet([]string{"key1", "value1", "key2", "value2"})
- MSet(map[string]interface{}{"key1": "value1", "key2": "value2"})
- MSet(struct), For struct types, see HSet description.
func (AutoPipeliner) MSetEX ¶ added in v9.22.0
func (c AutoPipeliner) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
MSetEX sets the given keys to their respective values. This command is an extension of the MSETNX that adds expiration and XX options. Available since Redis 8.4 Important: When this method is used with Cluster clients, all keys must be in the same hash slot, otherwise CROSSSLOT error will be returned. For more information, see https://redis.io/commands/msetex
func (AutoPipeliner) MSetNX ¶ added in v9.22.0
MSetNX is like SetNX but accepts multiple values:
- MSetNX("key1", "value1", "key2", "value2")
- MSetNX([]string{"key1", "value1", "key2", "value2"})
- MSetNX(map[string]interface{}{"key1": "value1", "key2": "value2"})
- MSetNX(struct), For struct types, see HSet description.
func (AutoPipeliner) MemoryUsage ¶ added in v9.22.0
func (AutoPipeliner) ModuleLoadex ¶ added in v9.22.0
func (c AutoPipeliner) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
ModuleLoadex Redis `MODULE LOADEX path [CONFIG name value [CONFIG name value ...]] [ARGS args [args ...]]` command.
func (AutoPipeliner) Monitor ¶ added in v9.22.0
func (c AutoPipeliner) Monitor(ctx context.Context, ch chan string) *MonitorCmd
Monitor - represents a Redis MONITOR command, allowing the user to capture and process all commands sent to a Redis server. This mimics the behavior of MONITOR in the redis-cli.
Notes: - Using MONITOR blocks the connection to the server for itself. It needs a dedicated connection - The user should create a channel of type string - This runs concurrently in the background. Trigger via the Start and Stop functions See further: Redis MONITOR command: https://redis.io/commands/monitor
func (AutoPipeliner) ObjectEncoding ¶ added in v9.22.0
func (AutoPipeliner) ObjectFreq ¶ added in v9.22.0
func (AutoPipeliner) ObjectIdleTime ¶ added in v9.22.0
func (c AutoPipeliner) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
func (AutoPipeliner) ObjectRefCount ¶ added in v9.22.0
func (AutoPipeliner) PExpireTime ¶ added in v9.22.0
func (c AutoPipeliner) PExpireTime(ctx context.Context, key string) *DurationCmd
PExpireTime returns the absolute expiration time of key as a Unix timestamp encoded in *DurationCmd (milliseconds since the epoch), not a remaining TTL. Convert with: time.UnixMilli(int64(d/time.Millisecond)). Use TTL/PTTL for remaining TTL.
func (*AutoPipeliner) PSubscribe ¶ added in v9.22.0
func (ap *AutoPipeliner) PSubscribe(ctx context.Context, channels ...string) *PubSub
PSubscribe opens a pattern pub/sub on the underlying client (not batched).
func (AutoPipeliner) PTTL ¶ added in v9.22.0
func (c AutoPipeliner) PTTL(ctx context.Context, key string) *DurationCmd
func (*AutoPipeliner) Pipeline ¶ added in v9.22.0
func (ap *AutoPipeliner) Pipeline() Pipeliner
Pipeline returns a new pipeline that uses the underlying pipeliner. This allows you to create a traditional pipeline from an autopipeliner.
On a FULL-DUPLEX autopipeliner the pipeline runs on the HELD connection rather than taking one of its own: see fdPipelineExec. Without that, a pipeline built from an autopipeliner would quietly leave the pipe, take a pooled connection per Exec, and lose the coalescing that is the whole point of the engine — measured at 150 active sockets and less than a third of the throughput of the same commands submitted through the engine.
func (*AutoPipeliner) Pipelined ¶ added in v9.22.0
Pipelined executes a function in a pipeline context. This is a convenience method that creates a pipeline, executes the function, and returns the results.
Uses Pipeline, so on a full-duplex autopipeliner this also runs on the held connection rather than taking one of its own.
func (*AutoPipeliner) PoolStats ¶ added in v9.22.0
func (ap *AutoPipeliner) PoolStats() *PoolStats
PoolStats returns the underlying client's connection pool statistics.
func (*AutoPipeliner) Process ¶ added in v9.22.0
func (ap *AutoPipeliner) Process(ctx context.Context, cmd Cmder) error
Process queues a command for autopipelined execution, following the autopipeliner's mode like the typed methods and Do: on a blocking autopipeliner the call blocks until the command has executed; on a deferred (async) one it returns immediately and reading the command's result (Val/Result/Err) blocks until its batch is flushed.
func (AutoPipeliner) PubSubChannels ¶ added in v9.22.0
func (c AutoPipeliner) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
func (AutoPipeliner) PubSubNumPat ¶ added in v9.22.0
func (AutoPipeliner) PubSubNumSub ¶ added in v9.22.0
func (c AutoPipeliner) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
func (AutoPipeliner) PubSubShardChannels ¶ added in v9.22.0
func (c AutoPipeliner) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
func (AutoPipeliner) PubSubShardNumSub ¶ added in v9.22.0
func (c AutoPipeliner) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
func (AutoPipeliner) RPopCount ¶ added in v9.22.0
func (c AutoPipeliner) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
func (AutoPipeliner) RPopLPush
deprecated
added in
v9.22.0
RPopLPush atomically returns and removes the last element of the source list, and pushes the element as the first element of the destination list.
Deprecated: Use LMove with RIGHT and LEFT arguments instead as of Redis 6.2.0.
func (AutoPipeliner) ReplicaOf ¶ added in v9.22.0
ReplicaOf sets a Redis server as a replica of another, or promotes it to being a master.
func (AutoPipeliner) RestoreReplace ¶ added in v9.22.0
func (AutoPipeliner) SAdd ¶ added in v9.22.0
Returns the number of elements that were added to the set, not including all the elements already present in the set.
For more information about the command please refer to [SADD].
func (AutoPipeliner) SCard ¶ added in v9.22.0
Returns the set cardinality (number of elements) of the set stored at key. Returns 0 if key does not exist.
For more information about the command please refer to [SCARD].
[SCARD]: (https://redis.io/docs/latest/commands/scard/)
func (AutoPipeliner) SDiff ¶ added in v9.22.0
func (c AutoPipeliner) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the difference between the first set and all the successive sets. Keys that do not exist are considered to be empty sets.
For more information about the command please refer to [SDIFF].
[SDIFF]: (https://redis.io/docs/latest/commands/sdiff/)
func (AutoPipeliner) SDiffCard ¶ added in v9.22.0
func (c AutoPipeliner) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
Returns the cardinality of the difference of the first set and the rest. Missing keys are treated as empty sets.
For more information about the command please refer to [SDIFFCARD].
[SDIFFCARD]: (https://redis.io/docs/latest/commands/sdiffcard/)
func (AutoPipeliner) SDiffStore ¶ added in v9.22.0
Stores the members of the set resulting from the difference between the first set and all the successive sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SDIFFSTORE].
[SDIFFSTORE]: (https://redis.io/docs/latest/commands/sdiffstore/)
func (AutoPipeliner) SInter ¶ added in v9.22.0
func (c AutoPipeliner) SInter(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the intersection of all the given sets. Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty.
For more information about the command please refer to [SINTER].
[SINTER]: (https://redis.io/docs/latest/commands/sinter/)
func (AutoPipeliner) SInterCard ¶ added in v9.22.0
Returns the cardinality of the set resulting from the intersection of all the given sets. Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty.
The limit parameter sets an upper bound on the number of results returned. If limit is 0, no limit is applied.
For more information about the command please refer to [SINTERCARD].
[SINTERCARD]: (https://redis.io/docs/latest/commands/sintercard/)
func (AutoPipeliner) SInterStore ¶ added in v9.22.0
Stores the members of the set resulting from the intersection of all the given sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SINTERSTORE].
[SINTERSTORE]: (https://redis.io/docs/latest/commands/sinterstore/)
func (AutoPipeliner) SIsMember ¶ added in v9.22.0
Returns if member is a member of the set stored at key. Returns true if the element is a member of the set, false if it is not a member or if key does not exist.
For more information about the command please refer to [SISMEMBER].
[SISMEMBER]: (https://redis.io/docs/latest/commands/sismember/)
func (AutoPipeliner) SMIsMember ¶ added in v9.22.0
func (c AutoPipeliner) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
Returns whether each member is a member of the set stored at key. For each member, returns true if the element is a member of the set, false if it is not a member or if key does not exist.
For more information about the command please refer to [SMISMEMBER].
[SMISMEMBER]: (https://redis.io/docs/latest/commands/smismember/)
func (AutoPipeliner) SMembers ¶ added in v9.22.0
func (c AutoPipeliner) SMembers(ctx context.Context, key string) *StringSliceCmd
Returns all the members of the set value stored at key. Returns an empty slice if key does not exist.
For more information about the command please refer to [SMEMBERS].
[SMEMBERS]: (https://redis.io/docs/latest/commands/smembers/)
func (AutoPipeliner) SMembersMap ¶ added in v9.22.0
func (c AutoPipeliner) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
Returns all the members of the set value stored at key as a map. Returns an empty map if key does not exist.
For more information about the command please refer to [SMEMBERS].
[SMEMBERS]: (https://redis.io/docs/latest/commands/smembers/)
func (AutoPipeliner) SMove ¶ added in v9.22.0
func (c AutoPipeliner) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
Moves member from the set at source to the set at destination. This operation is atomic. In every given moment the element will appear to be a member of source or destination for other clients.
For more information about the command please refer to [SMOVE].
[SMOVE]: (https://redis.io/docs/latest/commands/smove/)
func (AutoPipeliner) SPop ¶ added in v9.22.0
Removes and returns one or more random members from the set value stored at key. This version returns a single random member.
For more information about the command please refer to [SPOP].
func (AutoPipeliner) SPopN ¶ added in v9.22.0
func (c AutoPipeliner) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
Removes and returns one or more random members from the set value stored at key. This version returns up to count random members.
For more information about the command please refer to [SPOP].
func (AutoPipeliner) SRandMember ¶ added in v9.22.0
Returns a random member from the set value stored at key. This version returns a single random member without removing it.
For more information about the command please refer to [SRANDMEMBER].
[SRANDMEMBER]: (https://redis.io/docs/latest/commands/srandmember/)
func (AutoPipeliner) SRandMemberN ¶ added in v9.22.0
func (c AutoPipeliner) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
Returns an array of random members from the set value stored at key. This version returns up to count random members without removing them. When called with a positive count, returns distinct elements. When called with a negative count, allows for repeated elements.
For more information about the command please refer to [SRANDMEMBER].
[SRANDMEMBER]: (https://redis.io/docs/latest/commands/srandmember/)
func (AutoPipeliner) SRem ¶ added in v9.22.0
Removes the specified members from the set stored at key. Specified members that are not a member of this set are ignored. If key does not exist, it is treated as an empty set and this command returns 0.
For more information about the command please refer to [SREM].
func (AutoPipeliner) SScan ¶ added in v9.22.0
func (c AutoPipeliner) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
Incrementally iterates the set elements stored at key. This is a cursor-based iterator that allows scanning large sets efficiently.
Parameters:
- cursor: The cursor value for the iteration (use 0 to start a new scan)
- match: Optional pattern to match elements (empty string means no pattern)
- count: Optional hint about how many elements to return per iteration
For more information about the command please refer to [SSCAN].
[SSCAN]: (https://redis.io/docs/latest/commands/sscan/)
func (*AutoPipeliner) SSubscribe ¶ added in v9.22.0
func (ap *AutoPipeliner) SSubscribe(ctx context.Context, channels ...string) *PubSub
SSubscribe opens a sharded pub/sub on the underlying client (not batched).
func (AutoPipeliner) SUnion ¶ added in v9.22.0
func (c AutoPipeliner) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the union of all the given sets. Keys that do not exist are considered to be empty sets.
For more information about the command please refer to [SUNION].
[SUNION]: (https://redis.io/docs/latest/commands/sunion/)
func (AutoPipeliner) SUnionCard ¶ added in v9.22.0
func (c AutoPipeliner) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
Returns the cardinality of the union of all the given sets. Missing keys are treated as empty sets.
For more information about the command please refer to [SUNIONCARD].
[SUNIONCARD]: (https://redis.io/docs/latest/commands/sunioncard/)
func (AutoPipeliner) SUnionStore ¶ added in v9.22.0
Stores the members of the set resulting from the union of all the given sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SUNIONSTORE].
[SUNIONSTORE]: (https://redis.io/docs/latest/commands/sunionstore/)
func (*AutoPipeliner) ScriptExists ¶ added in v9.22.0
func (ap *AutoPipeliner) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
ScriptExists delegates to the underlying client (ANDs results across shards on ClusterClient).
func (*AutoPipeliner) ScriptFlush ¶ added in v9.22.0
func (ap *AutoPipeliner) ScriptFlush(ctx context.Context) *StatusCmd
ScriptFlush delegates to the underlying client (flushes every shard on ClusterClient).
func (AutoPipeliner) ScriptKill ¶ added in v9.22.0
func (*AutoPipeliner) ScriptLoad ¶ added in v9.22.0
func (ap *AutoPipeliner) ScriptLoad(ctx context.Context, script string) *StringCmd
ScriptLoad delegates to the underlying client (loads every shard on ClusterClient).
func (AutoPipeliner) Set ¶ added in v9.22.0
func (c AutoPipeliner) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
Set Redis `SET key value [expiration]` command. Use expiration for `SETEx`-like behavior.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (AutoPipeliner) SetArgs ¶ added in v9.22.0
func (c AutoPipeliner) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
SetArgs supports all the options that the SET command supports. It is the alternative to the Set function when you want to have more control over the options.
func (AutoPipeliner) SetFromBuffer ¶ added in v9.22.0
SetFromBuffer executes SET writing the value directly from buf. For values larger than the connection's write buffer, bufio.Writer.Write flushes its internal buffer (containing the RESP header) and then writes buf straight to the socket — effectively zero-copy on the send path.
Expiration is not supported; use Expire separately if a TTL is required.
Note: SetFromBuffer is exposed for API symmetry with GetToBuffer and is functionally equivalent to Set(ctx, key, buf, 0) — both dispatch to the same []byte case in the RESP writer and produce identical bytes on the wire. The zero-copy property on the send path comes from bufio.Writer.Write bypassing its internal buffer for large payloads, which Set([]byte) gets automatically. Prefer SetFromBuffer in code that also uses GetToBuffer so the buffer-based pattern reads coherently; otherwise Set(ctx, key, buf, 0) is equally efficient.
func (AutoPipeliner) SetIFDEQ ¶ added in v9.22.0
func (c AutoPipeliner) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StatusCmd
SetIFDEQ sets the value only if the current value's digest equals matchDigest.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns "OK" on success. Returns redis.Nil if the digest doesn't match (value was modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFNEQ is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetIFDEQGet ¶ added in v9.22.0
func (c AutoPipeliner) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StringCmd
SetIFDEQGet sets the value only if the current value's digest equals matchDigest, and returns the previous value.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns the previous value on success. Returns redis.Nil if the digest doesn't match (value was modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFNEQGet is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetIFDNE ¶ added in v9.22.0
func (c AutoPipeliner) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StatusCmd
SetIFDNE sets the value only if the current value's digest does NOT equal matchDigest.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns "OK" on success (digest didn't match, value was set). Returns redis.Nil if the digest matches (value was not modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFDNE is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetIFDNEGet ¶ added in v9.22.0
func (c AutoPipeliner) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StringCmd
SetIFDNEGet sets the value only if the current value's digest does NOT equal matchDigest, and returns the previous value.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns the previous value on success (digest didn't match, value was set). Returns redis.Nil if the digest matches (value was not modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFDNEGet is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetIFEQ ¶ added in v9.22.0
func (c AutoPipeliner) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StatusCmd
SetIFEQ Redis `SET key value [expiration] IFEQ match-value` command. Compare-and-set: only sets the value if the current value equals matchValue.
Returns "OK" on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFEQ is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetIFEQGet ¶ added in v9.22.0
func (c AutoPipeliner) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StringCmd
SetIFEQGet Redis `SET key value [expiration] IFEQ match-value GET` command. Compare-and-set with GET: only sets the value if the current value equals matchValue, and returns the previous value.
Returns the previous value on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFEQGet is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetIFNE ¶ added in v9.22.0
func (c AutoPipeliner) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StatusCmd
SetIFNE Redis `SET key value [expiration] IFNE match-value` command. Compare-and-set: only sets the value if the current value does not equal matchValue.
Returns "OK" on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFNE is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetIFNEGet ¶ added in v9.22.0
func (c AutoPipeliner) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StringCmd
SetIFNEGet Redis `SET key value [expiration] IFNE match-value GET` command. Compare-and-set with GET: only sets the value if the current value does not equal matchValue, and returns the previous value.
Returns the previous value on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFNEGet is still experimental it's signature and behaviour may change
func (AutoPipeliner) SetNX ¶ added in v9.22.0
func (c AutoPipeliner) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
SetNX sets the value of a key only if the key does not exist.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (AutoPipeliner) SetXX ¶ added in v9.22.0
func (c AutoPipeliner) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
SetXX Redis `SET key value [expiration] XX` command.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (AutoPipeliner) ShutdownNoSave ¶ added in v9.22.0
func (AutoPipeliner) ShutdownSave ¶ added in v9.22.0
func (AutoPipeliner) SlowLogGet ¶ added in v9.22.0
func (c AutoPipeliner) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
func (AutoPipeliner) SlowLogLen ¶ added in v9.22.0
func (AutoPipeliner) SlowLogReset ¶ added in v9.22.0
func (AutoPipeliner) Sort ¶ added in v9.22.0
func (c AutoPipeliner) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
func (AutoPipeliner) SortInterfaces ¶ added in v9.22.0
func (AutoPipeliner) SortRO ¶ added in v9.22.0
func (c AutoPipeliner) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
func (*AutoPipeliner) Submit ¶ added in v9.22.0
func (ap *AutoPipeliner) Submit(ctx context.Context, cmd Cmder) AutoFuture
Submit queues a command without blocking and returns an AutoFuture; Wait on it when the result is needed. This is the explicit form for working with raw Cmders on the deferred (async) face, where the typed methods (Set, Get, ...) provide the same deferred behaviour returning the usual *XxxCmd. The command's own result accessors (Err/Val/Result) are safe to use instead of Wait — they block until the command has executed. Connection-hostile command names (SHUTDOWN, MONITOR, SELECT, AUTH, MULTI, SUBSCRIBE, CLIENT, ...) never ride a shared pipeline connection: they are diverted to a normal pooled connection with plain Client.Do semantics. On a BLOCKING autopipeliner Submit is rejected (the future's Wait returns an error): the blocking face's ordering relies on every caller waiting for each command before issuing the next, which Submit by design does not do.
func (*AutoPipeliner) Subscribe ¶ added in v9.22.0
func (ap *AutoPipeliner) Subscribe(ctx context.Context, channels ...string) *PubSub
Subscribe opens a pub/sub on the underlying client (not batched — pub/sub needs a dedicated connection).
func (AutoPipeliner) TDigestAdd ¶ added in v9.22.0
TDigestAdd adds one or more elements to a t-Digest data structure. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.add/
func (AutoPipeliner) TDigestByRank ¶ added in v9.22.0
func (c AutoPipeliner) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
TDigestByRank returns an array of values from a t-Digest data structure based on their rank. The rank of an element is its position in the sorted list of all elements in the t-Digest. Returns an array of floats representing the values at the specified ranks or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.byrank/
func (AutoPipeliner) TDigestByRevRank ¶ added in v9.22.0
func (c AutoPipeliner) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
TDigestByRevRank returns an array of values from a t-Digest data structure based on their reverse rank. The reverse rank of an element is its position in the sorted list of all elements in the t-Digest when sorted in descending order. Returns an array of floats representing the values at the specified ranks or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.byrevrank/
func (AutoPipeliner) TDigestCDF ¶ added in v9.22.0
func (c AutoPipeliner) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
TDigestCDF returns an array of cumulative distribution function (CDF) values for one or more elements in a t-Digest data structure. The CDF value for an element is the fraction of all elements in the t-Digest that are less than or equal to it. Returns an array of floats representing the CDF values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.cdf/
func (AutoPipeliner) TDigestCreate ¶ added in v9.22.0
TDigestCreate creates an empty t-Digest data structure with default parameters. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.create/
func (AutoPipeliner) TDigestCreateWithCompression ¶ added in v9.22.0
func (c AutoPipeliner) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
TDigestCreateWithCompression creates an empty t-Digest data structure with a specified compression parameter. The compression parameter controls the accuracy and memory usage of the t-Digest. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.create/
func (AutoPipeliner) TDigestInfo ¶ added in v9.22.0
func (c AutoPipeliner) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
TDigestInfo returns information about a t-Digest data structure. For more information - https://redis.io/commands/tdigest.info/
func (AutoPipeliner) TDigestMax ¶ added in v9.22.0
TDigestMax returns the maximum value from a t-Digest data structure. For more information - https://redis.io/commands/tdigest.max/
func (AutoPipeliner) TDigestMerge ¶ added in v9.22.0
func (c AutoPipeliner) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, sourceKeys ...string) *StatusCmd
TDigestMerge merges multiple t-Digest data structures into a single t-Digest. This function also allows for specifying additional options such as compression and override behavior. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.merge/
func (AutoPipeliner) TDigestMin ¶ added in v9.22.0
TDigestMin returns the minimum value from a t-Digest data structure. For more information - https://redis.io/commands/tdigest.min/
func (AutoPipeliner) TDigestQuantile ¶ added in v9.22.0
func (c AutoPipeliner) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
TDigestQuantile returns an array of quantile values for one or more elements in a t-Digest data structure. The quantile value for an element is the fraction of all elements in the t-Digest that are less than or equal to it. Returns an array of floats representing the quantile values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.quantile/
func (AutoPipeliner) TDigestRank ¶ added in v9.22.0
func (c AutoPipeliner) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
TDigestRank returns an array of rank values for one or more elements in a t-Digest data structure. The rank of an element is its position in the sorted list of all elements in the t-Digest. Returns an array of integers representing the rank values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.rank/
func (AutoPipeliner) TDigestReset ¶ added in v9.22.0
TDigestReset resets a t-Digest data structure to its initial state. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.reset/
func (AutoPipeliner) TDigestRevRank ¶ added in v9.22.0
func (c AutoPipeliner) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
TDigestRevRank returns an array of reverse rank values for one or more elements in a t-Digest data structure. The reverse rank of an element is its position in the sorted list of all elements in the t-Digest when sorted in descending order. Returns an array of integers representing the reverse rank values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.revrank/
func (AutoPipeliner) TDigestTrimmedMean ¶ added in v9.22.0
func (c AutoPipeliner) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
TDigestTrimmedMean returns the trimmed mean value from a t-Digest data structure. The trimmed mean is calculated by removing a specified fraction of the highest and lowest values from the t-Digest and then calculating the mean of the remaining values. Returns a float representing the trimmed mean value or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.trimmed_mean/
func (AutoPipeliner) TSAdd ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSAddWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSAlter ¶ added in v9.22.0
func (c AutoPipeliner) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
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 (AutoPipeliner) TSCreate ¶ added in v9.22.0
TSCreate - Creates a new time-series key. For more information - https://redis.io/commands/ts.create/
func (AutoPipeliner) TSCreateRule ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSCreateRuleWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSCreateWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
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 (AutoPipeliner) TSDecrBy ¶ added in v9.22.0
TSDecrBy - Decrements the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.decrby/
func (AutoPipeliner) TSDecrByWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSDel ¶ added in v9.22.0
func (c AutoPipeliner) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
TSDel - Deletes a range of samples from a time-series key. For more information - https://redis.io/commands/ts.del/
func (AutoPipeliner) TSDeleteRule ¶ added in v9.22.0
func (c AutoPipeliner) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
TSDeleteRule - Deletes a compaction rule from sourceKey to destKey. For more information - https://redis.io/commands/ts.deleterule/
func (AutoPipeliner) TSGet ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSGetWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSIncrBy ¶ added in v9.22.0
TSIncrBy - Increments the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.incrby/
func (AutoPipeliner) TSIncrByWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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/
func (AutoPipeliner) TSInfo ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSInfoWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSMAdd ¶ added in v9.22.0
func (c AutoPipeliner) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
TSMAdd - Adds multiple samples to multiple time-series keys. It accepts a slice of 'ktv' slices, each containing exactly three elements: key, timestamp, and value. This struct must be provided for this command to work. For more information - https://redis.io/commands/ts.madd/
func (AutoPipeliner) TSMGet ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSMGetWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSMRange ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSMRangeWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRangeOptions) *MapStringSliceInterfaceCmd
TSMRangeWithArgs - Returns a range of samples from multiple time-series keys. Options are set via TSMRangeOptions. For more information - https://redis.io/commands/ts.mrange/
func (AutoPipeliner) TSMRevRange ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSMRevRangeWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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. Options are set via TSMRevRangeOptions. For more information - https://redis.io/commands/ts.mrevrange/
func (AutoPipeliner) TSNRange ¶ added in v9.22.0
func (c AutoPipeliner) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}) *TSNRangePivotRowSliceCmd
TSNRange - Queries multiple time-series keys and returns a pivot response in forward (ascending) order. For more information - https://redis.io/commands/ts.nrange/
func (AutoPipeliner) TSNRangeWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}, options *TSNRangeOptions) *TSNRangePivotRowSliceCmd
TSNRangeWithArgs - Queries multiple time-series keys and returns a pivot response in forward (ascending) order with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, Count, Align, Aggregators, BucketDuration, BucketTimestamp and Empty. Aggregators must contain exactly one spec per key; each spec lists one or more aggregators for its key and is emitted as a single comma-joined wire token. For more information - https://redis.io/commands/ts.nrange/
func (AutoPipeliner) TSNRevRange ¶ added in v9.22.0
func (c AutoPipeliner) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}) *TSNRangePivotRowSliceCmd
TSNRevRange - Queries multiple time-series keys and returns a pivot response in reverse (descending) order. For more information - https://redis.io/commands/ts.nrevrange/
func (AutoPipeliner) TSNRevRangeWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}, options *TSNRevRangeOptions) *TSNRangePivotRowSliceCmd
TSNRevRangeWithArgs - Queries multiple time-series keys and returns a pivot response in reverse (descending) order with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, Count, Align, Aggregators, BucketDuration, BucketTimestamp and Empty. Aggregators must contain exactly one spec per key; each spec lists one or more aggregators for its key and is emitted as a single comma-joined wire token. For more information - https://redis.io/commands/ts.nrevrange/
func (AutoPipeliner) TSQueryIndex ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSQueryLabelValues ¶ added in v9.22.0
func (c AutoPipeliner) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
TSQueryLabelValues - Returns the set of values assigned to the given label name across the time series matching the filter expressions. Passing no filter expressions queries all indexed series. The label name is matched byte-exactly; a label present on no matching series yields an empty reply, not an error. The reply is unordered and already deduplicated by the server. filterExpr uses the same filter language as TSQueryIndex and is passed to the server verbatim. Available since Redis 8.10. For more information - https://redis.io/commands/ts.querylabels/
func (AutoPipeliner) TSQueryLabels ¶ added in v9.22.0
func (c AutoPipeliner) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
TSQueryLabels - Returns the set of label names present on the time series matching the filter expressions. Passing no filter expressions queries all indexed series. The reply is unordered and already deduplicated by the server; it includes the label names used in the filter itself, and an empty reply is a valid result, not an error. filterExpr uses the same filter language as TSQueryIndex and is passed to the server verbatim. Available since Redis 8.10. For more information - https://redis.io/commands/ts.querylabels/
func (AutoPipeliner) TSRange ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSRangeWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSRead ¶ added in v9.22.0
func (c AutoPipeliner) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
TSRead - Returns samples at or after timestamp, in ascending order. timestamp is a non-negative Unix-ms integer or a sentinel (TSReadEarliest, TSReadLatest, TSReadNew). For more information - https://redis.io/commands/ts.read/
func (AutoPipeliner) TSReadWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
TSReadWithArgs - TS.READ with the optional BLOCK and MAX_COUNT groups. When options.Block is set it waits for options.MinCount samples or until options.Timeout elapses. Blocking calls must not be used in a pipeline or MULTI. For more information - https://redis.io/commands/ts.read/
func (AutoPipeliner) TSRevRange ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TSRevRangeWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) 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 (AutoPipeliner) TTL ¶ added in v9.22.0
func (c AutoPipeliner) TTL(ctx context.Context, key string) *DurationCmd
func (AutoPipeliner) TopKAdd ¶ added in v9.22.0
func (c AutoPipeliner) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
TopKAdd adds one or more elements to a Top-K filter. Returns an array of strings representing the items that were removed from the filter, if any. For more information - https://redis.io/commands/topk.add/
func (AutoPipeliner) TopKCount ¶ added in v9.22.0
func (c AutoPipeliner) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
TopKCount returns an estimate of the number of times an item may be in a Top-K filter. For more information - https://redis.io/commands/topk.count/
func (AutoPipeliner) TopKIncrBy ¶ added in v9.22.0
func (c AutoPipeliner) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
TopKIncrBy increases the count of one or more items in a Top-K filter. For more information - https://redis.io/commands/topk.incrby/
func (AutoPipeliner) TopKInfo ¶ added in v9.22.0
func (c AutoPipeliner) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
TopKInfo returns information about a Top-K filter. For more information - https://redis.io/commands/topk.info/
func (AutoPipeliner) TopKList ¶ added in v9.22.0
func (c AutoPipeliner) TopKList(ctx context.Context, key string) *StringSliceCmd
TopKList returns all items in Top-K list. For more information - https://redis.io/commands/topk.list/
func (AutoPipeliner) TopKListWithCount ¶ added in v9.22.0
func (c AutoPipeliner) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
TopKListWithCount returns all items in Top-K list with their respective count. For more information - https://redis.io/commands/topk.list/
func (AutoPipeliner) TopKQuery ¶ added in v9.22.0
func (c AutoPipeliner) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
TopKQuery check if multiple elements exist in a Top-K filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/topk.query/
func (AutoPipeliner) TopKReserve ¶ added in v9.22.0
TopKReserve creates an empty Top-K filter with the specified number of top items to keep. For more information - https://redis.io/commands/topk.reserve/
func (AutoPipeliner) TopKReserveWithOptions ¶ added in v9.22.0
func (c AutoPipeliner) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
TopKReserveWithOptions creates an empty Top-K filter with the specified number of top items to keep and additional options. This function allows for specifying additional options such as width, depth and decay. For more information - https://redis.io/commands/topk.reserve/
func (*AutoPipeliner) TxPipeline ¶ added in v9.22.0
func (ap *AutoPipeliner) TxPipeline() Pipeliner
TxPipeline returns a new transaction pipeline that uses the underlying pipeliner. This allows you to create a traditional transaction pipeline from an autopipeliner. It delegates to the underlying client's TxPipeline.
func (*AutoPipeliner) TxPipelined ¶ added in v9.22.0
func (ap *AutoPipeliner) TxPipelined(ctx context.Context, fn func(Pipeliner) error) ([]Cmder, error)
TxPipelined executes a function in a transaction pipeline context. This is a convenience method that creates a transaction pipeline, executes the function, and returns the results. It delegates to the underlying client's TxPipeline.
func (AutoPipeliner) VAdd ¶ added in v9.22.0
`VADD key (FP32 | VALUES num) vector element` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VAddWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
`VADD key [REDUCE dim] (FP32 | VALUES num) vector element [CAS] [NOQUANT | Q8 | BIN] [EF build-exploration-factor] [SETATTR attributes] [M numlinks]` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VCard ¶ added in v9.22.0
`VCARD key` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VClearAttributes ¶ added in v9.22.0
`VClearAttributes` clear attributes on a vector set element. The implementation of `VClearAttributes` is execute command `VSETATTR key element ""`. note: the API is experimental and may be subject to change.
func (AutoPipeliner) VDim ¶ added in v9.22.0
`VDIM key` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VEmb ¶ added in v9.22.0
`VEMB key element [RAW]` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VGetAttr ¶ added in v9.22.0
`VGETATTR key element` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VInfo ¶ added in v9.22.0
func (c AutoPipeliner) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
`VINFO key` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VIsMember ¶ added in v9.22.0
`VISMEMBER key element` Check if an element exists in a vector set. note: the API is experimental and may be subject to change.
func (AutoPipeliner) VLinks ¶ added in v9.22.0
func (c AutoPipeliner) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
`VLINKS key element` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VLinksWithScores ¶ added in v9.22.0
func (c AutoPipeliner) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
`VLINKS key element WITHSCORES` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VRandMember ¶ added in v9.22.0
`VRANDMEMBER key` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VRandMemberCount ¶ added in v9.22.0
func (c AutoPipeliner) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
`VRANDMEMBER key [count]` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VRange ¶ added in v9.22.0
func (c AutoPipeliner) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
`VRANGE key start end count` a negative count means to return all the elements in the vector set. note: the API is experimental and may be subject to change.
func (AutoPipeliner) VRem ¶ added in v9.22.0
`VREM key element` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VSetAttr ¶ added in v9.22.0
func (c AutoPipeliner) VSetAttr(ctx context.Context, key, element string, attr interface{}) *BoolCmd
`VSETATTR key element "{ JSON obj }"` The `attr` 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.
note: the API is experimental and may be subject to change.
func (AutoPipeliner) VSim ¶ added in v9.22.0
func (c AutoPipeliner) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element)` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VSimWithArgs ¶ added in v9.22.0
func (c AutoPipeliner) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VSimWithArgsWithAttribs ¶ added in v9.22.0
func (c AutoPipeliner) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHATTRIBS] [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` WITHATTRIBS is only available in Redis v8.2.0+ note: the API is experimental and may be subject to change.
func (AutoPipeliner) VSimWithArgsWithScores ¶ added in v9.22.0
func (c AutoPipeliner) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` note: the API is experimental and may be subject to change.
func (AutoPipeliner) VSimWithArgsWithScoresWithAttribs ¶ added in v9.22.0
func (c AutoPipeliner) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [WITHATTRIBS] [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` WITHATTRIBS is only available in Redis v8.2.0+ note: the API is experimental and may be subject to change.
func (AutoPipeliner) VSimWithScores ¶ added in v9.22.0
func (c AutoPipeliner) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) WITHSCORES` note: the API is experimental and may be subject to change.
func (*AutoPipeliner) WaitClosed ¶ added in v9.23.0
func (ap *AutoPipeliner) WaitClosed() error
WaitClosed blocks until the Close that claimed the shutdown has finished its drain, then returns that drain's result. Close itself returns immediately for any caller that loses the shutdown CAS (so a re-entrant Close from an in-flight dispatch cannot self-wait); a caller that must not act on "closed" until accepted commands have been flushed calls Close and then WaitClosed. The canonical use is a wrapping client whose own Close tears down shared connection pools: Close, WaitClosed, then close the pools — so the pools are never torn down under the winning Close's in-flight drain. Call after Close; with no Close in progress it blocks until one happens.
func (*AutoPipeliner) Watch ¶ added in v9.22.0
Watch runs a transactional function on the underlying client (not batched).
func (AutoPipeliner) XAutoClaim ¶ added in v9.22.0
func (c AutoPipeliner) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
func (AutoPipeliner) XAutoClaimJustID ¶ added in v9.22.0
func (c AutoPipeliner) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
func (AutoPipeliner) XAutoClaimWithDeleted ¶ added in v9.22.0
func (c AutoPipeliner) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
func (AutoPipeliner) XCfgSet ¶ added in v9.22.0
func (c AutoPipeliner) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
XCfgSet sets the idempotent production configuration for a stream. XCFGSET key [IDMP-DURATION duration] [IDMP-MAXSIZE maxsize]
func (AutoPipeliner) XClaim ¶ added in v9.22.0
func (c AutoPipeliner) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
func (AutoPipeliner) XClaimJustID ¶ added in v9.22.0
func (c AutoPipeliner) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
func (AutoPipeliner) XGroupCreate ¶ added in v9.22.0
func (AutoPipeliner) XGroupCreateConsumer ¶ added in v9.22.0
func (AutoPipeliner) XGroupCreateMkStream ¶ added in v9.22.0
func (AutoPipeliner) XGroupDelConsumer ¶ added in v9.22.0
func (AutoPipeliner) XGroupDestroy ¶ added in v9.22.0
func (AutoPipeliner) XGroupSetID ¶ added in v9.22.0
func (AutoPipeliner) XInfoConsumers ¶ added in v9.22.0
func (c AutoPipeliner) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
func (AutoPipeliner) XInfoGroups ¶ added in v9.22.0
func (c AutoPipeliner) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
func (AutoPipeliner) XInfoStream ¶ added in v9.22.0
func (c AutoPipeliner) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
func (AutoPipeliner) XInfoStreamFull ¶ added in v9.22.0
func (c AutoPipeliner) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
XInfoStreamFull XINFO STREAM FULL [COUNT count] redis-server >= 6.0.
func (AutoPipeliner) XNack ¶ added in v9.22.0
XNack executes the XNACK command. See XNackArgs for the full argument documentation. Requires Redis >= 8.8.
func (AutoPipeliner) XPending ¶ added in v9.22.0
func (c AutoPipeliner) XPending(ctx context.Context, stream, group string) *XPendingCmd
func (AutoPipeliner) XPendingExt ¶ added in v9.22.0
func (c AutoPipeliner) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
func (AutoPipeliner) XRange ¶ added in v9.22.0
func (c AutoPipeliner) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
func (AutoPipeliner) XRangeN ¶ added in v9.22.0
func (c AutoPipeliner) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
func (AutoPipeliner) XRead ¶ added in v9.22.0
func (c AutoPipeliner) XRead(ctx context.Context, a *XReadArgs) *XStreamSliceCmd
func (AutoPipeliner) XReadGroup ¶ added in v9.22.0
func (c AutoPipeliner) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
func (AutoPipeliner) XReadStreams ¶ added in v9.22.0
func (c AutoPipeliner) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
func (AutoPipeliner) XRevRange ¶ added in v9.22.0
func (c AutoPipeliner) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
func (AutoPipeliner) XRevRangeN ¶ added in v9.22.0
func (c AutoPipeliner) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
func (AutoPipeliner) XTrimMaxLen ¶ added in v9.22.0
XTrimMaxLen No `~` rules are used, `limit` cannot be used. cmd: XTRIM key MAXLEN maxLen
func (AutoPipeliner) XTrimMaxLenApprox ¶ added in v9.22.0
func (c AutoPipeliner) XTrimMaxLenApprox(ctx context.Context, key string, maxLen, limit int64) *IntCmd
XTrimMaxLenApprox trims the stream using the `~` rule. cmd: XTRIM key MAXLEN ~ maxLen [LIMIT limit]
limit == 0 omits the LIMIT clause, limit > 0 emits "LIMIT <limit>", and a negative limit (see XTrimLimitDisabled) emits "LIMIT 0" to disable the trimming effort cap.
func (AutoPipeliner) XTrimMaxLenApproxMode ¶ added in v9.22.0
func (AutoPipeliner) XTrimMaxLenMode ¶ added in v9.22.0
func (AutoPipeliner) XTrimMinID ¶ added in v9.22.0
func (AutoPipeliner) XTrimMinIDApprox ¶ added in v9.22.0
func (c AutoPipeliner) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
XTrimMinIDApprox trims the stream using the `~` rule. cmd: XTRIM key MINID ~ minID [LIMIT limit]
limit == 0 omits the LIMIT clause, limit > 0 emits "LIMIT <limit>", and a negative limit (see XTrimLimitDisabled) emits "LIMIT 0" to disable the trimming effort cap.
func (AutoPipeliner) XTrimMinIDApproxMode ¶ added in v9.22.0
func (AutoPipeliner) XTrimMinIDMode ¶ added in v9.22.0
func (AutoPipeliner) ZAdd ¶ added in v9.22.0
ZAdd Redis `ZADD key score member [score member ...]` command.
func (AutoPipeliner) ZAddArgsIncr ¶ added in v9.22.0
func (AutoPipeliner) ZAddGT ¶ added in v9.22.0
ZAddGT Redis `ZADD key GT score member [score member ...]` command.
func (AutoPipeliner) ZAddLT ¶ added in v9.22.0
ZAddLT Redis `ZADD key LT score member [score member ...]` command.
func (AutoPipeliner) ZAddNX ¶ added in v9.22.0
ZAddNX Redis `ZADD key NX score member [score member ...]` command.
func (AutoPipeliner) ZAddXX ¶ added in v9.22.0
ZAddXX Redis `ZADD key XX score member [score member ...]` command.
func (AutoPipeliner) ZDiff ¶ added in v9.22.0
func (c AutoPipeliner) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
ZDiff redis-server version >= 6.2.0.
func (AutoPipeliner) ZDiffStore ¶ added in v9.22.0
ZDiffStore redis-server version >=6.2.0.
func (AutoPipeliner) ZDiffWithScores ¶ added in v9.22.0
ZDiffWithScores redis-server version >= 6.2.0.
func (AutoPipeliner) ZInter ¶ added in v9.22.0
func (c AutoPipeliner) ZInter(ctx context.Context, store *ZStore) *StringSliceCmd
func (AutoPipeliner) ZInterCard ¶ added in v9.22.0
func (AutoPipeliner) ZInterStore ¶ added in v9.22.0
func (AutoPipeliner) ZInterWithScores ¶ added in v9.22.0
func (AutoPipeliner) ZMPop ¶ added in v9.22.0
func (c AutoPipeliner) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
ZMPop Pops one or more elements with the highest or lowest score from the first non-empty sorted set key from the list of provided key names. direction: "max" (highest score) or "min" (lowest score), count: > 0 example: client.ZMPop(ctx, "max", 5, "set1", "set2")
func (AutoPipeliner) ZMScore ¶ added in v9.22.0
func (c AutoPipeliner) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
func (AutoPipeliner) ZRandMember ¶ added in v9.22.0
func (c AutoPipeliner) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
ZRandMember redis-server version >= 6.2.0.
func (AutoPipeliner) ZRandMemberWithScores ¶ added in v9.22.0
ZRandMemberWithScores redis-server version >= 6.2.0.
func (AutoPipeliner) ZRange ¶ added in v9.22.0
func (c AutoPipeliner) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
func (AutoPipeliner) ZRangeArgs ¶ added in v9.22.0
func (c AutoPipeliner) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
func (AutoPipeliner) ZRangeArgsWithScores ¶ added in v9.22.0
func (c AutoPipeliner) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
func (AutoPipeliner) ZRangeByLex
deprecated
added in
v9.22.0
func (c AutoPipeliner) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRangeByLex returns members in a sorted set within a lexicographical range.
Deprecated: Use ZRangeArgs with ByLex option instead as of Redis 6.2.0.
func (AutoPipeliner) ZRangeByScore
deprecated
added in
v9.22.0
func (c AutoPipeliner) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRangeByScore returns members in a sorted set within a range of scores.
Deprecated: Use ZRangeArgs with ByScore option instead as of Redis 6.2.0.
func (AutoPipeliner) ZRangeByScoreWithScores ¶ added in v9.22.0
func (AutoPipeliner) ZRangeStore ¶ added in v9.22.0
func (c AutoPipeliner) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
func (AutoPipeliner) ZRangeWithScores ¶ added in v9.22.0
func (AutoPipeliner) ZRankWithScore ¶ added in v9.22.0
func (c AutoPipeliner) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
ZRankWithScore according to the Redis documentation, if member does not exist in the sorted set or key does not exist, it will return a redis.Nil error.
func (AutoPipeliner) ZRemRangeByLex ¶ added in v9.22.0
func (AutoPipeliner) ZRemRangeByRank ¶ added in v9.22.0
func (AutoPipeliner) ZRemRangeByScore ¶ added in v9.22.0
func (AutoPipeliner) ZRevRange
deprecated
added in
v9.22.0
func (c AutoPipeliner) ZRevRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
ZRevRange returns members in a sorted set within a range of indexes in reverse order.
Deprecated: Use ZRangeArgs with Rev option instead as of Redis 6.2.0.
func (AutoPipeliner) ZRevRangeByLex
deprecated
added in
v9.22.0
func (c AutoPipeliner) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRevRangeByLex returns members in a sorted set within a lexicographical range in reverse order.
Deprecated: Use ZRangeArgs with Rev and ByLex options instead as of Redis 6.2.0.
func (AutoPipeliner) ZRevRangeByScore
deprecated
added in
v9.22.0
func (c AutoPipeliner) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRevRangeByScore returns members in a sorted set within a range of scores in reverse order.
Deprecated: Use ZRangeArgs with Rev and ByScore options instead as of Redis 6.2.0.
func (AutoPipeliner) ZRevRangeByScoreWithScores ¶ added in v9.22.0
func (AutoPipeliner) ZRevRangeWithScores ¶ added in v9.22.0
func (c AutoPipeliner) ZRevRangeWithScores(ctx context.Context, key string, start, stop int64) *ZSliceCmd
ZRevRangeWithScores according to the Redis documentation, if member does not exist in the sorted set or key does not exist, it will return a redis.Nil error.
func (AutoPipeliner) ZRevRankWithScore ¶ added in v9.22.0
func (c AutoPipeliner) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
func (AutoPipeliner) ZUnion ¶ added in v9.22.0
func (c AutoPipeliner) ZUnion(ctx context.Context, store ZStore) *StringSliceCmd
func (AutoPipeliner) ZUnionStore ¶ added in v9.22.0
type BFInfoCmd ¶ added in v9.1.0
type BFInfoCmd struct {
// contains filtered or unexported fields
}
func NewBFInfoCmd ¶ added in v9.1.0
func (*BFInfoCmd) GetCmdType ¶ added in v9.18.0
func (cmd *BFInfoCmd) GetCmdType() CmdType
func (*BFInfoCmd) NoRetry ¶ added in v9.19.0
func (cmd *BFInfoCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*BFInfoCmd) SetFirstKeyPos ¶ added in v9.1.0
func (cmd *BFInfoCmd) SetFirstKeyPos(keyPos int8)
func (*BFInfoCmd) SetStepCount ¶ added in v9.18.0
func (cmd *BFInfoCmd) SetStepCount(stepCount int8)
type BFInsertOptions ¶ added in v9.1.0
type BFReserveOptions ¶ added in v9.1.0
type BitMapCmdable ¶ added in v9.2.0
type BitMapCmdable interface {
GetBit(ctx context.Context, key string, offset int64) *IntCmd
SetBit(ctx context.Context, key string, offset int64, value int) *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
BitOpDiff(ctx context.Context, destKey string, keys ...string) *IntCmd
BitOpDiff1(ctx context.Context, destKey string, keys ...string) *IntCmd
BitOpAndOr(ctx context.Context, destKey string, keys ...string) *IntCmd
BitOpOne(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 int8, start, end int64, span string) *IntCmd
BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
}
type BoolCmd ¶
type BoolCmd struct {
// contains filtered or unexported fields
}
func NewBoolCmd ¶
func NewBoolResult ¶
NewBoolResult returns a BoolCmd initialised with val and err for testing.
func (*BoolCmd) GetCmdType ¶ added in v9.18.0
func (cmd *BoolCmd) GetCmdType() CmdType
func (*BoolCmd) NoRetry ¶ added in v9.19.0
func (cmd *BoolCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*BoolCmd) SetFirstKeyPos ¶
func (cmd *BoolCmd) SetFirstKeyPos(keyPos int8)
func (*BoolCmd) SetStepCount ¶ added in v9.18.0
func (cmd *BoolCmd) SetStepCount(stepCount int8)
type BoolSliceCmd ¶
type BoolSliceCmd struct {
// contains filtered or unexported fields
}
func NewBoolSliceCmd ¶
func NewBoolSliceCmd(ctx context.Context, args ...interface{}) *BoolSliceCmd
func NewBoolSliceResult ¶
func NewBoolSliceResult(val []bool, err error) *BoolSliceCmd
NewBoolSliceResult returns a BoolSliceCmd initialised with val and err for testing.
func (*BoolSliceCmd) Clone ¶ added in v9.18.0
func (cmd *BoolSliceCmd) Clone() Cmder
func (*BoolSliceCmd) GetCmdType ¶ added in v9.18.0
func (cmd *BoolSliceCmd) GetCmdType() CmdType
func (*BoolSliceCmd) NoRetry ¶ added in v9.19.0
func (cmd *BoolSliceCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*BoolSliceCmd) Result ¶
func (cmd *BoolSliceCmd) Result() ([]bool, error)
func (*BoolSliceCmd) SetFirstKeyPos ¶
func (cmd *BoolSliceCmd) SetFirstKeyPos(keyPos int8)
func (*BoolSliceCmd) SetStepCount ¶ added in v9.18.0
func (cmd *BoolSliceCmd) SetStepCount(stepCount int8)
func (*BoolSliceCmd) SetVal ¶
func (cmd *BoolSliceCmd) SetVal(val []bool)
func (*BoolSliceCmd) String ¶
func (cmd *BoolSliceCmd) String() string
func (*BoolSliceCmd) Val ¶
func (cmd *BoolSliceCmd) Val() []bool
type CFInfoCmd ¶ added in v9.1.0
type CFInfoCmd struct {
// contains filtered or unexported fields
}
func NewCFInfoCmd ¶ added in v9.1.0
func (*CFInfoCmd) GetCmdType ¶ added in v9.18.0
func (cmd *CFInfoCmd) GetCmdType() CmdType
func (*CFInfoCmd) NoRetry ¶ added in v9.19.0
func (cmd *CFInfoCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*CFInfoCmd) SetFirstKeyPos ¶ added in v9.1.0
func (cmd *CFInfoCmd) SetFirstKeyPos(keyPos int8)
func (*CFInfoCmd) SetStepCount ¶ added in v9.18.0
func (cmd *CFInfoCmd) SetStepCount(stepCount int8)
type CFInsertOptions ¶ added in v9.1.0
type CFReserveOptions ¶ added in v9.1.0
type CMSInfoCmd ¶ added in v9.1.0
type CMSInfoCmd struct {
// contains filtered or unexported fields
}
func NewCMSInfoCmd ¶ added in v9.1.0
func NewCMSInfoCmd(ctx context.Context, args ...interface{}) *CMSInfoCmd
func (*CMSInfoCmd) Clone ¶ added in v9.18.0
func (cmd *CMSInfoCmd) Clone() Cmder
func (*CMSInfoCmd) GetCmdType ¶ added in v9.18.0
func (cmd *CMSInfoCmd) GetCmdType() CmdType
func (*CMSInfoCmd) NoRetry ¶ added in v9.19.0
func (cmd *CMSInfoCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*CMSInfoCmd) Result ¶ added in v9.1.0
func (cmd *CMSInfoCmd) Result() (CMSInfo, error)
func (*CMSInfoCmd) SetFirstKeyPos ¶ added in v9.1.0
func (cmd *CMSInfoCmd) SetFirstKeyPos(keyPos int8)
func (*CMSInfoCmd) SetStepCount ¶ added in v9.18.0
func (cmd *CMSInfoCmd) SetStepCount(stepCount int8)
func (*CMSInfoCmd) SetVal ¶ added in v9.1.0
func (cmd *CMSInfoCmd) SetVal(val CMSInfo)
func (*CMSInfoCmd) String ¶ added in v9.1.0
func (cmd *CMSInfoCmd) String() string
func (*CMSInfoCmd) Val ¶ added in v9.1.0
func (cmd *CMSInfoCmd) Val() CMSInfo
type CSCRefreshStats ¶ added in v9.23.0
type CSCRefreshStats struct {
Enqueued uint64
Dropped uint64
Refreshed uint64
// RefreshFailed counts refresh round trips that errored (a connection or
// protocol failure during the batch). Those keys stay evicted and a later read
// repopulates them, so a rising count means refresh is degrading to plain
// eviction. Counted per errored batch, not per key.
RefreshFailed uint64
// DemandFlushes counts collection windows flushed early because a reader
// missed a key still sitting in the window (vs flushed by the window timer or
// the size cap). High relative to total flushes means the demand trigger is
// doing its job — actively-read batches refresh in ~one RTT instead of
// waiting out the window.
DemandFlushes uint64
// Invalidations counts keys named in INCOMING invalidation pushes, tallied at
// the handler before dedup/batching. Deletions counts keys the cache actually
// processed for removal; under duplicate pushes Deletions < Invalidations
// because the batcher dedups (and, under an invalidation flood, the spill-cap
// full-Flush supersedes queued deletes wholesale — those count as invalidations
// but not deletions). So Invalidations - Deletions measures dedup + flood
// fallback, not dedup alone. DeletionsNoop counts applied deletes that matched
// no live entry, the direct duplicate-invalidation signature.
Invalidations uint64
Deletions uint64
DeletionsNoop uint64
}
CSCRefreshStats reports refresh-on-invalidate activity: keys queued, keys dropped because the backlog was full, and values actually republished.
Experimental: this API may change in a minor release.
type CSCStats ¶ added in v9.22.0
CSCStats reports cumulative client-side cache activity and current residency.
Experimental: this API may change in a minor release.
type CSCStrategy ¶ added in v9.22.0
type CSCStrategy int
CSCStrategy selects the client-side caching invalidation architecture. Set via Options.ClientSideCacheStrategy; fixed for the client's lifetime.
CSCStrategySharedTracking is currently the only implemented strategy; the type exists as an extension point for additional architectures (e.g. a BCAST sidecar) without a breaking API change.
Experimental: this API may change in a minor release.
const ( // pool connection runs plain CLIENT TRACKING ON and a background drainer applies // buffered invalidations. Portable (no BCAST), and matches the other Redis clients. CSCStrategySharedTracking CSCStrategy = iota )
type Cache ¶ added in v9.22.0
type Cache interface {
Get(ctx context.Context, cacheKey string) ([]byte, bool)
Reserve(cacheKey string, redisKeys []string) (token uint64, shouldFetch bool)
// FulfillOwned publishes a reserved value and records the connection that
// fetched it so the entry can be evicted if that connection loses tracking.
FulfillOwned(cacheKey string, token, ownerConnID uint64, value []byte) bool
Cancel(cacheKey string, token uint64) bool
DeleteByRedisKey(redisKey string) int
DeleteByCacheKey(cacheKey string) bool
// EvictByConn removes every entry fetched by connID.
EvictByConn(connID uint64) int
Flush() int
}
Cache is the thread-safe storage contract used by client-side caching.
All methods may be called concurrently. Cache keys and Redis keys are opaque strings and must be preserved exactly. Removing a reservation must wake any Get calls waiting for it.
Reserve must allow only one caller to fetch a missing key and return a token that is valid until FulfillOwned, Cancel, or an eviction removes that reservation. FulfillOwned and Cancel must modify only a reservation with the matching token. Get may wait for an in-progress reservation and must stop waiting when ctx is done.
Experimental: this API may change in a minor release.
type CacheConfig ¶ added in v9.22.0
type CacheConfig struct {
// MaxEntries limits the number of entries. Zero or negative means unlimited.
MaxEntries int
// MaxMemoryBytes limits estimated memory usage in bytes. Zero or negative means unlimited.
//
// If both MaxEntries and MaxMemoryBytes are unlimited, MaxEntries defaults to
// defaultCacheMaxEntries so the cache cannot grow without bound. The cache is
// sharded 16 ways (above small thresholds) and each shard enforces its 1/16
// share, so an entry larger than MaxMemoryBytes/16 is never admitted —
// size it to at least 16× your largest reply.
MaxMemoryBytes int64
// Sizer estimates memory usage per entry. If nil, a built-in approximation is used.
//
// Sizer may be invoked concurrently from multiple goroutines and must be
// thread-safe. It must return quickly and must not call back into the
// cache (Get, Set, Delete*, Flush, etc.): some call sites hold an internal
// shard lock, so re-entry can deadlock.
Sizer CacheSizer
// StaleTimeout is the duration after which an IN_PROGRESS placeholder is
// considered stale and eligible for takeover by a new Reserve call.
// If zero, defaults to defaultStaleTimeout (5s).
StaleTimeout time.Duration
// DrainInterval is the background-drainer period (default 5ms; zero uses the
// default): how often idle pool conns are swept for buffered "invalidate"
// frames, roughly bounding cache-hit staleness. Values below 1ms are clamped
// to 1ms.
DrainInterval time.Duration
// MaxStaleness caps how long a cached entry is served after it became valid,
// regardless of invalidation. It is a correctness
// BACKSTOP for lost invalidations or connection-lifecycle gaps ("Window 2"), not
// the primary freshness mechanism. Keep it well above the invalidation round-trip
// (e.g. seconds); per-entry refetch overhead scales ~1/MaxStaleness.
//
// Default: 0 (disabled).
MaxStaleness time.Duration
}
CacheConfig configures a local cache instance.
Experimental: this API may change in a minor release.
type CacheSizer ¶ added in v9.22.0
CacheSizer calculates estimated memory usage in bytes for a cache entry.
Experimental: this API may change in a minor release.
type ChannelOption ¶
type ChannelOption func(c *channel)
func WithChannelHealthCheckInterval ¶
func WithChannelHealthCheckInterval(d time.Duration) ChannelOption
WithChannelHealthCheckInterval specifies the health check interval. PubSub will ping Redis Server if it does not receive any messages within the interval. To disable health check, use zero interval.
The default is 3 seconds.
func WithChannelPingTimeout ¶ added in v9.21.0
func WithChannelPingTimeout(d time.Duration) ChannelOption
WithChannelPingTimeout specifies the timeout for the health-check ping.
The default is 5 seconds.
func WithChannelReconnectTimeout ¶ added in v9.21.0
func WithChannelReconnectTimeout(d time.Duration) ChannelOption
WithChannelReconnectTimeout specifies the timeout for reconnecting after a failed health-check ping.
The default is 10 seconds.
func WithChannelSendTimeout ¶
func WithChannelSendTimeout(d time.Duration) ChannelOption
WithChannelSendTimeout specifies the channel send timeout after which the message is dropped.
The default is 60 seconds.
func WithChannelSize ¶
func WithChannelSize(size int) ChannelOption
WithChannelSize specifies the Go chan size that is used to buffer incoming messages.
The default is 100 messages.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Redis client representing a pool of zero or more underlying connections. It's safe for concurrent use by multiple goroutines.
Client creates and frees connections automatically; it also maintains a free pool of idle connections. You can control the pool size with Config.PoolSize option.
Example ¶
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
err := rdb.Set(ctx, "key", "value", 0).Err()
if err != nil {
panic(err)
}
val, err := rdb.Get(ctx, "key").Result()
if err != nil {
panic(err)
}
fmt.Println("key", val)
val2, err := rdb.Get(ctx, "missing_key").Result()
if err == redis.Nil {
fmt.Println("missing_key does not exist")
} else if err != nil {
panic(err)
} else {
fmt.Println("missing_key", val2)
}
}
Output: key value missing_key does not exist
func NewClient ¶
NewClient returns a client to the Redis Server specified by Options. Passing nil Options will cause a panic.
Example ¶
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var ctx = context.Background()
func main() {
rdb := redis.NewClient(&redis.Options{
Addr: "localhost:6379", // use default Addr
Password: "", // no password set
DB: 0, // use default DB
})
pong, err := rdb.Ping(ctx).Result()
fmt.Println(pong, err)
}
Output: PONG <nil>
func NewFailoverClient ¶
func NewFailoverClient(failoverOpt *FailoverOptions) *Client
NewFailoverClient returns a Redis client that uses Redis Sentinel for automatic failover. It's safe for concurrent use by multiple goroutines. Passing nil FailoverOptions will cause a panic.
Example ¶
package main
import (
"context"
"github.com/redis/go-redis/v9"
)
var ctx = context.Background()
func main() {
// See https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel for instructions how to
// setup Redis Sentinel.
rdb := redis.NewFailoverClient(&redis.FailoverOptions{
MasterName: "master",
SentinelAddrs: []string{":26379"},
})
rdb.Ping(ctx)
}
Output:
func (Client) ACLCat ¶ added in v9.7.2
func (c Client) ACLCat(ctx context.Context) *StringSliceCmd
func (Client) ACLCatArgs ¶ added in v9.7.2
func (c Client) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
func (Client) ACLDelUser ¶ added in v9.7.2
func (Client) ACLGenPass ¶ added in v9.17.0
func (Client) ACLList ¶ added in v9.7.2
func (c Client) ACLList(ctx context.Context) *StringSliceCmd
func (Client) ACLLogReset ¶ added in v9.0.5
func (Client) ACLSetUser ¶ added in v9.7.2
func (Client) ACLUsers ¶ added in v9.17.0
func (c Client) ACLUsers(ctx context.Context) *StringSliceCmd
func (Client) ARCount ¶ added in v9.20.0
ARCount returns the number of non-empty elements in an array. Returns 0 if the key does not exist.
func (Client) ARDel ¶ added in v9.20.0
ARDel deletes elements at the specified indexes in an array. Returns the number of elements deleted.
func (Client) ARDelRange ¶ added in v9.20.0
ARDelRange deletes elements in one or more ranges. Returns the number of elements deleted.
func (Client) ARGet ¶ added in v9.20.0
ARGet gets the value at an index in an array. Returns redis.Nil if the key or index does not exist.
func (Client) ARGetRange ¶ added in v9.20.0
ARGetRange gets values in a range of indexes. Returns values in the range, with nil for unset indexes.
func (Client) ARGrep ¶ added in v9.20.0
func (c Client) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
ARGrep searches array elements in a range using textual predicates. Returns matching indexes only. Use ARGrepWithValues to also get the values.
func (Client) ARGrepWithValues ¶ added in v9.20.0
func (c Client) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
ARGrepWithValues searches array elements in a range using textual predicates. Returns matching indexes and their values as index-value pairs.
func (Client) ARInfo ¶ added in v9.20.0
func (c Client) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
ARInfo returns metadata about an array.
func (Client) ARInfoFull ¶ added in v9.20.0
func (c Client) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
ARInfoFull returns detailed metadata about an array including slice statistics.
func (Client) ARInsert ¶ added in v9.20.0
ARInsert inserts one or more values at consecutive indexes. Returns the last index where a value was inserted.
func (Client) ARLastItems ¶ added in v9.20.0
ARLastItems returns the most recently inserted elements. When rev is true, returns items in reverse order.
func (Client) ARLen ¶ added in v9.20.0
ARLen returns the length of an array (max index + 1). Returns 0 if the key does not exist.
func (Client) ARMGet ¶ added in v9.20.0
ARMGet gets values at multiple indexes in an array. Returns values at the specified indexes, with nil for unset indexes.
func (Client) ARMSet ¶ added in v9.20.0
ARMSet sets multiple index-value pairs in an array. Returns the number of new slots that were set (previously empty).
func (Client) ARNext ¶ added in v9.20.0
ARNext returns the next index ARINSERT would use. Returns 0 for missing keys or when no insert happened yet. Returns nil when the insertion cursor is exhausted / would overflow.
func (Client) AROpAnd ¶ added in v9.20.0
AROpAnd returns the bitwise AND of integer elements in a range.
func (Client) AROpMatch ¶ added in v9.20.0
AROpMatch returns the count of elements matching a target string in a range.
func (Client) AROpOr ¶ added in v9.20.0
AROpOr returns the bitwise OR of integer elements in a range.
func (Client) AROpXor ¶ added in v9.20.0
AROpXor returns the bitwise XOR of integer elements in a range.
func (Client) ARRing ¶ added in v9.20.0
ARRing inserts values into a ring buffer of specified size, wrapping and truncating as needed. Returns the last index where a value was inserted.
func (Client) ARScan ¶ added in v9.20.0
func (c Client) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
ARScan iterates existing elements in a range, returning index-value pairs.
func (Client) ARSeek ¶ added in v9.20.0
ARSeek sets the ARINSERT / ARRING cursor to a specific index. Returns 1 if the cursor was set, 0 if the key does not exist.
func (Client) ARSet ¶ added in v9.20.0
ARSet sets one or more contiguous values starting at an index in an array. Returns the number of new slots that were set (previously empty).
func (*Client) AsyncAutoPipeline ¶ added in v9.22.0
func (c *Client) AsyncAutoPipeline() (*AutoPipeliner, error)
AsyncAutoPipeline returns the deferred (async) autopipeliner: command calls return immediately and the result accessors (Val/Result/Err) block until the command has executed. Submit a window of commands, then read their results, to keep each pipeline deep and reach the highest throughput (measured locally over loopback: ~2-3M SET/sec; indicative).
By default, Options.AutoPipelineOptions is used if set, otherwise DefaultAutoPipelineOptions (ordered, MaxConcurrentBatches: 1) — a single goroutine's deferred commands execute in submit order. Use AsyncAutoPipelineWithOptions to override (and, for parallel batches, set Unordered). The instance is cached and shared; the first call's config wins. Close it (or the client) to release its goroutines.
It returns an error if the supplied config is invalid (e.g. MaxConcurrentBatches>1 without Unordered, or a negative size); on error no instance is cached.
EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) AsyncAutoPipelineWithOptions ¶ added in v9.22.0
func (c *Client) AsyncAutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
AsyncAutoPipelineWithOptions is AsyncAutoPipeline with an explicit config instead of Options.AutoPipelineOptions / the default. The instance is cached and shared; the first call's config wins.
EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) AutoPipeline ¶ added in v9.22.0
func (c *Client) AutoPipeline() (*AutoPipeliner, error)
AutoPipeline returns the blocking autopipeliner for this client: a drop-in replacement for the normal command surface where each command call (ap.Set, ap.Get, ...) blocks until executed, exactly like a plain client — but the engine batches concurrent callers' commands into pipelines, so throughput is far higher (measured locally over loopback: ~1M+ SET/sec vs ~100k; indicative, not a guarantee). Commands keep per-goroutine order.
By default, Options.AutoPipelineOptions is used if set, otherwise DefaultBlockingAutoPipelineOptions (a single ordered batch stream, which maximizes throughput and minimizes latency for the blocking face — see its doc). The instance is cached and shared; the first call's config wins and later calls return the same instance until it is closed. It must be closed (or close the client) to release its goroutines.
It returns an error if the supplied config is invalid (e.g. MaxConcurrentBatches>1 without Unordered, or a negative size); on error no instance is cached.
EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) AutoPipelineWithOptions ¶ added in v9.22.0
func (c *Client) AutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
AutoPipelineWithOptions is AutoPipeline with explicit options instead of Options.AutoPipelineOptions / the default. The instance is cached and shared; the first call's config wins.
EXPERIMENTAL: this API is subject to change, use with caution.
func (Client) BFAdd ¶ added in v9.1.0
BFAdd adds an item to a Bloom filter. For more information - https://redis.io/commands/bf.add/
func (Client) BFCard ¶ added in v9.1.0
BFCard returns the cardinality of a Bloom filter - number of items that were added to a Bloom filter and detected as unique (items that caused at least one bit to be set in at least one sub-filter). For more information - https://redis.io/commands/bf.card/
func (Client) BFExists ¶ added in v9.1.0
BFExists determines whether a given item was added to a Bloom filter. For more information - https://redis.io/commands/bf.exists/
func (Client) BFInfo ¶ added in v9.1.0
Returns information about a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (Client) BFInfoArg ¶ added in v9.1.0
BFInfoArg returns information about a specific option of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (Client) BFInfoCapacity ¶ added in v9.1.0
BFInfoCapacity returns information about the capacity of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (Client) BFInfoExpansion ¶ added in v9.1.0
BFInfoExpansion returns information about the expansion rate of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (Client) BFInfoFilters ¶ added in v9.1.0
BFInfoFilters returns information about the filters of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (Client) BFInfoItems ¶ added in v9.1.0
BFInfoItems returns information about the items of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (Client) BFInfoSize ¶ added in v9.1.0
BFInfoSize returns information about the size of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (Client) BFInsert ¶ added in v9.1.0
func (c Client) BFInsert(ctx context.Context, key string, options *BFInsertOptions, elements ...interface{}) *BoolSliceCmd
BFInsert inserts elements into a Bloom filter. This function also allows for specifying additional options such as: capacity, error rate, expansion rate, and non-scaling behavior. For more information - https://redis.io/commands/bf.insert/
func (Client) BFLoadChunk ¶ added in v9.1.0
func (c Client) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
BFLoadChunk restores a Bloom filter previously saved using BF.SCANDUMP. For more information - https://redis.io/commands/bf.loadchunk/
func (Client) BFMAdd ¶ added in v9.1.0
func (c Client) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
BFMAdd adds multiple elements to a Bloom filter. Returns an array of booleans indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/bf.madd/
func (Client) BFMExists ¶ added in v9.1.0
func (c Client) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
BFMExists check if multiple elements exist in a Bloom filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/bf.mexists/
func (Client) BFReserve ¶ added in v9.1.0
func (c Client) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
BFReserve creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. For more information - https://redis.io/commands/bf.reserve/
func (Client) BFReserveExpansion ¶ added in v9.1.0
func (c Client) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
BFReserveExpansion creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying an expansion rate for the filter. For more information - https://redis.io/commands/bf.reserve/
func (Client) BFReserveNonScaling ¶ added in v9.1.0
func (c Client) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
BFReserveNonScaling creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying that the filter should not scale. For more information - https://redis.io/commands/bf.reserve/
func (Client) BFReserveWithArgs ¶ added in v9.2.0
func (c Client) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
BFReserveWithArgs creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying additional options such as expansion rate and non-scaling behavior. For more information - https://redis.io/commands/bf.reserve/
func (Client) BFScanDump ¶ added in v9.1.0
func (c Client) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
Begins an incremental save of the Bloom filter. This command is useful for large Bloom filters that cannot fit into the DUMP and RESTORE model. For more information - https://redis.io/commands/bf.scandump/
func (Client) BLMoveM ¶ added in v9.22.0
func (c Client) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, timeout time.Duration, a LMoveMArgs) *StringSliceCmd
BLMoveM is the blocking variant of LMoveM (Redis 8.10+); timeout 0 blocks forever. Returns moved elements, or redis.Nil on timeout.
func (Client) BLPop ¶
Example ¶
package main
import (
"context"
"fmt"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
if err := rdb.RPush(ctx, "queue", "message").Err(); err != nil {
panic(err)
}
// use `rdb.BLPop(ctx, 0, "queue")` for infinite waiting time
result, err := rdb.BLPop(ctx, 1*time.Second, "queue").Result()
if err != nil {
panic(err)
}
fmt.Println(result[0], result[1])
}
Output: queue message
func (Client) BRPopLPush
deprecated
func (c Client) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmd
BRPopLPush pops an element from a list, pushes it to another list and returns it. Blocks until an element is available or timeout is reached.
Deprecated: Use BLMove with RIGHT and LEFT arguments instead as of Redis 6.2.0.
func (Client) BZMPop ¶ added in v9.0.3
func (c Client) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, keys ...string) *ZSliceWithKeyCmd
BZMPop is the blocking variant of ZMPOP. When any of the sorted sets contains elements, this command behaves exactly like ZMPOP. When all sorted sets are empty, Redis will block the connection until another client adds members to one of the keys or until the timeout elapses. A timeout of zero can be used to block indefinitely. example: client.BZMPop(ctx, 0,"max", 1, "set")
func (Client) BgRewriteAOF ¶
func (Client) BitField ¶
func (c Client) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
BitField accepts multiple values:
- BitField("set", "i1", "offset1", "value1","cmd2", "type2", "offset2", "value2")
- BitField([]string{"cmd1", "type1", "offset1", "value1","cmd2", "type2", "offset2", "value2"})
- BitField([]interface{}{"cmd1", "type1", "offset1", "value1","cmd2", "type2", "offset2", "value2"})
func (Client) BitFieldRO ¶ added in v9.3.1
func (c Client) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
BitFieldRO - Read-only variant of the BITFIELD command. It is like the original BITFIELD but only accepts GET subcommand and can safely be used in read-only replicas. - BitFieldRO(ctx, key, "<Encoding0>", "<Offset0>", "<Encoding1>","<Offset1>")
func (Client) BitOpAnd ¶
BitOpAnd creates a new bitmap in which users are members of all given bitmaps
func (Client) BitOpAndOr ¶ added in v9.12.0
BitOpAndOr creates a new bitmap in which users are members of bitmap X and also members of one or more of bitmaps Y1, Y2, … Introduced with Redis 8.2
func (Client) BitOpDiff ¶ added in v9.12.0
BitOpDiff creates a new bitmap in which users are members of bitmap X but not of any of bitmaps Y1, Y2, … Introduced with Redis 8.2
func (Client) BitOpDiff1 ¶ added in v9.12.0
BitOpDiff1 creates a new bitmap in which users are members of one or more of bitmaps Y1, Y2, … but not members of bitmap X Introduced with Redis 8.2
func (Client) BitOpNot ¶
BitOpNot creates a new bitmap in which users are not members of a given bitmap
func (Client) BitOpOne ¶ added in v9.12.0
BitOpOne creates a new bitmap in which users are members of exactly one of the given bitmaps Introduced with Redis 8.2
func (Client) BitOpOr ¶
BitOpOr creates a new bitmap in which users are member of at least one given bitmap
func (Client) BitOpXor ¶
BitOpXor creates a new bitmap in which users are the result of XORing all given bitmaps
func (Client) BitPos ¶
BitPos is an API before Redis version 7.0, cmd: bitpos key bit start end if you need the `byte | bit` parameter, please use `BitPosSpan`.
func (Client) BitPosSpan ¶ added in v9.0.3
func (c Client) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
BitPosSpan supports the `byte | bit` parameters in redis version 7.0, the bitpos command defaults to using byte type for the `start-end` range, which means it counts in bytes from start to end. you can set the value of "span" to determine the type of `start-end`. span = "bit", cmd: bitpos key bit start end bit span = "byte", cmd: bitpos key bit start end byte
func (Client) CFAdd ¶ added in v9.1.0
CFAdd adds an element to a Cuckoo filter. Returns true if the element was added to the filter or false if it already exists in the filter. For more information - https://redis.io/commands/cf.add/
func (Client) CFAddNX ¶ added in v9.1.0
CFAddNX adds an element to a Cuckoo filter only if it does not already exist in the filter. Returns true if the element was added to the filter or false if it already exists in the filter. For more information - https://redis.io/commands/cf.addnx/
func (Client) CFCount ¶ added in v9.1.0
CFCount returns an estimate of the number of times an element may be in a Cuckoo Filter. For more information - https://redis.io/commands/cf.count/
func (Client) CFDel ¶ added in v9.1.0
CFDel deletes an item once from the cuckoo filter. For more information - https://redis.io/commands/cf.del/
func (Client) CFExists ¶ added in v9.1.0
CFExists determines whether an item may exist in the Cuckoo Filter or not. For more information - https://redis.io/commands/cf.exists/
func (Client) CFInfo ¶ added in v9.1.0
CFInfo returns information about a Cuckoo filter. For more information - https://redis.io/commands/cf.info/
func (Client) CFInsert ¶ added in v9.1.0
func (c Client) CFInsert(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *BoolSliceCmd
CFInsert inserts elements into a Cuckoo filter. This function also allows for specifying additional options such as capacity, error rate, expansion rate, and non-scaling behavior. Returns an array of booleans indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/cf.insert/
func (Client) CFInsertNX ¶ added in v9.1.0
func (c Client) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *IntSliceCmd
CFInsertNX inserts elements into a Cuckoo filter only if they do not already exist in the filter. This function also allows for specifying additional options such as: capacity, error rate, expansion rate, and non-scaling behavior. Returns an array of integers indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/cf.insertnx/
func (Client) CFLoadChunk ¶ added in v9.1.0
func (c Client) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
CFLoadChunk restores a filter previously saved using SCANDUMP. For more information - https://redis.io/commands/cf.loadchunk/
func (Client) CFMExists ¶ added in v9.1.0
func (c Client) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
CFMExists check if multiple elements exist in a Cuckoo filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/cf.mexists/
func (Client) CFReserve ¶ added in v9.1.0
CFReserve creates an empty Cuckoo filter with the specified capacity. For more information - https://redis.io/commands/cf.reserve/
func (Client) CFReserveBucketSize ¶ added in v9.1.0
func (c Client) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
CFReserveBucketSize creates an empty Cuckoo filter with the specified capacity and bucket size. For more information - https://redis.io/commands/cf.reserve/
func (Client) CFReserveExpansion ¶ added in v9.1.0
func (c Client) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
CFReserveExpansion creates an empty Cuckoo filter with the specified capacity and expansion rate. For more information - https://redis.io/commands/cf.reserve/
func (Client) CFReserveMaxIterations ¶ added in v9.1.0
func (c Client) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
CFReserveMaxIterations creates an empty Cuckoo filter with the specified capacity and maximum number of iterations. For more information - https://redis.io/commands/cf.reserve/
func (Client) CFReserveWithArgs ¶ added in v9.2.0
func (c Client) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
CFReserveWithArgs creates an empty Cuckoo filter with the specified options. This function allows for specifying additional options such as bucket size and maximum number of iterations. For more information - https://redis.io/commands/cf.reserve/
func (Client) CFScanDump ¶ added in v9.1.0
func (c Client) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
CFScanDump begins an incremental save of the cuckoo filter. For more information - https://redis.io/commands/cf.scandump/
func (Client) CMSIncrBy ¶ added in v9.1.0
func (c Client) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
CMSIncrBy increments the count of one or more items in a Count-Min Sketch filter. Returns an array of integers representing the updated count of each item. For more information - https://redis.io/commands/cms.incrby/
func (Client) CMSInfo ¶ added in v9.1.0
func (c Client) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
CMSInfo returns information about a Count-Min Sketch filter. For more information - https://redis.io/commands/cms.info/
func (Client) CMSInitByDim ¶ added in v9.1.0
CMSInitByDim creates an empty Count-Min Sketch filter with the specified dimensions. For more information - https://redis.io/commands/cms.initbydim/
func (Client) CMSInitByProb ¶ added in v9.1.0
func (c Client) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
CMSInitByProb creates an empty Count-Min Sketch filter with the specified error rate and probability. For more information - https://redis.io/commands/cms.initbyprob/
func (Client) CMSMerge ¶ added in v9.1.0
CMSMerge merges multiple Count-Min Sketch filters into a single filter. The destination filter must not exist and will be created with the dimensions of the first source filter. The number of items in each source filter must be equal. Returns OK on success or an error if the filters could not be merged. For more information - https://redis.io/commands/cms.merge/
func (Client) CMSMergeWithWeight ¶ added in v9.1.0
func (c Client) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
CMSMergeWithWeight merges multiple Count-Min Sketch filters into a single filter with weights for each source filter. The destination filter must not exist and will be created with the dimensions of the first source filter. The number of items in each source filter must be equal. Returns OK on success or an error if the filters could not be merged. For more information - https://redis.io/commands/cms.merge/
func (Client) CMSQuery ¶ added in v9.1.0
func (c Client) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
CMSQuery returns count for item(s). For more information - https://redis.io/commands/cms.query/
func (*Client) CSCRefreshStats ¶ added in v9.23.0
func (c *Client) CSCRefreshStats() CSCRefreshStats
CSCRefreshStats returns the client's refresh-on-invalidate counters.
SCOPE on a SHARED cache: Invalidations/Deletions/DeletionsNoop are cache-global (read from the shared LocalCache, so every client attached to it reports the same totals), while Enqueued/Dropped/Refreshed/RefreshFailed/DemandFlushes come from THIS client's refresh queue. With a shared cache+processor the active refresh binding is the last-attached client's queue, so an earlier client can report every invalidation but ~zero refresh work — not a defect, that client genuinely is not the one refreshing. Treat a refresh/invalidation RATIO as meaningful only for a single-client cache or for the client holding the active binding; across a shared cache the two groups are different scopes.
Experimental: this API may change in a minor release.
func (*Client) CSCStats ¶ added in v9.22.0
CSCStats returns statistics for this client's client-side cache, read from the shared cache when its implementation exposes them (the built-in LocalCache does).
It returns a zero value when CSC is not configured or stats are unavailable.
Experimental: this API may change in a minor release.
func (Client) ClientGetName ¶
ClientGetName returns the name of the connection.
func (Client) ClientInfo ¶ added in v9.0.4
func (c Client) ClientInfo(ctx context.Context) *ClientInfoCmd
func (Client) ClientKill ¶
func (Client) ClientKillByFilter ¶
ClientKillByFilter is new style syntax, while the ClientKill is old
CLIENT KILL <option> [value] ... <option> [value]
func (Client) ClientList ¶
func (Client) ClientMaintNotifications ¶ added in v9.15.0
func (c Client) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
ClientMaintNotifications enables or disables maintenance notifications for maintenance upgrades. When enabled, the client will receive push notifications about Redis maintenance events.
func (Client) ClientPause ¶
func (Client) ClientTracking ¶ added in v9.22.0
func (c Client) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
ClientTracking enables or disables server-assisted client-side caching for the ONE connection that happens to serve this command. On a pooled client that connection is arbitrary, so this is only meaningful on a dedicated connection (see Client.Conn). When on is false, opt is ignored. Invalid option combinations are reported via the returned command's Err and nothing is sent to the server.
Must not be combined with the built-in client-side cache: on a client configured with Options.ClientSideCache or ClientSideCacheConfig this command is rejected, because changing a pool connection's tracking state would silently break the cache's invalidation.
func (Client) ClientTrackingOff ¶ added in v9.22.0
ClientTrackingOff disables tracking on the serving connection. See ClientTracking for the pooled-client and built-in-CSC caveats.
func (Client) ClientTrackingOn ¶ added in v9.22.0
func (c Client) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
ClientTrackingOn enables tracking on the serving connection. See ClientTracking for the pooled-client and built-in-CSC caveats.
func (Client) ClientUnblockWithError ¶
func (Client) ClientUnpause ¶
func (*Client) Close ¶
Close closes the client, stopping both cached autopipeliners (the blocking AutoPipeline instance and the async AsyncAutoPipeline instance, if created) before releasing the underlying resources, so their background flusher goroutines don't outlive the client. AutoPipeliner.Close is idempotent and safe to call here even if autopipelining was never used. A WithTimeout clone delegates CSC teardown to the canonical wrapper that owns the background drainer.
func (Client) ClusterAddSlots ¶
func (Client) ClusterAddSlotsRange ¶
func (Client) ClusterCountFailureReports ¶
func (Client) ClusterCountKeysInSlot ¶
func (Client) ClusterDelSlots ¶
func (Client) ClusterDelSlotsRange ¶
func (Client) ClusterFailover ¶
func (Client) ClusterForget ¶
func (Client) ClusterGetKeysInSlot ¶
func (c Client) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
func (Client) ClusterInfo ¶
func (Client) ClusterKeySlot ¶
func (Client) ClusterLinks ¶ added in v9.0.3
func (c Client) ClusterLinks(ctx context.Context) *ClusterLinksCmd
func (Client) ClusterMeet ¶
func (Client) ClusterMyID ¶ added in v9.8.0
func (Client) ClusterMyShardID ¶ added in v9.0.4
func (Client) ClusterNodes ¶
func (Client) ClusterReplicate ¶
func (Client) ClusterResetHard ¶
func (Client) ClusterResetSoft ¶
func (Client) ClusterSaveConfig ¶
func (Client) ClusterShards ¶ added in v9.0.3
func (c Client) ClusterShards(ctx context.Context) *ClusterShardsCmd
func (Client) ClusterSlaves
deprecated
func (c Client) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
ClusterSlaves lists the replica nodes of a master node.
Deprecated: Use ClusterReplicas instead as of Redis 5.0.0.
func (Client) ClusterSlots
deprecated
func (c Client) ClusterSlots(ctx context.Context) *ClusterSlotsCmd
ClusterSlots returns the mapping of cluster slots to nodes.
Deprecated: Use ClusterShards instead as of Redis 7.0.0.
func (Client) Command ¶
func (c Client) Command(ctx context.Context) *CommandsInfoCmd
func (Client) CommandGetKeys ¶ added in v9.0.3
func (c Client) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
func (Client) CommandGetKeysAndFlags ¶ added in v9.0.3
func (c Client) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
func (Client) CommandList ¶ added in v9.0.3
func (c Client) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
func (Client) ConfigGet ¶
func (c Client) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
func (Client) ConfigResetStat ¶
func (Client) ConfigRewrite ¶
func (*Client) Conn ¶
Conn returns a Conn that runs every command on a single connection borrowed from this client's pool. Close returns that connection to the pool, so any session state left on it (AUTH, SELECT, CLIENT SETNAME, CLIENT TRACKING, ...) is still there for the next pooled caller. Use EphemeralConn when the Conn changes session state.
func (Client) DelExArgs ¶ added in v9.17.0
DelExArgs Redis `DELEX key [IFEQ|IFNE|IFDEQ|IFDNE] match-value` command. Compare-and-delete with flexible conditions.
Returns the number of keys that were removed (0 or 1).
NOTE DelExArgs is still experimental it's signature and behaviour may change
func (Client) Digest ¶ added in v9.17.0
Digest returns the xxh3 hash (uint64) of the specified key's value.
The digest is a 64-bit xxh3 hash that can be used for optimistic locking with SetIFDEQ, SetIFDNE, and DelExArgs commands.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/digest/
NOTE Digest is still experimental it's signature and behaviour may change
func (Client) DoRaw ¶ added in v9.19.0
DoRaw executes a command and returns the raw RESP protocol bytes without parsing.
func (Client) DoRawWriteTo ¶ added in v9.19.0
func (c Client) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
DoRawWriteTo executes a command and streams raw RESP bytes directly to w without intermediate allocations.
func (*Client) EphemeralConn ¶ added in v9.23.0
EphemeralConn is Conn, except Close discards the underlying connection instead of returning it to the pool. Session state a Conn sets (AUTH, SELECT, CLIENT SETNAME, CLIENT TRACKING, RESET, ...) cannot be undone generically on release, so a connection that carried it must not go on to serve unrelated callers. The cost is one dial per EphemeralConn lifetime; Get still reuses an idle pooled connection.
func (Client) ExpireTime ¶ added in v9.0.3
func (c Client) ExpireTime(ctx context.Context, key string) *DurationCmd
ExpireTime returns the absolute expiration time of key as a Unix timestamp encoded in *DurationCmd (seconds since the epoch), not a remaining TTL. Convert with: time.Unix(int64(d/time.Second), 0). Use TTL/PTTL for remaining TTL.
func (Client) FCallRo ¶ added in v9.0.3
func (c Client) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
FCallRo this function simply calls FCallRO, Deprecated: to maintain convention FCallRO.
func (Client) FTAggregate ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTAggregateWithArgs ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTAliasAdd ¶ added in v9.5.4
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/)
func (Client) FTAliasDel ¶ added in v9.5.4
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/)
func (Client) FTAliasList ¶ added in v9.22.0
func (c Client) FTAliasList(ctx context.Context, index string) *StringSliceCmd
FTAliasList - Lists all aliases associated with an index. The 'index' parameter specifies the index whose aliases are listed; it must be the name of an index created with FT.CREATE, not an alias. The reply is an unordered collection of alias names, already deduplicated by the server; an index with no aliases yields an empty result, not an error. Available since Redis 8.10. For more information, please refer to the Redis documentation: [FT.ALIASLIST]: (https://redis.io/commands/ft.aliaslist/)
func (Client) FTAliasUpdate ¶ added in v9.5.4
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/)
func (Client) FTAlter ¶ added in v9.5.4
func (c Client) FTAlter(ctx context.Context, index string, skipInitialScan 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/)
func (Client) FTConfigGet
deprecated
added in
v9.5.4
func (c Client) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
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 FT.CONFIG GET documentation.
Deprecated: FTConfigGet is deprecated in Redis 8. All configuration will be done with the CONFIG GET command. For more information check Client.ConfigGet and CONFIG GET Documentation
func (Client) FTConfigSet
deprecated
added in
v9.5.4
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 FT.CONFIG SET documentation.
Deprecated: FTConfigSet is deprecated in Redis 8. All configuration will be done with the CONFIG SET command. For more information check Client.ConfigSet and CONFIG SET Documentation
func (Client) FTCreate ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTCursorDel ¶ added in v9.5.4
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/)
func (Client) FTCursorRead ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTDictAdd ¶ added in v9.5.4
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/)
func (Client) FTDictDel ¶ added in v9.5.4
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/)
func (Client) FTDictDump ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTDropIndex ¶ added in v9.5.4
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/)
func (Client) FTDropIndexWithArgs ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTExplain ¶ added in v9.5.4
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/)
func (Client) FTExplainCli ¶ added in v9.5.4
FTExplainCli - Returns the execution plan for a complex query. [Not Implemented] For more information, see https://redis.io/commands/ft.explaincli/
func (Client) FTExplainWithArgs ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTHybrid ¶ added in v9.17.0
func (c Client) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, vectorData Vector) *FTHybridCmd
FTHybrid - Executes a hybrid search combining full-text search and vector similarity The 'index' parameter specifies the index to search, 'searchExpr' is the search query, 'vectorField' is the name of the vector field, and 'vectorData' is the vector to search with. FTHybrid is still experimental, the command behaviour and signature may change
func (Client) FTHybridWithArgs ¶ added in v9.17.0
func (c Client) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
FTHybridWithArgs - Executes a hybrid search with advanced options FTHybridWithArgs is still experimental, the command behaviour and signature may change
Vector data is always sent through the PARAMS mechanism, because inline vector blobs are no longer supported by Redis. For every vector expression whose VectorParamName is empty, a unique name is generated (e.g. "__vector_param_0") and the corresponding blob is passed via PARAMS.
options.Params is never mutated: the command is built from a local copy that combines the caller-provided params with any generated vector parameters. This makes it safe to reuse the same *FTHybridOptions across multiple calls. Generated names are also reserved against all explicit VectorParamName values, so they never collide with explicit names (even those following the "__vector_param_N" pattern).
func (Client) FTInfo ¶ added in v9.5.4
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/)
func (Client) FTSearch ¶ added in v9.5.4
func (c Client) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
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 about [FT.SEARCH].
[FT.SEARCH]: (https://redis.io/commands/ft.search/)
func (Client) FTSearchWithArgs ¶ added in v9.5.4
func (c Client) 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 about [FT.SEARCH].
[FT.SEARCH]: (https://redis.io/commands/ft.search/)
func (Client) FTSpellCheck ¶ added in v9.5.4
func (c Client) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
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/)
func (Client) FTSpellCheckWithArgs ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTSynDump ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTSynUpdate ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTSynUpdateWithArgs ¶ added in v9.5.4
func (c Client) 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/)
func (Client) FTTagVals ¶ added in v9.5.4
func (c Client) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
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/)
func (Client) FT_List ¶ added in v9.5.4
func (c Client) FT_List(ctx context.Context) *StringSliceCmd
FT_List - Lists all the existing indexes in the database. For more information, please refer to the Redis documentation: [FT._LIST]: (https://redis.io/commands/ft._list/)
func (Client) FlushAllAsync ¶
func (Client) FlushDBAsync ¶
func (Client) FunctionDelete ¶ added in v9.0.3
func (Client) FunctionDump ¶ added in v9.0.3
func (Client) FunctionFlush ¶ added in v9.0.3
func (Client) FunctionFlushAsync ¶ added in v9.0.3
func (Client) FunctionKill ¶ added in v9.0.3
func (Client) FunctionList ¶ added in v9.0.3
func (c Client) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
func (Client) FunctionLoad ¶ added in v9.0.3
func (Client) FunctionLoadReplace ¶ added in v9.0.3
func (Client) FunctionRestore ¶ added in v9.0.3
func (Client) FunctionStats ¶ added in v9.0.3
func (c Client) FunctionStats(ctx context.Context) *FunctionStatsCmd
func (Client) GeoAdd ¶
func (c Client) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
func (Client) GeoHash ¶
func (c Client) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
func (Client) GeoRadius
deprecated
func (c Client) GeoRadius( ctx context.Context, key string, longitude, latitude float64, query *GeoRadiusQuery, ) *GeoLocationCmd
GeoRadius queries a geospatial index for members within a distance from a coordinate. This is a read-only variant that does not support Store or StoreDist options.
Deprecated: Use GeoSearch with BYRADIUS argument instead as of Redis 6.2.0.
func (Client) GeoRadiusByMember
deprecated
func (c Client) GeoRadiusByMember( ctx context.Context, key, member string, query *GeoRadiusQuery, ) *GeoLocationCmd
GeoRadiusByMember queries a geospatial index for members within a distance from a member. This is a read-only variant that does not support Store or StoreDist options.
Deprecated: Use GeoSearch with BYRADIUS and FROMMEMBER arguments instead as of Redis 6.2.0.
func (Client) GeoRadiusByMemberStore ¶
func (c Client) GeoRadiusByMemberStore( ctx context.Context, key, member string, query *GeoRadiusQuery, ) *IntCmd
GeoRadiusByMemberStore is a writing GEORADIUSBYMEMBER command.
func (Client) GeoRadiusStore ¶
func (c Client) GeoRadiusStore( ctx context.Context, key string, longitude, latitude float64, query *GeoRadiusQuery, ) *IntCmd
GeoRadiusStore is a writing GEORADIUS command.
func (Client) GeoSearch ¶
func (c Client) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
func (Client) GeoSearchLocation ¶
func (c Client) GeoSearchLocation( ctx context.Context, key string, q *GeoSearchLocationQuery, ) *GeoSearchLocationCmd
func (Client) GeoSearchStore ¶
func (c Client) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
func (Client) Get ¶
Get Redis `GET key` command. It returns redis.Nil error when key does not exist.
func (Client) GetEx ¶
GetEx An expiration of zero removes the TTL associated with the key (i.e. GETEX key persist). Requires Redis >= 6.2.0.
func (*Client) GetMaintNotificationsManager ¶ added in v9.15.0
func (c *Client) GetMaintNotificationsManager() *maintnotifications.Manager
GetMaintNotificationsManager returns the maintnotifications manager instance for monitoring and control. Returns nil if maintnotifications are not enabled.
func (*Client) GetPushNotificationHandler ¶ added in v9.15.0
func (c *Client) GetPushNotificationHandler(pushNotificationName string) push.NotificationHandler
GetPushNotificationHandler returns the handler for a specific push notification name. Returns nil if no handler is registered for the given name.
func (Client) GetToBuffer ¶ added in v9.21.0
func (c Client) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
GetToBuffer executes GET and reads the reply directly into buf, avoiding the intermediate string allocation that *StringCmd would produce. For values larger than the connection's read buffer, the payload is read straight from the socket into buf — effectively zero-copy on the receive path.
The returned *ZeroCopyStringCmd reports the number of bytes read via Val(), the populated slice via Bytes() (which is buf[:Val()]), and any error (including redis.Nil when the key does not exist) via Err(). If buf is too small to hold the value, Err() returns a "buffer too small" error.
Nothing is ever written past len(buf). When len(buf) >= value length + 2, the read takes a fast path that pulls the payload and the protocol's trailing CRLF in a single socket read, using the two bytes after the payload as scratch — size buffers with 2 spare bytes to opt in (see example/zerocopy-buffer).
This command opts out of automatic retries because partial data from a failed attempt would already be sitting in the caller's buffer.
func (Client) HExpire ¶ added in v9.5.4
func (c Client) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
HExpire - Sets the expiration time for specified fields in a hash in seconds. The command constructs an argument list starting with "HEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HEXPIRE Documentation.
func (Client) HExpireAt ¶ added in v9.5.4
func (c Client) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
HExpireAt - Sets the expiration time for specified fields in a hash to a UNIX timestamp in seconds. Takes a key, a UNIX timestamp, a struct of conditional flags, and a list of fields. The command sets absolute expiration times based on the UNIX timestamp provided. Available since Redis 7.4 CE. For more information refer to HExpireAt Documentation.
func (Client) HExpireAtWithArgs ¶ added in v9.5.4
func (c Client) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (Client) HExpireTime ¶ added in v9.5.4
func (c Client) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
HExpireTime - Retrieves the expiration time for specified fields in a hash as a UNIX timestamp in seconds. Requires a key and the fields themselves to fetch their expiration timestamps. This command returns the expiration times for each field or error/status codes for each field as specified. Available since Redis 7.4 CE. For more information refer to [HExpireTime Documentation].
[HExpireTime Documentation]: https://redis.io/commands/hexpiretime/ For more information - https://redis.io/commands/hexpiretime/
func (Client) HExpireWithArgs ¶ added in v9.5.4
func (c Client) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
HExpireWithArgs - Sets the expiration time for specified fields in a hash in seconds. It requires a key, an expiration duration, a struct with boolean flags for conditional expiration settings (NX, XX, GT, LT), and a list of fields. The command constructs an argument list starting with "HEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HEXPIRE Documentation.
func (Client) HGetAll ¶
func (c Client) HGetAll(ctx context.Context, key string) *MapStringStringCmd
HGetAll returns a map of all fields and values stored at key.
Returns an empty map when key does not exist.
Time complexity: O(N) where N is the size of the hash.
func (Client) HGetDel ¶ added in v9.8.0
func (c Client) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
func (Client) HGetEX ¶ added in v9.8.0
func (c Client) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
func (Client) HGetEXWithArgs ¶ added in v9.8.0
func (c Client) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
func (Client) HImportDiscard ¶ added in v9.22.0
HImportDiscard removes fieldsetName from the executing connection's session and from the client-side registry, stopping further automatic replay:
HIMPORT DISCARD fieldset_name
It returns 1 if the fieldset was registered on this client and is now removed, 0 otherwise (for names never registered through the managed API, the executing connection's session reply passes through unchanged). Pooled connections whose sessions still hold the fieldset replay the DISCARD before their next HIMPORT command, so a subsequent HImportSet fails with "no such fieldset" on every connection, exactly as on a single connection. Hashes already created through the fieldset are not affected.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (Client) HImportDiscardAll ¶ added in v9.22.0
HImportDiscardAll removes all fieldsets from the executing connection's session and clears the client-side registry:
HIMPORT DISCARDALL
It returns the number of fieldsets removed from the client-side registry (when none were registered, the executing connection's session count passes through). Other pooled connections whose sessions were prepared earlier replay HIMPORT DISCARDALL before their next HIMPORT command.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (Client) HImportPrepare ¶ added in v9.22.0
func (c Client) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
HImportPrepare registers an ordered list of hash field names under fieldsetName for use by subsequent HImportSet calls:
HIMPORT PREPARE fieldset_name field [field ...]
The server keeps the fieldset in the session of the connection that executed the command. On pooled clients (Client, Conn, Pipeline, Tx) the fieldset is also remembered client-side and the PREPARE is replayed lazily — at most once per connection session — on any pooled connection about to execute an HImportSet referencing it, so HImportSet works transparently across the pool. Preparing an existing fieldset name again silently replaces it.
ClusterClient and Ring override this method (see himport_cluster.go): the fieldset registers in a registry shared by every node/shard client and the PREPARE additionally fans out eagerly to all masters/shards.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (Client) HImportSet ¶ added in v9.22.0
func (c Client) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
HImportSet creates or fully replaces the hash at key using the field list registered under fieldsetName, pairing values positionally with the prepared fields:
HIMPORT SET key fieldset_name value [value ...]
The number of values must equal the fieldset's field count. The resulting key is a regular hash readable and writable by all hash commands. If the fieldset was registered through HImportPrepare on this client, it is prepared automatically on whichever pooled connection executes the command; otherwise the fieldset must have been prepared on the executing connection or the server replies "ERR no such fieldset".
"no such fieldset" never surfaces for a registered fieldset: a single-command HImportSet whose connection lost its session state (e.g. RESET) is transparently re-prepared and retried once — the failure also stales every other connection's prepared flag, so the retry re-prepares wherever it lands, and this recovery attempt is granted even when retries are disabled (MaxRetries -1). In pipelines the failed HImportSets — and only those — are re-prepared and re-issued once on the same connection (HIMPORT SET is a full replace, so the re-execution is idempotent and no other command of the batch runs again). Inside transactions the error does surface after EXEC — an executed transaction cannot be partially re-run — but the prepared flags are invalidated, so retrying the transaction succeeds.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (Client) HIncrByFloat ¶
func (Client) HMGet ¶
HMGet returns the values for the specified fields in the hash stored at key. It returns an interface{} to distinguish between empty string and nil value.
func (Client) HPExpire ¶ added in v9.5.4
func (c Client) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
HPExpire - Sets the expiration time for specified fields in a hash in milliseconds. Similar to HExpire, it accepts a key, an expiration duration in milliseconds, a struct with expiration condition flags, and a list of fields. The command modifies the standard time.Duration to milliseconds for the Redis command. Available since Redis 7.4 CE. For more information refer to HPEXPIRE Documentation.
func (Client) HPExpireAt ¶ added in v9.5.4
func (c Client) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
HPExpireAt - Sets the expiration time for specified fields in a hash to a UNIX timestamp in milliseconds. Similar to HExpireAt but for timestamps in milliseconds. It accepts the same parameters and adjusts the UNIX time to milliseconds. Available since Redis 7.4 CE. For more information refer to HExpireAt Documentation.
func (Client) HPExpireAtWithArgs ¶ added in v9.5.4
func (c Client) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (Client) HPExpireTime ¶ added in v9.5.4
func (c Client) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPExpireTime - Retrieves the expiration time for specified fields in a hash as a UNIX timestamp in milliseconds. Similar to HExpireTime, adjusted for timestamps in milliseconds. It requires the same parameters. Provides the expiration timestamp for each field in milliseconds. Available since Redis 7.4 CE. For more information refer to [HExpireTime Documentation].
[HExpireTime Documentation]: https://redis.io/commands/hexpiretime/ For more information - https://redis.io/commands/hexpiretime/
func (Client) HPExpireWithArgs ¶ added in v9.5.4
func (c Client) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
HPExpireWithArgs - Sets the expiration time for specified fields in a hash in milliseconds. It requires a key, an expiration duration, a struct with boolean flags for conditional expiration settings (NX, XX, GT, LT), and a list of fields. The command constructs an argument list starting with "HPEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HPEXPIRE Documentation.
func (Client) HPTTL ¶ added in v9.5.4
func (c Client) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPTTL - Retrieves the remaining time to live for specified fields in a hash in milliseconds. Similar to HTTL, but returns the TTL in milliseconds. It requires a key and the specified fields. This command provides the TTL in milliseconds for each field or returns error/status codes as needed. Available since Redis 7.4 CE. For more information refer to [HPTTL Documentation].
[HPTTL Documentation]: https://redis.io/commands/hpttl/ For more information - https://redis.io/commands/hpttl/
func (Client) HPersist ¶ added in v9.5.4
func (c Client) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPersist - Removes the expiration time from specified fields in a hash. Accepts a key and the fields themselves. This command ensures that each field specified will have its expiration removed if present. Available since Redis 7.4 CE. For more information refer to HPersist Documentation.
func (Client) HRandField ¶
func (c Client) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
HRandField redis-server version >= 6.2.0.
func (Client) HRandFieldWithValues ¶
func (c Client) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
HRandFieldWithValues redis-server version >= 6.2.0.
func (Client) HScanNoValues ¶ added in v9.5.4
func (Client) HSet ¶
HSet accepts values in following formats:
HSet(ctx, "myhash", "key1", "value1", "key2", "value2")
HSet(ctx, "myhash", []string{"key1", "value1", "key2", "value2"})
HSet(ctx, "myhash", map[string]interface{}{"key1": "value1", "key2": "value2"})
Playing struct With "redis" tag. type MyHash struct { Key1 string `redis:"key1"`; Key2 int `redis:"key2"` }
HSet(ctx, "myhash", MyHash{"value1", "value2"}) Warn: redis-server >= 4.0
For struct, can be a structure pointer type, we only parse the field whose tag is redis. if you don't want the field to be read, you can use the `redis:"-"` flag to ignore it, or you don't need to set the redis tag. For the type of structure field, we only support simple data types: string, int/uint(8,16,32,64), float(32,64), time.Time(to RFC3339Nano), time.Duration(to Nanoseconds ), if you are other more complex or custom data types, please implement the encoding.BinaryMarshaler interface.
Note that in older versions of Redis server(redis-server < 4.0), HSet only supports a single key-value pair. redis-docs: https://redis.io/commands/hset (Starting with Redis version 4.0.0: Accepts multiple field and value arguments.) If you are using a Struct type and the number of fields is greater than one, you will receive an error similar to "ERR wrong number of arguments", you can use HMSet as a substitute.
Example ¶
package main
import (
"context"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
// Set "redis" tag for hash key
type ExampleUser struct {
Name string `redis:"name"`
Age int `redis:"age"`
}
items := ExampleUser{"jane", 22}
err := rdb.HSet(ctx, "user:1", items).Err()
if err != nil {
panic(err)
}
}
Output:
func (Client) HSetEXWithArgs ¶ added in v9.8.0
func (Client) HTTL ¶ added in v9.5.4
func (c Client) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
HTTL - Retrieves the remaining time to live for specified fields in a hash in seconds. Requires a key and the fields themselves. It returns the TTL for each specified field. This command fetches the TTL in seconds for each field or returns error/status codes as appropriate. Available since Redis 7.4 CE. For more information refer to HTTL Documentation.
func (*Client) HotKeysGet ¶ added in v9.18.0
func (c *Client) HotKeysGet(ctx context.Context) *HotKeysCmd
HotKeysGet retrieves the results of the ongoing or last hotkeys collection session. This command is only available on standalone clients.
func (*Client) HotKeysReset ¶ added in v9.18.0
HotKeysReset discards the last hotkeys collection session results. Returns an error if tracking is currently active. This command is only available on standalone clients.
func (*Client) HotKeysStart ¶ added in v9.18.0
func (c *Client) HotKeysStart(ctx context.Context, args *HotKeysStartArgs) *StatusCmd
HotKeysStart starts collecting hotkeys data. At least one metric must be specified in args.Metrics. This command is only available on standalone clients.
func (*Client) HotKeysStop ¶ added in v9.18.0
HotKeysStop stops the ongoing hotkeys collection session. This command is only available on standalone clients.
func (Client) Incr ¶
Example ¶
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
result, err := rdb.Incr(ctx, "counter").Result()
if err != nil {
panic(err)
}
fmt.Println(result)
}
Output: 1
func (Client) IncrByFloat ¶
func (Client) IncrEXFloat ¶ added in v9.20.0
func (c Client) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
IncrEXFloat Redis `INCREX key [BYFLOAT amount] [LBOUND value] [UBOUND value] [SATURATE] [EX seconds | PX ms | EXAT ts | PXAT ts | PERSIST] [ENX]` command.
Available since Redis 8.8. For more information, see https://redis.io/commands/increx
func (Client) IncrEXInt ¶ added in v9.20.0
func (c Client) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
IncrEXInt Redis `INCREX key [BYINT amount] [LBOUND value] [UBOUND value] [SATURATE] [EX seconds | PX ms | EXAT ts | PXAT ts | PERSIST] [ENX]` command.
Atomically increments the integer value stored at key, optionally constraining the result to a range and applying expiration semantics. Returns the new value and the increment that was actually applied. When the increment would exceed LBOUND/UBOUND and SATURATE is not set, the key and TTL are left unchanged and the reply is [current_value, 0].
Available since Redis 8.8. For more information, see https://redis.io/commands/increx
func (Client) JSONArrAppend ¶ added in v9.3.0
func (c Client) 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 (Client) JSONArrIndex ¶ added in v9.3.0
func (c Client) 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
func (Client) JSONArrIndexWithArgs ¶ added in v9.3.0
func (c Client) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, value ...interface{}) *IntSliceCmd
JSONArrIndexWithArgs searches for the first occurrence of a JSON value in an array while allowing the start and stop options to be provided. For more information, see https://redis.io/commands/json.arrindex
func (Client) JSONArrInsert ¶ added in v9.3.0
func (c Client) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
JSONArrInsert inserts the JSON values into the array at the specified path before the index (shifts to the right). For more information, see https://redis.io/commands/json.arrinsert
func (Client) JSONArrLen ¶ added in v9.3.0
func (c Client) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
JSONArrLen reports the length of the JSON array at the specified path in the given key. For more information, see https://redis.io/commands/json.arrlen
func (Client) JSONArrPop ¶ added in v9.3.0
func (c Client) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
JSONArrPop removes and returns an element from the specified index in the array. For more information, see https://redis.io/commands/json.arrpop
func (Client) JSONArrTrim ¶ added in v9.3.0
func (c Client) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
JSONArrTrim trims an array to contain only the specified inclusive range of elements. For more information, see https://redis.io/commands/json.arrtrim
func (Client) JSONArrTrimWithArgs ¶ added in v9.3.0
func (c Client) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
JSONArrTrimWithArgs trims an array to contain only the specified inclusive range of elements. For more information, see https://redis.io/commands/json.arrtrim
func (Client) JSONClear ¶ added in v9.3.0
JSONClear clears container values (arrays/objects) and sets numeric values to 0. For more information, see https://redis.io/commands/json.clear
func (Client) JSONDebugMemory ¶ added in v9.3.0
JSONDebugMemory reports a value's memory usage in bytes (unimplemented) For more information, see https://redis.io/commands/json.debug-memory
func (Client) JSONDel ¶ added in v9.3.0
JSONDel deletes a value. For more information, see https://redis.io/commands/json.del
func (Client) JSONForget ¶ added in v9.3.0
JSONForget deletes a value. For more information, see https://redis.io/commands/json.forget
func (Client) JSONGet ¶ added in v9.3.0
JSONGet returns the value at path in JSON serialized form. JSON.GET returns an array of strings. This function parses out the wrapping array but leaves the internal strings unprocessed by default (see Val()) For more information - https://redis.io/commands/json.get/
func (Client) JSONGetWithArgs ¶ added in v9.3.0
func (c Client) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
JSONGetWithArgs - Retrieves the value of a key from a JSON document. This function also allows for specifying additional options such as: Indention, NewLine and Space For more information - https://redis.io/commands/json.get/
func (Client) JSONMGet ¶ added in v9.3.0
func (c Client) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
JSONMGet returns the values at the specified path from multiple key arguments. Note - the arguments are reversed when compared with `JSON.MGET` as we want to follow the pattern of having the last argument be variable. For more information, see https://redis.io/commands/json.mget
func (Client) JSONMSetArgs ¶ added in v9.3.0
func (c Client) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
JSONMSetArgs sets or updates one or more JSON values according to the specified key-path-value triplets. For more information, see https://redis.io/commands/json.mset
func (Client) JSONMerge ¶ added in v9.3.0
JSONMerge merges a given JSON value into matching paths. For more information, see https://redis.io/commands/json.merge
func (Client) JSONNumIncrBy ¶ added in v9.3.0
JSONNumIncrBy increments the number value stored at the specified path by the provided number. For more information, see https://redis.io/docs/latest/commands/json.numincrby/
func (Client) JSONObjKeys ¶ added in v9.3.0
JSONObjKeys returns the keys in the object that's referenced by the specified path. For more information, see https://redis.io/commands/json.objkeys
func (Client) JSONObjLen ¶ added in v9.3.0
func (c Client) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONObjLen reports the number of keys in the JSON object at the specified path in the given key. For more information, see https://redis.io/commands/json.objlen
func (Client) JSONSet ¶ added in v9.3.0
JSONSet sets the JSON value at the given path in the given key. The value must be something that can be marshaled to JSON (using encoding/JSON) unless the argument is a string or a []byte when we assume that it can be passed directly as JSON. For more information, see https://redis.io/commands/json.set
func (Client) JSONSetMode ¶ added in v9.3.0
func (c Client) 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 (Client) JSONSetWithArgs ¶ added in v9.20.0
func (c Client) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, options *JSONSetArgsOptions) *StatusCmd
JSONSetWithArgs sets the JSON value at the given path in the given key with optional arguments for setting mode (NX/XX) and the FPHA (Floating-Point Homogeneous Array) type used for storing FP arrays. 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 (Client) JSONStrAppend ¶ added in v9.3.0
func (c Client) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
JSONStrAppend appends the JSON-string values to the string at the specified path. For more information, see https://redis.io/commands/json.strappend
func (Client) JSONStrLen ¶ added in v9.3.0
func (c Client) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONStrLen reports the length of the JSON String at the specified path in the given key. For more information, see https://redis.io/commands/json.strlen
func (Client) JSONToggle ¶ added in v9.3.0
func (c Client) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONToggle toggles a Boolean value stored at the specified path. For more information, see https://redis.io/commands/json.toggle
func (Client) JSONType ¶ added in v9.3.0
func (c Client) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
JSONType reports the type of JSON value at the specified path. For more information, see https://redis.io/commands/json.type
func (Client) LInsertAfter ¶
func (Client) LInsertBefore ¶
func (Client) LMPop ¶ added in v9.0.3
func (c Client) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
LMPop Pops one or more elements from the first non-empty list key from the list of provided key names. direction: left or right, count: > 0 example: client.LMPop(ctx, "left", 3, "key1", "key2")
func (Client) LMoveM ¶ added in v9.22.0
func (c Client) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
LMoveM atomically moves multiple elements between lists (Redis 8.10+). srcpos/destpos are "LEFT" or "RIGHT". Returns moved elements, or redis.Nil if none.
func (Client) LPopCount ¶
func (c Client) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
func (Client) LRange ¶
func (c Client) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
func (Client) Latency ¶ added in v9.17.0
func (c Client) Latency(ctx context.Context) *LatencyCmd
func (Client) LatencyReset ¶ added in v9.17.0
func (Client) MSet ¶
MSet is like Set but accepts multiple values:
- MSet("key1", "value1", "key2", "value2")
- MSet([]string{"key1", "value1", "key2", "value2"})
- MSet(map[string]interface{}{"key1": "value1", "key2": "value2"})
- MSet(struct), For struct types, see HSet description.
func (Client) MSetEX ¶ added in v9.17.0
func (c Client) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
MSetEX sets the given keys to their respective values. This command is an extension of the MSETNX that adds expiration and XX options. Available since Redis 8.4 Important: When this method is used with Cluster clients, all keys must be in the same hash slot, otherwise CROSSSLOT error will be returned. For more information, see https://redis.io/commands/msetex
func (Client) MSetNX ¶
MSetNX is like SetNX but accepts multiple values:
- MSetNX("key1", "value1", "key2", "value2")
- MSetNX([]string{"key1", "value1", "key2", "value2"})
- MSetNX(map[string]interface{}{"key1": "value1", "key2": "value2"})
- MSetNX(struct), For struct types, see HSet description.
func (Client) MemoryUsage ¶
func (Client) ModuleLoadex ¶ added in v9.0.4
func (c Client) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
ModuleLoadex Redis `MODULE LOADEX path [CONFIG name value [CONFIG name value ...]] [ARGS args [args ...]]` command.
func (Client) Monitor ¶ added in v9.3.1
func (c Client) Monitor(ctx context.Context, ch chan string) *MonitorCmd
Monitor - represents a Redis MONITOR command, allowing the user to capture and process all commands sent to a Redis server. This mimics the behavior of MONITOR in the redis-cli.
Notes: - Using MONITOR blocks the connection to the server for itself. It needs a dedicated connection - The user should create a channel of type string - This runs concurrently in the background. Trigger via the Start and Stop functions See further: Redis MONITOR command: https://redis.io/commands/monitor
func (*Client) NewAggregateBuilder ¶ added in v9.12.0
func (c *Client) NewAggregateBuilder(ctx context.Context, index, query string) *AggregateBuilder
NewAggregateBuilder creates a new AggregateBuilder for FT.AGGREGATE commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewAliasBuilder ¶ added in v9.12.0
func (c *Client) NewAliasBuilder(ctx context.Context, alias string) *AliasBuilder
NewAliasBuilder creates a new AliasBuilder for FT.ALIAS* commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewCreateIndexBuilder ¶ added in v9.12.0
func (c *Client) NewCreateIndexBuilder(ctx context.Context, index string) *CreateIndexBuilder
NewCreateIndexBuilder creates a new CreateIndexBuilder for FT.CREATE commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewCursorBuilder ¶ added in v9.12.0
NewCursorBuilder creates a new CursorBuilder for FT.CURSOR* commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewDictBuilder ¶ added in v9.12.0
func (c *Client) NewDictBuilder(ctx context.Context, dict string) *DictBuilder
NewDictBuilder creates a new DictBuilder for FT.DICT* commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewDropIndexBuilder ¶ added in v9.12.0
func (c *Client) NewDropIndexBuilder(ctx context.Context, index string) *DropIndexBuilder
NewDropIndexBuilder creates a new DropIndexBuilder for FT.DROPINDEX commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewExplainBuilder ¶ added in v9.12.0
func (c *Client) NewExplainBuilder(ctx context.Context, index, query string) *ExplainBuilder
NewExplainBuilder creates a new ExplainBuilder for FT.EXPLAIN commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewSearchBuilder ¶ added in v9.12.0
func (c *Client) NewSearchBuilder(ctx context.Context, index, query string) *SearchBuilder
NewSearchBuilder creates a new SearchBuilder for FT.SEARCH commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewSearchInfoBuilder ¶ added in v9.12.0
func (c *Client) NewSearchInfoBuilder(ctx context.Context, index string) *FTInfoBuilder
NewSearchInfoBuilder creates a new FTInfoBuilder for FT.INFO commands.
func (*Client) NewSpellCheckBuilder ¶ added in v9.12.0
func (c *Client) NewSpellCheckBuilder(ctx context.Context, index, query string) *SpellCheckBuilder
NewSpellCheckBuilder creates a new SpellCheckBuilder for FT.SPELLCHECK commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewSynUpdateBuilder ¶ added in v9.12.0
func (c *Client) NewSynUpdateBuilder(ctx context.Context, index string, groupId interface{}) *SynUpdateBuilder
NewSynUpdateBuilder creates a new SynUpdateBuilder for FT.SYNUPDATE commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NewTagValsBuilder ¶ added in v9.12.0
func (c *Client) NewTagValsBuilder(ctx context.Context, index, field string) *TagValsBuilder
NewTagValsBuilder creates a new TagValsBuilder for FT.TAGVALS commands. EXPERIMENTAL: this API is subject to change, use with caution.
func (*Client) NodeAddress ¶ added in v9.18.0
NodeAddress returns the address of the Redis node as reported by the server. For cluster clients, this is the endpoint from CLUSTER SLOTS before any transformation (e.g., loopback replacement). For standalone clients, this defaults to Addr.
This is useful for matching the source field in maintenance notifications (e.g. SMIGRATED).
func (Client) ObjectEncoding ¶
func (Client) ObjectFreq ¶ added in v9.5.0
func (Client) ObjectIdleTime ¶
func (c Client) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
func (Client) ObjectRefCount ¶
func (*Client) Options ¶
Options returns read-only *Options that were used to create the client. Any alteration of the returned *Options may result in undefined behaviour.
func (Client) PExpireTime ¶ added in v9.0.3
func (c Client) PExpireTime(ctx context.Context, key string) *DurationCmd
PExpireTime returns the absolute expiration time of key as a Unix timestamp encoded in *DurationCmd (milliseconds since the epoch), not a remaining TTL. Convert with: time.UnixMilli(int64(d/time.Millisecond)). Use TTL/PTTL for remaining TTL.
func (*Client) PSubscribe ¶
PSubscribe subscribes the client to the given patterns. Patterns can be omitted to create empty subscription.
func (*Client) Pipeline ¶
Example ¶
package main
import (
"context"
"fmt"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
pipe := rdb.Pipeline()
incr := pipe.Incr(ctx, "pipeline_counter")
pipe.Expire(ctx, "pipeline_counter", time.Hour)
// Execute
//
// INCR pipeline_counter
// EXPIRE pipeline_counts 3600
//
// using one rdb-server roundtrip.
_, err := pipe.Exec(ctx)
fmt.Println(incr.Val(), err)
}
Output: 1 <nil>
func (*Client) Pipelined ¶
Example ¶
package main
import (
"context"
"fmt"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
var incr *redis.IntCmd
_, err := rdb.Pipelined(ctx, func(pipe redis.Pipeliner) error {
incr = pipe.Incr(ctx, "pipelined_counter")
pipe.Expire(ctx, "pipelined_counter", time.Hour)
return nil
})
fmt.Println(incr.Val(), err)
}
Output: 1 <nil>
func (Client) PubSubChannels ¶
func (c Client) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
func (Client) PubSubNumPat ¶
func (Client) PubSubNumSub ¶
func (c Client) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
func (Client) PubSubShardChannels ¶
func (c Client) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
func (Client) PubSubShardNumSub ¶
func (c Client) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
func (Client) RPopCount ¶
func (c Client) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
func (Client) RPopLPush
deprecated
RPopLPush atomically returns and removes the last element of the source list, and pushes the element as the first element of the destination list.
Deprecated: Use LMove with RIGHT and LEFT arguments instead as of Redis 6.2.0.
func (*Client) RegisterPushNotificationHandler ¶ added in v9.15.0
func (c *Client) RegisterPushNotificationHandler(pushNotificationName string, handler push.NotificationHandler, protected bool) error
RegisterPushNotificationHandler registers a handler for a specific push notification name. Returns an error if a handler is already registered for this push notification name. If protected is true, the handler cannot be unregistered.
func (Client) ReplicaOf ¶ added in v9.19.0
ReplicaOf sets a Redis server as a replica of another, or promotes it to being a master.
func (Client) RestoreReplace ¶
func (Client) SAdd ¶
Returns the number of elements that were added to the set, not including all the elements already present in the set.
For more information about the command please refer to [SADD].
func (Client) SCard ¶
Returns the set cardinality (number of elements) of the set stored at key. Returns 0 if key does not exist.
For more information about the command please refer to [SCARD].
[SCARD]: (https://redis.io/docs/latest/commands/scard/)
func (Client) SDiff ¶
func (c Client) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the difference between the first set and all the successive sets. Keys that do not exist are considered to be empty sets.
For more information about the command please refer to [SDIFF].
[SDIFF]: (https://redis.io/docs/latest/commands/sdiff/)
func (Client) SDiffCard ¶ added in v9.22.0
func (c Client) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
Returns the cardinality of the difference of the first set and the rest. Missing keys are treated as empty sets.
For more information about the command please refer to [SDIFFCARD].
[SDIFFCARD]: (https://redis.io/docs/latest/commands/sdiffcard/)
func (Client) SDiffStore ¶
Stores the members of the set resulting from the difference between the first set and all the successive sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SDIFFSTORE].
[SDIFFSTORE]: (https://redis.io/docs/latest/commands/sdiffstore/)
func (Client) SInter ¶
func (c Client) SInter(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the intersection of all the given sets. Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty.
For more information about the command please refer to [SINTER].
[SINTER]: (https://redis.io/docs/latest/commands/sinter/)
func (Client) SInterCard ¶
Returns the cardinality of the set resulting from the intersection of all the given sets. Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty.
The limit parameter sets an upper bound on the number of results returned. If limit is 0, no limit is applied.
For more information about the command please refer to [SINTERCARD].
[SINTERCARD]: (https://redis.io/docs/latest/commands/sintercard/)
func (Client) SInterStore ¶
Stores the members of the set resulting from the intersection of all the given sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SINTERSTORE].
[SINTERSTORE]: (https://redis.io/docs/latest/commands/sinterstore/)
func (Client) SIsMember ¶
Returns if member is a member of the set stored at key. Returns true if the element is a member of the set, false if it is not a member or if key does not exist.
For more information about the command please refer to [SISMEMBER].
[SISMEMBER]: (https://redis.io/docs/latest/commands/sismember/)
func (Client) SMIsMember ¶
func (c Client) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
Returns whether each member is a member of the set stored at key. For each member, returns true if the element is a member of the set, false if it is not a member or if key does not exist.
For more information about the command please refer to [SMISMEMBER].
[SMISMEMBER]: (https://redis.io/docs/latest/commands/smismember/)
func (Client) SMembers ¶
func (c Client) SMembers(ctx context.Context, key string) *StringSliceCmd
Returns all the members of the set value stored at key. Returns an empty slice if key does not exist.
For more information about the command please refer to [SMEMBERS].
[SMEMBERS]: (https://redis.io/docs/latest/commands/smembers/)
func (Client) SMembersMap ¶
func (c Client) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
Returns all the members of the set value stored at key as a map. Returns an empty map if key does not exist.
For more information about the command please refer to [SMEMBERS].
[SMEMBERS]: (https://redis.io/docs/latest/commands/smembers/)
func (Client) SMove ¶
Moves member from the set at source to the set at destination. This operation is atomic. In every given moment the element will appear to be a member of source or destination for other clients.
For more information about the command please refer to [SMOVE].
[SMOVE]: (https://redis.io/docs/latest/commands/smove/)
func (Client) SPop ¶
Removes and returns one or more random members from the set value stored at key. This version returns a single random member.
For more information about the command please refer to [SPOP].
func (Client) SPopN ¶
func (c Client) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
Removes and returns one or more random members from the set value stored at key. This version returns up to count random members.
For more information about the command please refer to [SPOP].
func (Client) SRandMember ¶
Returns a random member from the set value stored at key. This version returns a single random member without removing it.
For more information about the command please refer to [SRANDMEMBER].
[SRANDMEMBER]: (https://redis.io/docs/latest/commands/srandmember/)
func (Client) SRandMemberN ¶
func (c Client) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
Returns an array of random members from the set value stored at key. This version returns up to count random members without removing them. When called with a positive count, returns distinct elements. When called with a negative count, allows for repeated elements.
For more information about the command please refer to [SRANDMEMBER].
[SRANDMEMBER]: (https://redis.io/docs/latest/commands/srandmember/)
func (Client) SRem ¶
Removes the specified members from the set stored at key. Specified members that are not a member of this set are ignored. If key does not exist, it is treated as an empty set and this command returns 0.
For more information about the command please refer to [SREM].
func (Client) SScan ¶
func (c Client) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
Incrementally iterates the set elements stored at key. This is a cursor-based iterator that allows scanning large sets efficiently.
Parameters:
- cursor: The cursor value for the iteration (use 0 to start a new scan)
- match: Optional pattern to match elements (empty string means no pattern)
- count: Optional hint about how many elements to return per iteration
For more information about the command please refer to [SSCAN].
[SSCAN]: (https://redis.io/docs/latest/commands/sscan/)
func (*Client) SSubscribe ¶
SSubscribe Subscribes the client to the specified shard channels. Channels can be omitted to create empty subscription.
func (Client) SUnion ¶
func (c Client) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the union of all the given sets. Keys that do not exist are considered to be empty sets.
For more information about the command please refer to [SUNION].
[SUNION]: (https://redis.io/docs/latest/commands/sunion/)
func (Client) SUnionCard ¶ added in v9.22.0
func (c Client) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
Returns the cardinality of the union of all the given sets. Missing keys are treated as empty sets.
For more information about the command please refer to [SUNIONCARD].
[SUNIONCARD]: (https://redis.io/docs/latest/commands/sunioncard/)
func (Client) SUnionStore ¶
Stores the members of the set resulting from the union of all the given sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SUNIONSTORE].
[SUNIONSTORE]: (https://redis.io/docs/latest/commands/sunionstore/)
func (Client) Scan ¶
Example ¶
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
rdb.FlushDB(ctx)
for i := 0; i < 33; i++ {
err := rdb.Set(ctx, fmt.Sprintf("key%d", i), "value", 0).Err()
if err != nil {
panic(err)
}
}
var cursor uint64
var n int
for {
var keys []string
var err error
keys, cursor, err = rdb.Scan(ctx, cursor, "key*", 10).Result()
if err != nil {
panic(err)
}
n += len(keys)
if cursor == 0 {
break
}
}
fmt.Printf("found %d keys\n", n)
}
Output: found 33 keys
func (Client) ScanType ¶
func (c Client) ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
Example ¶
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
rdb.FlushDB(ctx)
for i := 0; i < 33; i++ {
err := rdb.Set(ctx, fmt.Sprintf("key%d", i), "value", 0).Err()
if err != nil {
panic(err)
}
}
var cursor uint64
var n int
for {
var keys []string
var err error
keys, cursor, err = rdb.ScanType(ctx, cursor, "key*", 10, "string").Result()
if err != nil {
panic(err)
}
n += len(keys)
if cursor == 0 {
break
}
}
fmt.Printf("found %d keys\n", n)
}
Output: found 33 keys
Example (HashType) ¶
ExampleClient_ScanType_hashType uses the keyType "hash".
package main
import (
"context"
"fmt"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
rdb.FlushDB(ctx)
for i := 0; i < 33; i++ {
err := rdb.HSet(context.TODO(), fmt.Sprintf("key%d", i), "value", "foo").Err()
if err != nil {
panic(err)
}
}
var allKeys []string
var cursor uint64
var err error
for {
var keysFromScan []string
keysFromScan, cursor, err = rdb.ScanType(context.TODO(), cursor, "key*", 10, "hash").Result()
if err != nil {
panic(err)
}
allKeys = append(allKeys, keysFromScan...)
if cursor == 0 {
break
}
}
fmt.Printf("%d keys ready for use", len(allKeys))
}
Output: 33 keys ready for use
func (Client) ScriptExists ¶
func (c Client) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
func (Client) ScriptFlush ¶
func (Client) ScriptKill ¶
func (Client) ScriptLoad ¶
func (Client) Set ¶
func (c Client) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
Set Redis `SET key value [expiration]` command. Use expiration for `SETEx`-like behavior.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
Example ¶
package main
import (
"context"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
// Last argument is expiration. Zero means the key has no
// expiration time.
err := rdb.Set(ctx, "key", "value", 0).Err()
if err != nil {
panic(err)
}
// key2 will expire in an hour.
err = rdb.Set(ctx, "key2", "value", time.Hour).Err()
if err != nil {
panic(err)
}
}
Output:
func (Client) SetArgs ¶
SetArgs supports all the options that the SET command supports. It is the alternative to the Set function when you want to have more control over the options.
func (Client) SetEx
deprecated
func (c Client) SetEx(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
SetEx sets the value and expiration of a key.
Deprecated: Use Set with expiration instead as of Redis 2.6.12.
Example ¶
package main
import (
"context"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
err := rdb.SetEx(ctx, "key", "value", time.Hour).Err()
if err != nil {
panic(err)
}
}
Output:
func (Client) SetFromBuffer ¶ added in v9.21.0
SetFromBuffer executes SET writing the value directly from buf. For values larger than the connection's write buffer, bufio.Writer.Write flushes its internal buffer (containing the RESP header) and then writes buf straight to the socket — effectively zero-copy on the send path.
Expiration is not supported; use Expire separately if a TTL is required.
Note: SetFromBuffer is exposed for API symmetry with GetToBuffer and is functionally equivalent to Set(ctx, key, buf, 0) — both dispatch to the same []byte case in the RESP writer and produce identical bytes on the wire. The zero-copy property on the send path comes from bufio.Writer.Write bypassing its internal buffer for large payloads, which Set([]byte) gets automatically. Prefer SetFromBuffer in code that also uses GetToBuffer so the buffer-based pattern reads coherently; otherwise Set(ctx, key, buf, 0) is equally efficient.
func (Client) SetIFDEQ ¶ added in v9.17.0
func (c Client) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StatusCmd
SetIFDEQ sets the value only if the current value's digest equals matchDigest.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns "OK" on success. Returns redis.Nil if the digest doesn't match (value was modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFNEQ is still experimental it's signature and behaviour may change
func (Client) SetIFDEQGet ¶ added in v9.17.0
func (c Client) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StringCmd
SetIFDEQGet sets the value only if the current value's digest equals matchDigest, and returns the previous value.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns the previous value on success. Returns redis.Nil if the digest doesn't match (value was modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFNEQGet is still experimental it's signature and behaviour may change
func (Client) SetIFDNE ¶ added in v9.17.0
func (c Client) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StatusCmd
SetIFDNE sets the value only if the current value's digest does NOT equal matchDigest.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns "OK" on success (digest didn't match, value was set). Returns redis.Nil if the digest matches (value was not modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFDNE is still experimental it's signature and behaviour may change
func (Client) SetIFDNEGet ¶ added in v9.17.0
func (c Client) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StringCmd
SetIFDNEGet sets the value only if the current value's digest does NOT equal matchDigest, and returns the previous value.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns the previous value on success (digest didn't match, value was set). Returns redis.Nil if the digest matches (value was not modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFDNEGet is still experimental it's signature and behaviour may change
func (Client) SetIFEQ ¶ added in v9.17.0
func (c Client) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StatusCmd
SetIFEQ Redis `SET key value [expiration] IFEQ match-value` command. Compare-and-set: only sets the value if the current value equals matchValue.
Returns "OK" on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFEQ is still experimental it's signature and behaviour may change
func (Client) SetIFEQGet ¶ added in v9.17.0
func (c Client) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StringCmd
SetIFEQGet Redis `SET key value [expiration] IFEQ match-value GET` command. Compare-and-set with GET: only sets the value if the current value equals matchValue, and returns the previous value.
Returns the previous value on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFEQGet is still experimental it's signature and behaviour may change
func (Client) SetIFNE ¶ added in v9.17.0
func (c Client) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StatusCmd
SetIFNE Redis `SET key value [expiration] IFNE match-value` command. Compare-and-set: only sets the value if the current value does not equal matchValue.
Returns "OK" on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFNE is still experimental it's signature and behaviour may change
func (Client) SetIFNEGet ¶ added in v9.17.0
func (c Client) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StringCmd
SetIFNEGet Redis `SET key value [expiration] IFNE match-value GET` command. Compare-and-set with GET: only sets the value if the current value does not equal matchValue, and returns the previous value.
Returns the previous value on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFNEGet is still experimental it's signature and behaviour may change
func (Client) SetNX ¶
func (c Client) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
SetNX sets the value of a key only if the key does not exist.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (Client) SetXX ¶
func (c Client) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
SetXX Redis `SET key value [expiration] XX` command.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (Client) ShutdownNoSave ¶
func (Client) ShutdownSave ¶
func (Client) SlowLogGet ¶
func (c Client) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
Example ¶
if RECluster {
// skip slowlog test for cluster
fmt.Println(2)
return
}
const key = "slowlog-log-slower-than"
old := rdb.ConfigGet(ctx, key).Val()
rdb.ConfigSet(ctx, key, "0")
defer rdb.ConfigSet(ctx, key, old[key])
if err := rdb.Do(ctx, "slowlog", "reset").Err(); err != nil {
panic(err)
}
rdb.Set(ctx, "test", "true", 0)
result, err := rdb.SlowLogGet(ctx, -1).Result()
if err != nil {
panic(err)
}
fmt.Println(len(result))
Output: 2
func (Client) SlowLogLen ¶ added in v9.17.0
func (Client) SlowLogReset ¶ added in v9.17.0
func (Client) Sort ¶
func (c Client) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
func (Client) SortInterfaces ¶
func (Client) SortRO ¶
func (c Client) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
func (*Client) Subscribe ¶
Subscribe subscribes the client to the specified channels. Channels can be omitted to create empty subscription. Note that this method does not wait on a response from Redis, so the subscription may not be active immediately. To force the connection to wait, you may call the Receive() method on the returned *PubSub like so:
sub := client.Subscribe(queryResp)
iface, err := sub.Receive()
if err != nil {
// handle error
}
// Should be *Subscription, but others are possible if other actions have been
// taken on sub since it was created.
switch iface.(type) {
case *Subscription:
// subscribe succeeded
case *Message:
// received first message
case *Pong:
// pong received
default:
// handle error
}
ch := sub.Channel()
func (Client) TDigestAdd ¶ added in v9.1.0
TDigestAdd adds one or more elements to a t-Digest data structure. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.add/
func (Client) TDigestByRank ¶ added in v9.1.0
func (c Client) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
TDigestByRank returns an array of values from a t-Digest data structure based on their rank. The rank of an element is its position in the sorted list of all elements in the t-Digest. Returns an array of floats representing the values at the specified ranks or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.byrank/
func (Client) TDigestByRevRank ¶ added in v9.1.0
func (c Client) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
TDigestByRevRank returns an array of values from a t-Digest data structure based on their reverse rank. The reverse rank of an element is its position in the sorted list of all elements in the t-Digest when sorted in descending order. Returns an array of floats representing the values at the specified ranks or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.byrevrank/
func (Client) TDigestCDF ¶ added in v9.1.0
func (c Client) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
TDigestCDF returns an array of cumulative distribution function (CDF) values for one or more elements in a t-Digest data structure. The CDF value for an element is the fraction of all elements in the t-Digest that are less than or equal to it. Returns an array of floats representing the CDF values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.cdf/
func (Client) TDigestCreate ¶ added in v9.1.0
TDigestCreate creates an empty t-Digest data structure with default parameters. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.create/
func (Client) TDigestCreateWithCompression ¶ added in v9.1.0
func (c Client) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
TDigestCreateWithCompression creates an empty t-Digest data structure with a specified compression parameter. The compression parameter controls the accuracy and memory usage of the t-Digest. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.create/
func (Client) TDigestInfo ¶ added in v9.1.0
func (c Client) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
TDigestInfo returns information about a t-Digest data structure. For more information - https://redis.io/commands/tdigest.info/
func (Client) TDigestMax ¶ added in v9.1.0
TDigestMax returns the maximum value from a t-Digest data structure. For more information - https://redis.io/commands/tdigest.max/
func (Client) TDigestMerge ¶ added in v9.1.0
func (c Client) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, sourceKeys ...string) *StatusCmd
TDigestMerge merges multiple t-Digest data structures into a single t-Digest. This function also allows for specifying additional options such as compression and override behavior. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.merge/
func (Client) TDigestMin ¶ added in v9.1.0
TDigestMin returns the minimum value from a t-Digest data structure. For more information - https://redis.io/commands/tdigest.min/
func (Client) TDigestQuantile ¶ added in v9.1.0
func (c Client) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
TDigestQuantile returns an array of quantile values for one or more elements in a t-Digest data structure. The quantile value for an element is the fraction of all elements in the t-Digest that are less than or equal to it. Returns an array of floats representing the quantile values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.quantile/
func (Client) TDigestRank ¶ added in v9.1.0
func (c Client) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
TDigestRank returns an array of rank values for one or more elements in a t-Digest data structure. The rank of an element is its position in the sorted list of all elements in the t-Digest. Returns an array of integers representing the rank values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.rank/
func (Client) TDigestReset ¶ added in v9.1.0
TDigestReset resets a t-Digest data structure to its initial state. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.reset/
func (Client) TDigestRevRank ¶ added in v9.1.0
func (c Client) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
TDigestRevRank returns an array of reverse rank values for one or more elements in a t-Digest data structure. The reverse rank of an element is its position in the sorted list of all elements in the t-Digest when sorted in descending order. Returns an array of integers representing the reverse rank values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.revrank/
func (Client) TDigestTrimmedMean ¶ added in v9.1.0
func (c Client) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
TDigestTrimmedMean returns the trimmed mean value from a t-Digest data structure. The trimmed mean is calculated by removing a specified fraction of the highest and lowest values from the t-Digest and then calculating the mean of the remaining values. Returns a float representing the trimmed mean value or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.trimmed_mean/
func (Client) TSAdd ¶ added in v9.2.0
func (c Client) 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 (Client) TSAddWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TSAlter ¶ added in v9.2.0
func (c Client) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
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 (Client) TSCreate ¶ added in v9.2.0
TSCreate - Creates a new time-series key. For more information - https://redis.io/commands/ts.create/
func (Client) TSCreateRule ¶ added in v9.2.0
func (c Client) 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 (Client) TSCreateRuleWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TSCreateWithArgs ¶ added in v9.2.0
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 (Client) TSDecrBy ¶ added in v9.2.0
TSDecrBy - Decrements the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.decrby/
func (Client) TSDecrByWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TSDel ¶ added in v9.2.0
TSDel - Deletes a range of samples from a time-series key. For more information - https://redis.io/commands/ts.del/
func (Client) TSDeleteRule ¶ added in v9.2.0
TSDeleteRule - Deletes a compaction rule from sourceKey to destKey. For more information - https://redis.io/commands/ts.deleterule/
func (Client) TSGet ¶ added in v9.2.0
func (c Client) 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 (Client) TSGetWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TSIncrBy ¶ added in v9.2.0
TSIncrBy - Increments the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.incrby/
func (Client) TSIncrByWithArgs ¶ added in v9.2.0
func (c Client) 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/
func (Client) TSInfo ¶ added in v9.2.0
func (c Client) 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 (Client) TSInfoWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TSMAdd ¶ added in v9.2.0
func (c Client) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
TSMAdd - Adds multiple samples to multiple time-series keys. It accepts a slice of 'ktv' slices, each containing exactly three elements: key, timestamp, and value. This struct must be provided for this command to work. For more information - https://redis.io/commands/ts.madd/
func (Client) TSMGet ¶ added in v9.2.0
func (c Client) 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 (Client) TSMGetWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TSMRange ¶ added in v9.2.0
func (c Client) 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 (Client) TSMRangeWithArgs ¶ added in v9.2.0
func (c Client) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRangeOptions) *MapStringSliceInterfaceCmd
TSMRangeWithArgs - Returns a range of samples from multiple time-series keys. Options are set via TSMRangeOptions. For more information - https://redis.io/commands/ts.mrange/
func (Client) TSMRevRange ¶ added in v9.2.0
func (c Client) 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 (Client) TSMRevRangeWithArgs ¶ added in v9.2.0
func (c Client) 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. Options are set via TSMRevRangeOptions. For more information - https://redis.io/commands/ts.mrevrange/
func (Client) TSNRange ¶ added in v9.22.0
func (c Client) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}) *TSNRangePivotRowSliceCmd
TSNRange - Queries multiple time-series keys and returns a pivot response in forward (ascending) order. For more information - https://redis.io/commands/ts.nrange/
func (Client) TSNRangeWithArgs ¶ added in v9.22.0
func (c Client) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}, options *TSNRangeOptions) *TSNRangePivotRowSliceCmd
TSNRangeWithArgs - Queries multiple time-series keys and returns a pivot response in forward (ascending) order with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, Count, Align, Aggregators, BucketDuration, BucketTimestamp and Empty. Aggregators must contain exactly one spec per key; each spec lists one or more aggregators for its key and is emitted as a single comma-joined wire token. For more information - https://redis.io/commands/ts.nrange/
func (Client) TSNRevRange ¶ added in v9.22.0
func (c Client) TSNRevRange(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}) *TSNRangePivotRowSliceCmd
TSNRevRange - Queries multiple time-series keys and returns a pivot response in reverse (descending) order. For more information - https://redis.io/commands/ts.nrevrange/
func (Client) TSNRevRangeWithArgs ¶ added in v9.22.0
func (c Client) TSNRevRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}, options *TSNRevRangeOptions) *TSNRangePivotRowSliceCmd
TSNRevRangeWithArgs - Queries multiple time-series keys and returns a pivot response in reverse (descending) order with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, Count, Align, Aggregators, BucketDuration, BucketTimestamp and Empty. Aggregators must contain exactly one spec per key; each spec lists one or more aggregators for its key and is emitted as a single comma-joined wire token. For more information - https://redis.io/commands/ts.nrevrange/
func (Client) TSQueryIndex ¶ added in v9.2.0
func (c Client) 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 (Client) TSQueryLabelValues ¶ added in v9.22.0
func (c Client) TSQueryLabelValues(ctx context.Context, label string, filterExpr []string) *StringSliceCmd
TSQueryLabelValues - Returns the set of values assigned to the given label name across the time series matching the filter expressions. Passing no filter expressions queries all indexed series. The label name is matched byte-exactly; a label present on no matching series yields an empty reply, not an error. The reply is unordered and already deduplicated by the server. filterExpr uses the same filter language as TSQueryIndex and is passed to the server verbatim. Available since Redis 8.10. For more information - https://redis.io/commands/ts.querylabels/
func (Client) TSQueryLabels ¶ added in v9.22.0
func (c Client) TSQueryLabels(ctx context.Context, filterExpr []string) *StringSliceCmd
TSQueryLabels - Returns the set of label names present on the time series matching the filter expressions. Passing no filter expressions queries all indexed series. The reply is unordered and already deduplicated by the server; it includes the label names used in the filter itself, and an empty reply is a valid result, not an error. filterExpr uses the same filter language as TSQueryIndex and is passed to the server verbatim. Available since Redis 8.10. For more information - https://redis.io/commands/ts.querylabels/
func (Client) TSRange ¶ added in v9.2.0
func (c Client) 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 (Client) TSRangeWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TSRead ¶ added in v9.22.0
func (c Client) TSRead(ctx context.Context, key string, timestamp interface{}) *TSTimestampValueSliceCmd
TSRead - Returns samples at or after timestamp, in ascending order. timestamp is a non-negative Unix-ms integer or a sentinel (TSReadEarliest, TSReadLatest, TSReadNew). For more information - https://redis.io/commands/ts.read/
func (Client) TSReadWithArgs ¶ added in v9.22.0
func (c Client) TSReadWithArgs(ctx context.Context, key string, timestamp interface{}, options *TSReadOptions) *TSTimestampValueSliceCmd
TSReadWithArgs - TS.READ with the optional BLOCK and MAX_COUNT groups. When options.Block is set it waits for options.MinCount samples or until options.Timeout elapses. Blocking calls must not be used in a pipeline or MULTI. For more information - https://redis.io/commands/ts.read/
func (Client) TSRevRange ¶ added in v9.2.0
func (c Client) 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 (Client) TSRevRangeWithArgs ¶ added in v9.2.0
func (c Client) 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 (Client) TopKAdd ¶ added in v9.1.0
func (c Client) TopKAdd(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
TopKAdd adds one or more elements to a Top-K filter. Returns an array of strings representing the items that were removed from the filter, if any. For more information - https://redis.io/commands/topk.add/
func (Client) TopKCount ¶ added in v9.1.0
func (c Client) TopKCount(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
TopKCount returns an estimate of the number of times an item may be in a Top-K filter. For more information - https://redis.io/commands/topk.count/
func (Client) TopKIncrBy ¶ added in v9.1.0
func (c Client) TopKIncrBy(ctx context.Context, key string, elements ...interface{}) *StringSliceCmd
TopKIncrBy increases the count of one or more items in a Top-K filter. For more information - https://redis.io/commands/topk.incrby/
func (Client) TopKInfo ¶ added in v9.1.0
func (c Client) TopKInfo(ctx context.Context, key string) *TopKInfoCmd
TopKInfo returns information about a Top-K filter. For more information - https://redis.io/commands/topk.info/
func (Client) TopKList ¶ added in v9.1.0
func (c Client) TopKList(ctx context.Context, key string) *StringSliceCmd
TopKList returns all items in Top-K list. For more information - https://redis.io/commands/topk.list/
func (Client) TopKListWithCount ¶ added in v9.1.0
func (c Client) TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
TopKListWithCount returns all items in Top-K list with their respective count. For more information - https://redis.io/commands/topk.list/
func (Client) TopKQuery ¶ added in v9.1.0
func (c Client) TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
TopKQuery check if multiple elements exist in a Top-K filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/topk.query/
func (Client) TopKReserve ¶ added in v9.1.0
TopKReserve creates an empty Top-K filter with the specified number of top items to keep. For more information - https://redis.io/commands/topk.reserve/
func (Client) TopKReserveWithOptions ¶ added in v9.1.0
func (c Client) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
TopKReserveWithOptions creates an empty Top-K filter with the specified number of top items to keep and additional options. This function allows for specifying additional options such as width, depth and decay. For more information - https://redis.io/commands/topk.reserve/
func (*Client) TxPipeline ¶
TxPipeline acts like Pipeline, but wraps queued commands with MULTI/EXEC.
Example ¶
package main
import (
"context"
"fmt"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
pipe := rdb.TxPipeline()
incr := pipe.Incr(ctx, "tx_pipeline_counter")
pipe.Expire(ctx, "tx_pipeline_counter", time.Hour)
// Execute
//
// MULTI
// INCR pipeline_counter
// EXPIRE pipeline_counts 3600
// EXEC
//
// using one rdb-server roundtrip.
_, err := pipe.Exec(ctx)
fmt.Println(incr.Val(), err)
}
Output: 1 <nil>
func (*Client) TxPipelined ¶
Example ¶
package main
import (
"context"
"fmt"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func main() {
var incr *redis.IntCmd
_, err := rdb.TxPipelined(ctx, func(pipe redis.Pipeliner) error {
incr = pipe.Incr(ctx, "tx_pipelined_counter")
pipe.Expire(ctx, "tx_pipelined_counter", time.Hour)
return nil
})
fmt.Println(incr.Val(), err)
}
Output: 1 <nil>
func (Client) VAdd ¶ added in v9.10.0
`VADD key (FP32 | VALUES num) vector element` note: the API is experimental and may be subject to change.
func (Client) VAddWithArgs ¶ added in v9.10.0
func (c Client) VAddWithArgs(ctx context.Context, key, element string, val Vector, addArgs *VAddArgs) *BoolCmd
`VADD key [REDUCE dim] (FP32 | VALUES num) vector element [CAS] [NOQUANT | Q8 | BIN] [EF build-exploration-factor] [SETATTR attributes] [M numlinks]` note: the API is experimental and may be subject to change.
func (Client) VCard ¶ added in v9.10.0
`VCARD key` note: the API is experimental and may be subject to change.
func (Client) VClearAttributes ¶ added in v9.10.0
`VClearAttributes` clear attributes on a vector set element. The implementation of `VClearAttributes` is execute command `VSETATTR key element ""`. note: the API is experimental and may be subject to change.
func (Client) VDim ¶ added in v9.10.0
`VDIM key` note: the API is experimental and may be subject to change.
func (Client) VEmb ¶ added in v9.10.0
`VEMB key element [RAW]` note: the API is experimental and may be subject to change.
func (Client) VGetAttr ¶ added in v9.10.0
`VGETATTR key element` note: the API is experimental and may be subject to change.
func (Client) VInfo ¶ added in v9.10.0
func (c Client) VInfo(ctx context.Context, key string) *MapStringInterfaceCmd
`VINFO key` note: the API is experimental and may be subject to change.
func (Client) VIsMember ¶ added in v9.19.0
`VISMEMBER key element` Check if an element exists in a vector set. note: the API is experimental and may be subject to change.
func (Client) VLinks ¶ added in v9.10.0
func (c Client) VLinks(ctx context.Context, key, element string) *StringSliceSliceCmd
`VLINKS key element` note: the API is experimental and may be subject to change.
func (Client) VLinksWithScores ¶ added in v9.10.0
func (c Client) VLinksWithScores(ctx context.Context, key, element string) *VectorScoreSliceSliceCmd
`VLINKS key element WITHSCORES` note: the API is experimental and may be subject to change.
func (Client) VRandMember ¶ added in v9.10.0
`VRANDMEMBER key` note: the API is experimental and may be subject to change.
func (Client) VRandMemberCount ¶ added in v9.10.0
func (c Client) VRandMemberCount(ctx context.Context, key string, count int) *StringSliceCmd
`VRANDMEMBER key [count]` note: the API is experimental and may be subject to change.
func (Client) VRange ¶ added in v9.17.0
func (c Client) VRange(ctx context.Context, key, start, end string, count int64) *StringSliceCmd
`VRANGE key start end count` a negative count means to return all the elements in the vector set. note: the API is experimental and may be subject to change.
func (Client) VRem ¶ added in v9.10.0
`VREM key element` note: the API is experimental and may be subject to change.
func (Client) VSetAttr ¶ added in v9.10.0
`VSETATTR key element "{ JSON obj }"` The `attr` 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.
note: the API is experimental and may be subject to change.
func (Client) VSim ¶ added in v9.10.0
func (c Client) VSim(ctx context.Context, key string, val Vector) *StringSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element)` note: the API is experimental and may be subject to change.
func (Client) VSimWithArgs ¶ added in v9.10.0
func (c Client) VSimWithArgs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *StringSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` note: the API is experimental and may be subject to change.
func (Client) VSimWithArgsWithAttribs ¶ added in v9.19.0
func (c Client) VSimWithArgsWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorAttribSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHATTRIBS] [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` WITHATTRIBS is only available in Redis v8.2.0+ note: the API is experimental and may be subject to change.
func (Client) VSimWithArgsWithScores ¶ added in v9.10.0
func (c Client) VSimWithArgsWithScores(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` note: the API is experimental and may be subject to change.
func (Client) VSimWithArgsWithScoresWithAttribs ¶ added in v9.19.0
func (c Client) VSimWithArgsWithScoresWithAttribs(ctx context.Context, key string, val Vector, simArgs *VSimArgs) *VectorScoreAttribSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) [WITHSCORES] [WITHATTRIBS] [COUNT num] [EPSILON delta] [EF search-exploration-factor] [FILTER expression] [FILTER-EF max-filtering-effort] [TRUTH] [NOTHREAD]` WITHATTRIBS is only available in Redis v8.2.0+ note: the API is experimental and may be subject to change.
func (Client) VSimWithScores ¶ added in v9.10.0
func (c Client) VSimWithScores(ctx context.Context, key string, val Vector) *VectorScoreSliceCmd
`VSIM key (ELE | FP32 | VALUES num) (vector | element) WITHSCORES` note: the API is experimental and may be subject to change.
func (*Client) Watch ¶
Watch prepares a transaction and marks the keys to be watched for conditional execution if there are any keys.
The transaction is automatically closed when fn exits.
Example ¶
package main
import (
"context"
"errors"
"fmt"
"sync"
"time"
"github.com/redis/go-redis/v9"
)
var (
ctx = context.Background()
rdb *redis.Client
)
func init() {
rdb = redis.NewClient(&redis.Options{
Addr: ":6379",
DialTimeout: 10 * time.Second,
ReadTimeout: 30 * time.Second,
WriteTimeout: 30 * time.Second,
PoolSize: 10,
PoolTimeout: 30 * time.Second,
})
}
func main() {
const maxRetries = 10000
// Increment transactionally increments key using GET and SET commands.
increment := func(key string) error {
// Transactional function.
txf := func(tx *redis.Tx) error {
// Get current value or zero.
n, err := tx.Get(ctx, key).Int()
if err != nil && err != redis.Nil {
return err
}
// Actual operation (local in optimistic lock).
n++
// Operation is committed only if the watched keys remain unchanged.
_, err = tx.TxPipelined(ctx, func(pipe redis.Pipeliner) error {
pipe.Set(ctx, key, n, 0)
return nil
})
return err
}
for i := 0; i < maxRetries; i++ {
err := rdb.Watch(ctx, txf, key)
if err == nil {
// Success.
return nil
}
if err == redis.TxFailedErr {
// Optimistic lock lost. Retry.
continue
}
// Return any other error.
return err
}
return errors.New("increment reached maximum number of retries")
}
var wg sync.WaitGroup
for i := 0; i < 100; i++ {
wg.Add(1)
go func() {
defer wg.Done()
if err := increment("counter3"); err != nil {
fmt.Println("increment error:", err)
}
}()
}
wg.Wait()
n, err := rdb.Get(ctx, "counter3").Int()
fmt.Println("ended with", n, err)
}
Output: ended with 100 <nil>
Example (Instrumentation) ¶
rdb := redis.NewClient(&redis.Options{
Addr: ":6379",
DisableIdentity: true,
})
rdb.AddHook(redisHook{})
rdb.Watch(ctx, func(tx *redis.Tx) error {
tx.Ping(ctx)
tx.Ping(ctx)
return nil
}, "foo")
Output: starting processing: <[watch foo]> dialing tcp :6379 finished dialing tcp :6379 starting processing: <[hello 3]> finished processing: <[hello 3]> starting processing: <[client maint_notifications on moving-endpoint-type internal-ip]> finished processing: <[client maint_notifications on moving-endpoint-type internal-ip]> finished processing: <[watch foo]> starting processing: <[ping]> finished processing: <[ping]> starting processing: <[ping]> finished processing: <[ping]> starting processing: <[unwatch]> finished processing: <[unwatch]>
func (*Client) WithTimeout ¶
WithTimeout returns a clone sharing the parent's connection pools with the given read/write timeout. The clone caches its own autopipeliners, separate from the parent's: an AutoPipeline()/AsyncAutoPipeline() created on the clone registers a close hook on the shared pool. Closing any pool-sharing wrapper (the parent or another clone) drains and stops every registered engine's background flusher before the shared pools are torn down, so no flusher outlives the pool. That shared-pool drain does not mark the clone's autopipeliner closed, so an explicit Close on the clone still fully tears it (and its autopipeliners) down; Close is idempotent.
func (Client) XAutoClaim ¶
func (c Client) XAutoClaim(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimCmd
func (Client) XAutoClaimJustID ¶
func (c Client) XAutoClaimJustID(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimJustIDCmd
func (Client) XAutoClaimWithDeleted ¶ added in v9.20.0
func (c Client) XAutoClaimWithDeleted(ctx context.Context, a *XAutoClaimArgs) *XAutoClaimWithDeletedCmd
func (Client) XCfgSet ¶ added in v9.18.0
func (c Client) XCfgSet(ctx context.Context, a *XCfgSetArgs) *StatusCmd
XCfgSet sets the idempotent production configuration for a stream. XCFGSET key [IDMP-DURATION duration] [IDMP-MAXSIZE maxsize]
func (Client) XClaim ¶
func (c Client) XClaim(ctx context.Context, a *XClaimArgs) *XMessageSliceCmd
func (Client) XClaimJustID ¶
func (c Client) XClaimJustID(ctx context.Context, a *XClaimArgs) *StringSliceCmd
func (Client) XGroupCreate ¶
func (Client) XGroupCreateConsumer ¶
func (Client) XGroupCreateMkStream ¶
func (Client) XGroupDelConsumer ¶
func (Client) XGroupDestroy ¶
func (Client) XGroupSetID ¶
func (Client) XInfoConsumers ¶
func (c Client) XInfoConsumers(ctx context.Context, key string, group string) *XInfoConsumersCmd
func (Client) XInfoGroups ¶
func (c Client) XInfoGroups(ctx context.Context, key string) *XInfoGroupsCmd
func (Client) XInfoStream ¶
func (c Client) XInfoStream(ctx context.Context, key string) *XInfoStreamCmd
func (Client) XInfoStreamFull ¶
func (c Client) XInfoStreamFull(ctx context.Context, key string, count int) *XInfoStreamFullCmd
XInfoStreamFull XINFO STREAM FULL [COUNT count] redis-server >= 6.0.
func (Client) XNack ¶ added in v9.20.0
XNack executes the XNACK command. See XNackArgs for the full argument documentation. Requires Redis >= 8.8.
func (Client) XPending ¶
func (c Client) XPending(ctx context.Context, stream, group string) *XPendingCmd
func (Client) XPendingExt ¶
func (c Client) XPendingExt(ctx context.Context, a *XPendingExtArgs) *XPendingExtCmd
func (Client) XRange ¶
func (c Client) XRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
func (Client) XRangeN ¶
func (c Client) XRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
func (Client) XReadGroup ¶
func (c Client) XReadGroup(ctx context.Context, a *XReadGroupArgs) *XStreamSliceCmd
func (Client) XReadStreams ¶
func (c Client) XReadStreams(ctx context.Context, streams ...string) *XStreamSliceCmd
func (Client) XRevRange ¶
func (c Client) XRevRange(ctx context.Context, stream, start, stop string) *XMessageSliceCmd
func (Client) XRevRangeN ¶
func (c Client) XRevRangeN(ctx context.Context, stream, start, stop string, count int64) *XMessageSliceCmd
func (Client) XTrimMaxLen ¶
XTrimMaxLen No `~` rules are used, `limit` cannot be used. cmd: XTRIM key MAXLEN maxLen
func (Client) XTrimMaxLenApprox ¶
XTrimMaxLenApprox trims the stream using the `~` rule. cmd: XTRIM key MAXLEN ~ maxLen [LIMIT limit]
limit == 0 omits the LIMIT clause, limit > 0 emits "LIMIT <limit>", and a negative limit (see XTrimLimitDisabled) emits "LIMIT 0" to disable the trimming effort cap.
func (Client) XTrimMaxLenApproxMode ¶ added in v9.12.0
func (Client) XTrimMaxLenMode ¶ added in v9.12.0
func (Client) XTrimMinID ¶
func (Client) XTrimMinIDApprox ¶
func (c Client) XTrimMinIDApprox(ctx context.Context, key string, minID string, limit int64) *IntCmd
XTrimMinIDApprox trims the stream using the `~` rule. cmd: XTRIM key MINID ~ minID [LIMIT limit]
limit == 0 omits the LIMIT clause, limit > 0 emits "LIMIT <limit>", and a negative limit (see XTrimLimitDisabled) emits "LIMIT 0" to disable the trimming effort cap.
func (Client) XTrimMinIDApproxMode ¶ added in v9.12.0
func (Client) XTrimMinIDMode ¶ added in v9.12.0
func (Client) ZAddArgsIncr ¶
func (Client) ZAddGT ¶ added in v9.0.3
ZAddGT Redis `ZADD key GT score member [score member ...]` command.
func (Client) ZAddLT ¶ added in v9.0.3
ZAddLT Redis `ZADD key LT score member [score member ...]` command.
func (Client) ZDiff ¶
func (c Client) ZDiff(ctx context.Context, keys ...string) *StringSliceCmd
ZDiff redis-server version >= 6.2.0.
func (Client) ZDiffStore ¶
ZDiffStore redis-server version >=6.2.0.
func (Client) ZDiffWithScores ¶
ZDiffWithScores redis-server version >= 6.2.0.
func (Client) ZInterCard ¶
func (Client) ZInterStore ¶
func (Client) ZInterWithScores ¶
func (Client) ZMPop ¶ added in v9.0.3
func (c Client) ZMPop(ctx context.Context, order string, count int64, keys ...string) *ZSliceWithKeyCmd
ZMPop Pops one or more elements with the highest or lowest score from the first non-empty sorted set key from the list of provided key names. direction: "max" (highest score) or "min" (lowest score), count: > 0 example: client.ZMPop(ctx, "max", 5, "set1", "set2")
func (Client) ZMScore ¶
func (c Client) ZMScore(ctx context.Context, key string, members ...string) *FloatSliceCmd
func (Client) ZRandMember ¶
func (c Client) ZRandMember(ctx context.Context, key string, count int) *StringSliceCmd
ZRandMember redis-server version >= 6.2.0.
func (Client) ZRandMemberWithScores ¶
ZRandMemberWithScores redis-server version >= 6.2.0.
func (Client) ZRange ¶
func (c Client) ZRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
func (Client) ZRangeArgs ¶
func (c Client) ZRangeArgs(ctx context.Context, z ZRangeArgs) *StringSliceCmd
func (Client) ZRangeArgsWithScores ¶
func (c Client) ZRangeArgsWithScores(ctx context.Context, z ZRangeArgs) *ZSliceCmd
func (Client) ZRangeByLex
deprecated
func (c Client) ZRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRangeByLex returns members in a sorted set within a lexicographical range.
Deprecated: Use ZRangeArgs with ByLex option instead as of Redis 6.2.0.
func (Client) ZRangeByScore
deprecated
func (c Client) ZRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRangeByScore returns members in a sorted set within a range of scores.
Deprecated: Use ZRangeArgs with ByScore option instead as of Redis 6.2.0.
func (Client) ZRangeByScoreWithScores ¶
func (Client) ZRangeStore ¶
func (c Client) ZRangeStore(ctx context.Context, dst string, z ZRangeArgs) *IntCmd
func (Client) ZRangeWithScores ¶
func (Client) ZRankWithScore ¶ added in v9.0.4
func (c Client) ZRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
ZRankWithScore according to the Redis documentation, if member does not exist in the sorted set or key does not exist, it will return a redis.Nil error.
func (Client) ZRemRangeByLex ¶
func (Client) ZRemRangeByRank ¶
func (Client) ZRemRangeByScore ¶
func (Client) ZRevRangeByLex
deprecated
func (c Client) ZRevRangeByLex(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRevRangeByLex returns members in a sorted set within a lexicographical range in reverse order.
Deprecated: Use ZRangeArgs with Rev and ByLex options instead as of Redis 6.2.0.
func (Client) ZRevRangeByScore
deprecated
func (c Client) ZRevRangeByScore(ctx context.Context, key string, opt *ZRangeBy) *StringSliceCmd
ZRevRangeByScore returns members in a sorted set within a range of scores in reverse order.
Deprecated: Use ZRangeArgs with Rev and ByScore options instead as of Redis 6.2.0.
func (Client) ZRevRangeByScoreWithScores ¶
func (Client) ZRevRangeWithScores ¶
ZRevRangeWithScores according to the Redis documentation, if member does not exist in the sorted set or key does not exist, it will return a redis.Nil error.
func (Client) ZRevRankWithScore ¶ added in v9.0.4
func (c Client) ZRevRankWithScore(ctx context.Context, key, member string) *RankWithScoreCmd
func (Client) ZUnionStore ¶
type ClientFlags ¶ added in v9.0.4
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 v9.0.4
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
TotalNetIn int // tot-net-in, total network input
TotalNetOut int // tot-net-out, total network output
TotalCmds int // tot-cmds, total number of commands processed
IoThread int // io-thread id
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
ReadEvents uint64 // redis version 8.8, number of read events processed
AvgPipelineLenSum uint64 // redis version 8.8, sum of pipeline lengths
AvgPipelineLenCnt uint64 // redis version 8.8, count of pipeline operations
}
ClientInfo is redis-server ClientInfo, not go-redis *Client
type ClientInfoCmd ¶ added in v9.0.4
type ClientInfoCmd struct {
// contains filtered or unexported fields
}
func NewClientInfoCmd ¶ added in v9.0.4
func NewClientInfoCmd(ctx context.Context, args ...interface{}) *ClientInfoCmd
func (*ClientInfoCmd) Clone ¶ added in v9.18.0
func (cmd *ClientInfoCmd) Clone() Cmder
func (*ClientInfoCmd) GetCmdType ¶ added in v9.18.0
func (cmd *ClientInfoCmd) GetCmdType() CmdType
func (*ClientInfoCmd) NoRetry ¶ added in v9.19.0
func (cmd *ClientInfoCmd) NoRetry() bool
NoRetry returns true if the command should not be retried on failure. By default, commands can be retried. Commands that write directly to an io.Writer (like RawWriteToCmd) should override this to return true since partial writes cannot be undone on retry.
func (*ClientInfoCmd) Result ¶ added in v9.0.4
func (cmd *ClientInfoCmd) Result() (*ClientInfo, error)
func (*ClientInfoCmd) SetFirstKeyPos ¶ added in v9.0.4
func (cmd *ClientInfoCmd) SetFirstKeyPos(keyPos int8)
func (*ClientInfoCmd) SetStepCount ¶ added in v9.18.0
func (cmd *ClientInfoCmd) SetStepCount(stepCount int8)
func (*ClientInfoCmd) SetVal ¶ added in v9.0.4
func (cmd *ClientInfoCmd) SetVal(val *ClientInfo)
func (*ClientInfoCmd) String ¶ added in v9.0.4
func (cmd *ClientInfoCmd) String() string
func (*ClientInfoCmd) Val ¶ added in v9.0.4
func (cmd *ClientInfoCmd) Val() *ClientInfo
type ClientSideCacheConfig ¶ added in v9.22.0
type ClientSideCacheConfig = CacheConfig
ClientSideCacheConfig configures the built-in client-side cache. Pass a non-nil value to Options.ClientSideCacheConfig to enable caching on a RESP3 client.
Experimental: this API may change in a minor release.
type ClientTrackingOptions ¶ added in v9.22.0
type ClientTrackingOptions struct {
Redirect int64
Bcast bool
Prefixes []string
OptIn bool
OptOut bool
NoLoop bool
}
ClientTrackingOptions configures CLIENT TRACKING ON. See https://redis.io/commands/client-tracking/ for semantics.
type ClusterClient ¶
type ClusterClient struct {
// contains filtered or unexported fields
}
ClusterClient is a Redis Cluster client representing a pool of zero or more underlying connections. It's safe for concurrent use by multiple goroutines.
func NewClusterClient ¶
func NewClusterClient(opt *ClusterOptions) *ClusterClient
NewClusterClient returns a Redis Cluster client as described in https://redis.io/docs/latest/operate/oss_and_stack/reference/cluster-spec. Passing nil ClusterOptions will cause a panic.
Example ¶
package main
import (
"context"
"github.com/redis/go-redis/v9"
)
var ctx = context.Background()
func main() {
// See https://redis.io/docs/latest/operate/oss_and_stack/management/scaling for instructions
// how to setup Redis Cluster.
rdb := redis.NewClusterClient(&redis.ClusterOptions{
Addrs: []string{":7000", ":7001", ":7002", ":7003", ":7004", ":7005"},
})
rdb.Ping(ctx)
}
Output:
Example (ManualSetup) ¶
Following example creates a cluster from 2 master nodes and 2 slave nodes without using cluster mode or Redis Sentinel.
package main
import (
"context"
"github.com/redis/go-redis/v9"
)
var ctx = context.Background()
func main() {
// clusterSlots returns cluster slots information.
// It can use service like ZooKeeper to maintain configuration information
// and Cluster.ReloadState to manually trigger state reloading.
clusterSlots := func(ctx context.Context) ([]redis.ClusterSlot, error) {
slots := []redis.ClusterSlot{
// First node with 1 master and 1 slave.
{
Start: 0,
End: 8191,
Nodes: []redis.ClusterNode{{
Addr: ":7000", // master
}, {
Addr: ":8000", // 1st slave
}},
},
// Second node with 1 master and 1 slave.
{
Start: 8192,
End: 16383,
Nodes: []redis.ClusterNode{{
Addr: ":7001", // master
}, {
Addr: ":8001", // 1st slave
}},
},
}
return slots, nil
}
rdb := redis.NewClusterClient(&redis.ClusterOptions{
ClusterSlots: clusterSlots,
RouteRandomly: true,
})
rdb.Ping(ctx)
// ReloadState reloads cluster state. It calls ClusterSlots func
// to get cluster slots information.
rdb.ReloadState(ctx)
}
Output:
func NewFailoverClusterClient ¶
func NewFailoverClusterClient(failoverOpt *FailoverOptions) *ClusterClient
NewFailoverClusterClient returns a client that supports routing read-only commands to a replica node. Passing nil FailoverOptions will cause a panic.
func (ClusterClient) ACLCat ¶ added in v9.7.2
func (c ClusterClient) ACLCat(ctx context.Context) *StringSliceCmd
func (ClusterClient) ACLCatArgs ¶ added in v9.7.2
func (c ClusterClient) ACLCatArgs(ctx context.Context, options *ACLCatArgs) *StringSliceCmd
func (ClusterClient) ACLDelUser ¶ added in v9.7.2
func (ClusterClient) ACLGenPass ¶ added in v9.17.0
func (ClusterClient) ACLList ¶ added in v9.7.2
func (c ClusterClient) ACLList(ctx context.Context) *StringSliceCmd
func (ClusterClient) ACLLogReset ¶ added in v9.0.5
func (ClusterClient) ACLSetUser ¶ added in v9.7.2
func (ClusterClient) ACLUsers ¶ added in v9.17.0
func (c ClusterClient) ACLUsers(ctx context.Context) *StringSliceCmd
func (ClusterClient) ARCount ¶ added in v9.20.0
ARCount returns the number of non-empty elements in an array. Returns 0 if the key does not exist.
func (ClusterClient) ARDel ¶ added in v9.20.0
ARDel deletes elements at the specified indexes in an array. Returns the number of elements deleted.
func (ClusterClient) ARDelRange ¶ added in v9.20.0
ARDelRange deletes elements in one or more ranges. Returns the number of elements deleted.
func (ClusterClient) ARGet ¶ added in v9.20.0
ARGet gets the value at an index in an array. Returns redis.Nil if the key or index does not exist.
func (ClusterClient) ARGetRange ¶ added in v9.20.0
ARGetRange gets values in a range of indexes. Returns values in the range, with nil for unset indexes.
func (ClusterClient) ARGrep ¶ added in v9.20.0
func (c ClusterClient) ARGrep(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *UintSliceCmd
ARGrep searches array elements in a range using textual predicates. Returns matching indexes only. Use ARGrepWithValues to also get the values.
func (ClusterClient) ARGrepWithValues ¶ added in v9.20.0
func (c ClusterClient) ARGrepWithValues(ctx context.Context, key string, start, end string, grepArgs *ARGrepArgs) *AREntrySliceCmd
ARGrepWithValues searches array elements in a range using textual predicates. Returns matching indexes and their values as index-value pairs.
func (ClusterClient) ARInfo ¶ added in v9.20.0
func (c ClusterClient) ARInfo(ctx context.Context, key string) *MapStringInterfaceCmd
ARInfo returns metadata about an array.
func (ClusterClient) ARInfoFull ¶ added in v9.20.0
func (c ClusterClient) ARInfoFull(ctx context.Context, key string) *MapStringInterfaceCmd
ARInfoFull returns detailed metadata about an array including slice statistics.
func (ClusterClient) ARInsert ¶ added in v9.20.0
ARInsert inserts one or more values at consecutive indexes. Returns the last index where a value was inserted.
func (ClusterClient) ARLastItems ¶ added in v9.20.0
func (c ClusterClient) ARLastItems(ctx context.Context, key string, count uint64, rev bool) *SliceCmd
ARLastItems returns the most recently inserted elements. When rev is true, returns items in reverse order.
func (ClusterClient) ARLen ¶ added in v9.20.0
ARLen returns the length of an array (max index + 1). Returns 0 if the key does not exist.
func (ClusterClient) ARMGet ¶ added in v9.20.0
ARMGet gets values at multiple indexes in an array. Returns values at the specified indexes, with nil for unset indexes.
func (ClusterClient) ARMSet ¶ added in v9.20.0
ARMSet sets multiple index-value pairs in an array. Returns the number of new slots that were set (previously empty).
func (ClusterClient) ARNext ¶ added in v9.20.0
ARNext returns the next index ARINSERT would use. Returns 0 for missing keys or when no insert happened yet. Returns nil when the insertion cursor is exhausted / would overflow.
func (ClusterClient) AROpAnd ¶ added in v9.20.0
AROpAnd returns the bitwise AND of integer elements in a range.
func (ClusterClient) AROpMatch ¶ added in v9.20.0
func (c ClusterClient) AROpMatch(ctx context.Context, key string, start, end uint64, value string) *IntCmd
AROpMatch returns the count of elements matching a target string in a range.
func (ClusterClient) AROpMax ¶ added in v9.20.0
AROpMax returns the maximum numeric element in a range.
func (ClusterClient) AROpMin ¶ added in v9.20.0
AROpMin returns the minimum numeric element in a range.
func (ClusterClient) AROpOr ¶ added in v9.20.0
AROpOr returns the bitwise OR of integer elements in a range.
func (ClusterClient) AROpSum ¶ added in v9.20.0
AROpSum returns the sum of numeric elements in a range.
func (ClusterClient) AROpUsed ¶ added in v9.20.0
AROpUsed returns the count of non-empty slots in a range.
func (ClusterClient) AROpXor ¶ added in v9.20.0
AROpXor returns the bitwise XOR of integer elements in a range.
func (ClusterClient) ARRing ¶ added in v9.20.0
func (c ClusterClient) ARRing(ctx context.Context, key string, size uint64, values ...string) *UintCmd
ARRing inserts values into a ring buffer of specified size, wrapping and truncating as needed. Returns the last index where a value was inserted.
func (ClusterClient) ARScan ¶ added in v9.20.0
func (c ClusterClient) ARScan(ctx context.Context, key string, start, end uint64, scanArgs *ARScanArgs) *AREntrySliceCmd
ARScan iterates existing elements in a range, returning index-value pairs.
func (ClusterClient) ARSeek ¶ added in v9.20.0
ARSeek sets the ARINSERT / ARRING cursor to a specific index. Returns 1 if the cursor was set, 0 if the key does not exist.
func (ClusterClient) ARSet ¶ added in v9.20.0
func (c ClusterClient) ARSet(ctx context.Context, key string, index uint64, values ...string) *IntCmd
ARSet sets one or more contiguous values starting at an index in an array. Returns the number of new slots that were set (previously empty).
func (*ClusterClient) AddHook ¶
func (hs *ClusterClient) AddHook(hook Hook)
AddHook is to add a hook to the queue. Hook is a function executed during network connection, command execution, and pipeline, it is a first-in-first-out stack queue (FIFO). You need to execute the next hook in each hook, unless you want to terminate the execution of the command. For example, you added hook-1, hook-2:
client.AddHook(hook-1, hook-2)
hook-1:
func (Hook1) ProcessHook(next redis.ProcessHook) redis.ProcessHook {
return func(ctx context.Context, cmd Cmder) error {
print("hook-1 start")
next(ctx, cmd)
print("hook-1 end")
return nil
}
}
hook-2:
func (Hook2) ProcessHook(next redis.ProcessHook) redis.ProcessHook {
return func(ctx context.Context, cmd redis.Cmder) error {
print("hook-2 start")
next(ctx, cmd)
print("hook-2 end")
return nil
}
}
The execution sequence is:
hook-1 start -> hook-2 start -> exec redis cmd -> hook-2 end -> hook-1 end
Please note: "next(ctx, cmd)" is very important, it will call the next hook, if "next(ctx, cmd)" is not executed, the redis command will not be executed.
Contract. A hook runs inside the client's command machinery and must be well-behaved, or behavior is undefined:
- Call next (as above) unless deliberately terminating the command.
- Do not call Close or other client control methods from a hook — the hook runs on the goroutine Close waits for, so this deadlocks.
- Do not panic. A panicking hook can crash the process or leave an operation unsettled; wrap fallible work and return an error instead.
- Do not mutate client or connection state. A hook may observe and wrap errors (call cmd.SetErr) but must not reconfigure the client mid-flight.
func (*ClusterClient) AsyncAutoPipeline ¶ added in v9.22.0
func (c *ClusterClient) AsyncAutoPipeline() (*AutoPipeliner, error)
AsyncAutoPipeline returns the deferred autopipeliner: command calls return immediately and the result accessors block. Submit a window then read results for the highest throughput. By default, ClusterOptions.AutoPipelineOptions is used if set, otherwise DefaultAutoPipelineOptions. Ordering across nodes is per key: slot routing keeps a key on one shard, and node sub-pipelines execute concurrently. Use AsyncAutoPipelineWithOptions to override. Cached/shared; first call's config wins.
It returns an error if the supplied config is invalid (e.g. MaxConcurrentBatches>1 without Unordered, or a negative size); on error no instance is cached.
EXPERIMENTAL: this API is subject to change, use with caution.
func (*ClusterClient) AsyncAutoPipelineWithOptions ¶ added in v9.22.0
func (c *ClusterClient) AsyncAutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
AsyncAutoPipelineWithOptions is AsyncAutoPipeline with an explicit config instead of ClusterOptions.AutoPipelineOptions / the default. Cached/shared.
EXPERIMENTAL: this API is subject to change, use with caution.
func (*ClusterClient) AutoPipeline ¶ added in v9.22.0
func (c *ClusterClient) AutoPipeline() (*AutoPipeliner, error)
AutoPipeline returns the blocking autopipeliner for this cluster client: each command call blocks until executed (drop-in shape) while the engine batches concurrent callers into pipelines. Commands keep per-goroutine order; across nodes, ordering is per key (slot routing keeps a key on one shard and node sub-pipelines execute concurrently). Use AutoPipelineWithOptions to override DefaultBlockingAutoPipelineOptions. Cached/shared; first call's config wins. Close it (or the client) to release its goroutines.
It returns an error if the supplied config is invalid (e.g. MaxConcurrentBatches>1 without Unordered, or a negative size); on error no instance is cached.
EXPERIMENTAL: this API is subject to change, use with caution.
func (*ClusterClient) AutoPipelineWithOptions ¶ added in v9.22.0
func (c *ClusterClient) AutoPipelineWithOptions(config *AutoPipelineOptions) (*AutoPipeliner, error)
AutoPipelineWithOptions is AutoPipeline with explicit options instead of ClusterOptions.AutoPipelineOptions / the default. Cached/shared; first call wins.
EXPERIMENTAL: this API is subject to change, use with caution.
func (ClusterClient) BFAdd ¶ added in v9.1.0
BFAdd adds an item to a Bloom filter. For more information - https://redis.io/commands/bf.add/
func (ClusterClient) BFCard ¶ added in v9.1.0
BFCard returns the cardinality of a Bloom filter - number of items that were added to a Bloom filter and detected as unique (items that caused at least one bit to be set in at least one sub-filter). For more information - https://redis.io/commands/bf.card/
func (ClusterClient) BFExists ¶ added in v9.1.0
BFExists determines whether a given item was added to a Bloom filter. For more information - https://redis.io/commands/bf.exists/
func (ClusterClient) BFInfo ¶ added in v9.1.0
Returns information about a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (ClusterClient) BFInfoArg ¶ added in v9.1.0
BFInfoArg returns information about a specific option of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (ClusterClient) BFInfoCapacity ¶ added in v9.1.0
BFInfoCapacity returns information about the capacity of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (ClusterClient) BFInfoExpansion ¶ added in v9.1.0
BFInfoExpansion returns information about the expansion rate of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (ClusterClient) BFInfoFilters ¶ added in v9.1.0
BFInfoFilters returns information about the filters of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (ClusterClient) BFInfoItems ¶ added in v9.1.0
BFInfoItems returns information about the items of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (ClusterClient) BFInfoSize ¶ added in v9.1.0
BFInfoSize returns information about the size of a Bloom filter. For more information - https://redis.io/commands/bf.info/
func (ClusterClient) BFInsert ¶ added in v9.1.0
func (c ClusterClient) BFInsert(ctx context.Context, key string, options *BFInsertOptions, elements ...interface{}) *BoolSliceCmd
BFInsert inserts elements into a Bloom filter. This function also allows for specifying additional options such as: capacity, error rate, expansion rate, and non-scaling behavior. For more information - https://redis.io/commands/bf.insert/
func (ClusterClient) BFLoadChunk ¶ added in v9.1.0
func (c ClusterClient) BFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
BFLoadChunk restores a Bloom filter previously saved using BF.SCANDUMP. For more information - https://redis.io/commands/bf.loadchunk/
func (ClusterClient) BFMAdd ¶ added in v9.1.0
func (c ClusterClient) BFMAdd(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
BFMAdd adds multiple elements to a Bloom filter. Returns an array of booleans indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/bf.madd/
func (ClusterClient) BFMExists ¶ added in v9.1.0
func (c ClusterClient) BFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
BFMExists check if multiple elements exist in a Bloom filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/bf.mexists/
func (ClusterClient) BFReserve ¶ added in v9.1.0
func (c ClusterClient) BFReserve(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
BFReserve creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. For more information - https://redis.io/commands/bf.reserve/
func (ClusterClient) BFReserveExpansion ¶ added in v9.1.0
func (c ClusterClient) BFReserveExpansion(ctx context.Context, key string, errorRate float64, capacity, expansion int64) *StatusCmd
BFReserveExpansion creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying an expansion rate for the filter. For more information - https://redis.io/commands/bf.reserve/
func (ClusterClient) BFReserveNonScaling ¶ added in v9.1.0
func (c ClusterClient) BFReserveNonScaling(ctx context.Context, key string, errorRate float64, capacity int64) *StatusCmd
BFReserveNonScaling creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying that the filter should not scale. For more information - https://redis.io/commands/bf.reserve/
func (ClusterClient) BFReserveWithArgs ¶ added in v9.2.0
func (c ClusterClient) BFReserveWithArgs(ctx context.Context, key string, options *BFReserveOptions) *StatusCmd
BFReserveWithArgs creates an empty Bloom filter with a single sub-filter for the initial specified capacity and with an upper bound error_rate. This function also allows for specifying additional options such as expansion rate and non-scaling behavior. For more information - https://redis.io/commands/bf.reserve/
func (ClusterClient) BFScanDump ¶ added in v9.1.0
func (c ClusterClient) BFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
Begins an incremental save of the Bloom filter. This command is useful for large Bloom filters that cannot fit into the DUMP and RESTORE model. For more information - https://redis.io/commands/bf.scandump/
func (ClusterClient) BLMoveM ¶ added in v9.22.0
func (c ClusterClient) BLMoveM(ctx context.Context, source, destination, srcpos, destpos string, timeout time.Duration, a LMoveMArgs) *StringSliceCmd
BLMoveM is the blocking variant of LMoveM (Redis 8.10+); timeout 0 blocks forever. Returns moved elements, or redis.Nil on timeout.
func (ClusterClient) BRPopLPush
deprecated
func (c ClusterClient) BRPopLPush(ctx context.Context, source, destination string, timeout time.Duration) *StringCmd
BRPopLPush pops an element from a list, pushes it to another list and returns it. Blocks until an element is available or timeout is reached.
Deprecated: Use BLMove with RIGHT and LEFT arguments instead as of Redis 6.2.0.
func (ClusterClient) BZMPop ¶ added in v9.0.3
func (c ClusterClient) BZMPop(ctx context.Context, timeout time.Duration, order string, count int64, keys ...string) *ZSliceWithKeyCmd
BZMPop is the blocking variant of ZMPOP. When any of the sorted sets contains elements, this command behaves exactly like ZMPOP. When all sorted sets are empty, Redis will block the connection until another client adds members to one of the keys or until the timeout elapses. A timeout of zero can be used to block indefinitely. example: client.BZMPop(ctx, 0,"max", 1, "set")
func (ClusterClient) BZPopMax ¶
func (c ClusterClient) BZPopMax(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
BZPopMax Redis `BZPOPMAX key [key ...] timeout` command.
func (ClusterClient) BZPopMin ¶
func (c ClusterClient) BZPopMin(ctx context.Context, timeout time.Duration, keys ...string) *ZWithKeyCmd
BZPopMin Redis `BZPOPMIN key [key ...] timeout` command.
func (ClusterClient) BgRewriteAOF ¶
func (ClusterClient) BitField ¶
func (c ClusterClient) BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
BitField accepts multiple values:
- BitField("set", "i1", "offset1", "value1","cmd2", "type2", "offset2", "value2")
- BitField([]string{"cmd1", "type1", "offset1", "value1","cmd2", "type2", "offset2", "value2"})
- BitField([]interface{}{"cmd1", "type1", "offset1", "value1","cmd2", "type2", "offset2", "value2"})
func (ClusterClient) BitFieldRO ¶ added in v9.3.1
func (c ClusterClient) BitFieldRO(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
BitFieldRO - Read-only variant of the BITFIELD command. It is like the original BITFIELD but only accepts GET subcommand and can safely be used in read-only replicas. - BitFieldRO(ctx, key, "<Encoding0>", "<Offset0>", "<Encoding1>","<Offset1>")
func (ClusterClient) BitOpAnd ¶
BitOpAnd creates a new bitmap in which users are members of all given bitmaps
func (ClusterClient) BitOpAndOr ¶ added in v9.12.0
BitOpAndOr creates a new bitmap in which users are members of bitmap X and also members of one or more of bitmaps Y1, Y2, … Introduced with Redis 8.2
func (ClusterClient) BitOpDiff ¶ added in v9.12.0
BitOpDiff creates a new bitmap in which users are members of bitmap X but not of any of bitmaps Y1, Y2, … Introduced with Redis 8.2
func (ClusterClient) BitOpDiff1 ¶ added in v9.12.0
BitOpDiff1 creates a new bitmap in which users are members of one or more of bitmaps Y1, Y2, … but not members of bitmap X Introduced with Redis 8.2
func (ClusterClient) BitOpNot ¶
BitOpNot creates a new bitmap in which users are not members of a given bitmap
func (ClusterClient) BitOpOne ¶ added in v9.12.0
BitOpOne creates a new bitmap in which users are members of exactly one of the given bitmaps Introduced with Redis 8.2
func (ClusterClient) BitOpOr ¶
BitOpOr creates a new bitmap in which users are member of at least one given bitmap
func (ClusterClient) BitOpXor ¶
BitOpXor creates a new bitmap in which users are the result of XORing all given bitmaps
func (ClusterClient) BitPos ¶
BitPos is an API before Redis version 7.0, cmd: bitpos key bit start end if you need the `byte | bit` parameter, please use `BitPosSpan`.
func (ClusterClient) BitPosSpan ¶ added in v9.0.3
func (c ClusterClient) BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
BitPosSpan supports the `byte | bit` parameters in redis version 7.0, the bitpos command defaults to using byte type for the `start-end` range, which means it counts in bytes from start to end. you can set the value of "span" to determine the type of `start-end`. span = "bit", cmd: bitpos key bit start end bit span = "byte", cmd: bitpos key bit start end byte
func (ClusterClient) CFAdd ¶ added in v9.1.0
CFAdd adds an element to a Cuckoo filter. Returns true if the element was added to the filter or false if it already exists in the filter. For more information - https://redis.io/commands/cf.add/
func (ClusterClient) CFAddNX ¶ added in v9.1.0
CFAddNX adds an element to a Cuckoo filter only if it does not already exist in the filter. Returns true if the element was added to the filter or false if it already exists in the filter. For more information - https://redis.io/commands/cf.addnx/
func (ClusterClient) CFCount ¶ added in v9.1.0
CFCount returns an estimate of the number of times an element may be in a Cuckoo Filter. For more information - https://redis.io/commands/cf.count/
func (ClusterClient) CFDel ¶ added in v9.1.0
CFDel deletes an item once from the cuckoo filter. For more information - https://redis.io/commands/cf.del/
func (ClusterClient) CFExists ¶ added in v9.1.0
CFExists determines whether an item may exist in the Cuckoo Filter or not. For more information - https://redis.io/commands/cf.exists/
func (ClusterClient) CFInfo ¶ added in v9.1.0
CFInfo returns information about a Cuckoo filter. For more information - https://redis.io/commands/cf.info/
func (ClusterClient) CFInsert ¶ added in v9.1.0
func (c ClusterClient) CFInsert(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *BoolSliceCmd
CFInsert inserts elements into a Cuckoo filter. This function also allows for specifying additional options such as capacity, error rate, expansion rate, and non-scaling behavior. Returns an array of booleans indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/cf.insert/
func (ClusterClient) CFInsertNX ¶ added in v9.1.0
func (c ClusterClient) CFInsertNX(ctx context.Context, key string, options *CFInsertOptions, elements ...interface{}) *IntSliceCmd
CFInsertNX inserts elements into a Cuckoo filter only if they do not already exist in the filter. This function also allows for specifying additional options such as: capacity, error rate, expansion rate, and non-scaling behavior. Returns an array of integers indicating whether each element was added to the filter or not. For more information - https://redis.io/commands/cf.insertnx/
func (ClusterClient) CFLoadChunk ¶ added in v9.1.0
func (c ClusterClient) CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd
CFLoadChunk restores a filter previously saved using SCANDUMP. For more information - https://redis.io/commands/cf.loadchunk/
func (ClusterClient) CFMExists ¶ added in v9.1.0
func (c ClusterClient) CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
CFMExists check if multiple elements exist in a Cuckoo filter. Returns an array of booleans indicating whether each element exists in the filter or not. For more information - https://redis.io/commands/cf.mexists/
func (ClusterClient) CFReserve ¶ added in v9.1.0
CFReserve creates an empty Cuckoo filter with the specified capacity. For more information - https://redis.io/commands/cf.reserve/
func (ClusterClient) CFReserveBucketSize ¶ added in v9.1.0
func (c ClusterClient) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
CFReserveBucketSize creates an empty Cuckoo filter with the specified capacity and bucket size. For more information - https://redis.io/commands/cf.reserve/
func (ClusterClient) CFReserveExpansion ¶ added in v9.1.0
func (c ClusterClient) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
CFReserveExpansion creates an empty Cuckoo filter with the specified capacity and expansion rate. For more information - https://redis.io/commands/cf.reserve/
func (ClusterClient) CFReserveMaxIterations ¶ added in v9.1.0
func (c ClusterClient) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
CFReserveMaxIterations creates an empty Cuckoo filter with the specified capacity and maximum number of iterations. For more information - https://redis.io/commands/cf.reserve/
func (ClusterClient) CFReserveWithArgs ¶ added in v9.2.0
func (c ClusterClient) CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
CFReserveWithArgs creates an empty Cuckoo filter with the specified options. This function allows for specifying additional options such as bucket size and maximum number of iterations. For more information - https://redis.io/commands/cf.reserve/
func (ClusterClient) CFScanDump ¶ added in v9.1.0
func (c ClusterClient) CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
CFScanDump begins an incremental save of the cuckoo filter. For more information - https://redis.io/commands/cf.scandump/
func (ClusterClient) CMSIncrBy ¶ added in v9.1.0
func (c ClusterClient) CMSIncrBy(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
CMSIncrBy increments the count of one or more items in a Count-Min Sketch filter. Returns an array of integers representing the updated count of each item. For more information - https://redis.io/commands/cms.incrby/
func (ClusterClient) CMSInfo ¶ added in v9.1.0
func (c ClusterClient) CMSInfo(ctx context.Context, key string) *CMSInfoCmd
CMSInfo returns information about a Count-Min Sketch filter. For more information - https://redis.io/commands/cms.info/
func (ClusterClient) CMSInitByDim ¶ added in v9.1.0
CMSInitByDim creates an empty Count-Min Sketch filter with the specified dimensions. For more information - https://redis.io/commands/cms.initbydim/
func (ClusterClient) CMSInitByProb ¶ added in v9.1.0
func (c ClusterClient) CMSInitByProb(ctx context.Context, key string, errorRate, probability float64) *StatusCmd
CMSInitByProb creates an empty Count-Min Sketch filter with the specified error rate and probability. For more information - https://redis.io/commands/cms.initbyprob/
func (ClusterClient) CMSMerge ¶ added in v9.1.0
func (c ClusterClient) CMSMerge(ctx context.Context, destKey string, sourceKeys ...string) *StatusCmd
CMSMerge merges multiple Count-Min Sketch filters into a single filter. The destination filter must not exist and will be created with the dimensions of the first source filter. The number of items in each source filter must be equal. Returns OK on success or an error if the filters could not be merged. For more information - https://redis.io/commands/cms.merge/
func (ClusterClient) CMSMergeWithWeight ¶ added in v9.1.0
func (c ClusterClient) CMSMergeWithWeight(ctx context.Context, destKey string, sourceKeys map[string]int64) *StatusCmd
CMSMergeWithWeight merges multiple Count-Min Sketch filters into a single filter with weights for each source filter. The destination filter must not exist and will be created with the dimensions of the first source filter. The number of items in each source filter must be equal. Returns OK on success or an error if the filters could not be merged. For more information - https://redis.io/commands/cms.merge/
func (ClusterClient) CMSQuery ¶ added in v9.1.0
func (c ClusterClient) CMSQuery(ctx context.Context, key string, elements ...interface{}) *IntSliceCmd
CMSQuery returns count for item(s). For more information - https://redis.io/commands/cms.query/
func (ClusterClient) ClientGetName ¶
ClientGetName returns the name of the connection.
func (ClusterClient) ClientInfo ¶ added in v9.0.4
func (c ClusterClient) ClientInfo(ctx context.Context) *ClientInfoCmd
func (ClusterClient) ClientKill ¶
func (ClusterClient) ClientKillByFilter ¶
ClientKillByFilter is new style syntax, while the ClientKill is old
CLIENT KILL <option> [value] ... <option> [value]
func (ClusterClient) ClientList ¶
func (ClusterClient) ClientMaintNotifications ¶ added in v9.15.0
func (c ClusterClient) ClientMaintNotifications(ctx context.Context, enabled bool, endpointType string) *StatusCmd
ClientMaintNotifications enables or disables maintenance notifications for maintenance upgrades. When enabled, the client will receive push notifications about Redis maintenance events.
func (ClusterClient) ClientPause ¶
func (ClusterClient) ClientTracking ¶ added in v9.22.0
func (c ClusterClient) ClientTracking(ctx context.Context, on bool, opt *ClientTrackingOptions) *StatusCmd
ClientTracking enables or disables server-assisted client-side caching for the ONE connection that happens to serve this command. On a pooled client that connection is arbitrary, so this is only meaningful on a dedicated connection (see Client.Conn). When on is false, opt is ignored. Invalid option combinations are reported via the returned command's Err and nothing is sent to the server.
Must not be combined with the built-in client-side cache: on a client configured with Options.ClientSideCache or ClientSideCacheConfig this command is rejected, because changing a pool connection's tracking state would silently break the cache's invalidation.
func (ClusterClient) ClientTrackingOff ¶ added in v9.22.0
ClientTrackingOff disables tracking on the serving connection. See ClientTracking for the pooled-client and built-in-CSC caveats.
func (ClusterClient) ClientTrackingOn ¶ added in v9.22.0
func (c ClusterClient) ClientTrackingOn(ctx context.Context, opt *ClientTrackingOptions) *StatusCmd
ClientTrackingOn enables tracking on the serving connection. See ClientTracking for the pooled-client and built-in-CSC caveats.
func (ClusterClient) ClientUnblock ¶
func (ClusterClient) ClientUnblockWithError ¶
func (ClusterClient) ClientUnpause ¶
func (*ClusterClient) Close ¶
func (c *ClusterClient) Close() error
Close closes the cluster client, releasing any open resources.
It is rare to Close a ClusterClient, as the ClusterClient is meant to be long-lived and shared between many goroutines.
func (ClusterClient) ClusterAddSlots ¶
func (ClusterClient) ClusterAddSlotsRange ¶
func (ClusterClient) ClusterCountFailureReports ¶
func (ClusterClient) ClusterCountKeysInSlot ¶
func (ClusterClient) ClusterDelSlots ¶
func (ClusterClient) ClusterDelSlotsRange ¶
func (ClusterClient) ClusterFailover ¶
func (ClusterClient) ClusterForget ¶
func (ClusterClient) ClusterGetKeysInSlot ¶
func (c ClusterClient) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
func (ClusterClient) ClusterInfo ¶
func (ClusterClient) ClusterKeySlot ¶
func (ClusterClient) ClusterLinks ¶ added in v9.0.3
func (c ClusterClient) ClusterLinks(ctx context.Context) *ClusterLinksCmd
func (ClusterClient) ClusterMeet ¶
func (ClusterClient) ClusterMyID ¶ added in v9.8.0
func (ClusterClient) ClusterMyShardID ¶ added in v9.0.4
func (ClusterClient) ClusterNodes ¶
func (ClusterClient) ClusterReplicate ¶
func (ClusterClient) ClusterResetHard ¶
func (ClusterClient) ClusterResetSoft ¶
func (ClusterClient) ClusterSaveConfig ¶
func (ClusterClient) ClusterShards ¶ added in v9.0.3
func (c ClusterClient) ClusterShards(ctx context.Context) *ClusterShardsCmd
func (ClusterClient) ClusterSlaves
deprecated
func (c ClusterClient) ClusterSlaves(ctx context.Context, nodeID string) *StringSliceCmd
ClusterSlaves lists the replica nodes of a master node.
Deprecated: Use ClusterReplicas instead as of Redis 5.0.0.
func (ClusterClient) ClusterSlots
deprecated
func (c ClusterClient) ClusterSlots(ctx context.Context) *ClusterSlotsCmd
ClusterSlots returns the mapping of cluster slots to nodes.
Deprecated: Use ClusterShards instead as of Redis 7.0.0.
func (ClusterClient) Command ¶
func (c ClusterClient) Command(ctx context.Context) *CommandsInfoCmd
func (ClusterClient) CommandGetKeys ¶ added in v9.0.3
func (c ClusterClient) CommandGetKeys(ctx context.Context, commands ...interface{}) *StringSliceCmd
func (ClusterClient) CommandGetKeysAndFlags ¶ added in v9.0.3
func (c ClusterClient) CommandGetKeysAndFlags(ctx context.Context, commands ...interface{}) *KeyFlagsCmd
func (ClusterClient) CommandList ¶ added in v9.0.3
func (c ClusterClient) CommandList(ctx context.Context, filter *FilterBy) *StringSliceCmd
func (ClusterClient) ConfigGet ¶
func (c ClusterClient) ConfigGet(ctx context.Context, parameter string) *MapStringStringCmd
func (ClusterClient) ConfigResetStat ¶
func (ClusterClient) ConfigRewrite ¶
func (ClusterClient) DebugObject ¶
func (ClusterClient) DelExArgs ¶ added in v9.17.0
DelExArgs Redis `DELEX key [IFEQ|IFNE|IFDEQ|IFDNE] match-value` command. Compare-and-delete with flexible conditions.
Returns the number of keys that were removed (0 or 1).
NOTE DelExArgs is still experimental it's signature and behaviour may change
func (ClusterClient) Digest ¶ added in v9.17.0
Digest returns the xxh3 hash (uint64) of the specified key's value.
The digest is a 64-bit xxh3 hash that can be used for optimistic locking with SetIFDEQ, SetIFDNE, and DelExArgs commands.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/digest/
NOTE Digest is still experimental it's signature and behaviour may change
func (ClusterClient) DoRaw ¶ added in v9.19.0
DoRaw executes a command and returns the raw RESP protocol bytes without parsing.
func (ClusterClient) DoRawWriteTo ¶ added in v9.19.0
func (c ClusterClient) DoRawWriteTo(ctx context.Context, w io.Writer, args ...interface{}) *RawWriteToCmd
DoRawWriteTo executes a command and streams raw RESP bytes directly to w without intermediate allocations.
func (ClusterClient) ExpireTime ¶ added in v9.0.3
func (c ClusterClient) ExpireTime(ctx context.Context, key string) *DurationCmd
ExpireTime returns the absolute expiration time of key as a Unix timestamp encoded in *DurationCmd (seconds since the epoch), not a remaining TTL. Convert with: time.Unix(int64(d/time.Second), 0). Use TTL/PTTL for remaining TTL.
func (ClusterClient) FCallRo ¶ added in v9.0.3
func (c ClusterClient) FCallRo(ctx context.Context, function string, keys []string, args ...interface{}) *Cmd
FCallRo this function simply calls FCallRO, Deprecated: to maintain convention FCallRO.
func (ClusterClient) FTAggregate ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTAggregateWithArgs ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTAliasAdd ¶ added in v9.5.4
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/)
func (ClusterClient) FTAliasDel ¶ added in v9.5.4
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/)
func (ClusterClient) FTAliasList ¶ added in v9.22.0
func (c ClusterClient) FTAliasList(ctx context.Context, index string) *StringSliceCmd
FTAliasList - Lists all aliases associated with an index. The 'index' parameter specifies the index whose aliases are listed; it must be the name of an index created with FT.CREATE, not an alias. The reply is an unordered collection of alias names, already deduplicated by the server; an index with no aliases yields an empty result, not an error. Available since Redis 8.10. For more information, please refer to the Redis documentation: [FT.ALIASLIST]: (https://redis.io/commands/ft.aliaslist/)
func (ClusterClient) FTAliasUpdate ¶ added in v9.5.4
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/)
func (ClusterClient) FTAlter ¶ added in v9.5.4
func (c ClusterClient) FTAlter(ctx context.Context, index string, skipInitialScan 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/)
func (ClusterClient) FTConfigGet
deprecated
added in
v9.5.4
func (c ClusterClient) FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
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 FT.CONFIG GET documentation.
Deprecated: FTConfigGet is deprecated in Redis 8. All configuration will be done with the CONFIG GET command. For more information check Client.ConfigGet and CONFIG GET Documentation
func (ClusterClient) FTConfigSet
deprecated
added in
v9.5.4
func (c ClusterClient) FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmd
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 FT.CONFIG SET documentation.
Deprecated: FTConfigSet is deprecated in Redis 8. All configuration will be done with the CONFIG SET command. For more information check Client.ConfigSet and CONFIG SET Documentation
func (ClusterClient) FTCreate ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTCursorDel ¶ added in v9.5.4
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/)
func (ClusterClient) FTCursorRead ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTDictAdd ¶ added in v9.5.4
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/)
func (ClusterClient) FTDictDel ¶ added in v9.5.4
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/)
func (ClusterClient) FTDictDump ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTDropIndex ¶ added in v9.5.4
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/)
func (ClusterClient) FTDropIndexWithArgs ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTExplain ¶ added in v9.5.4
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/)
func (ClusterClient) FTExplainCli ¶ added in v9.5.4
FTExplainCli - Returns the execution plan for a complex query. [Not Implemented] For more information, see https://redis.io/commands/ft.explaincli/
func (ClusterClient) FTExplainWithArgs ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTHybrid ¶ added in v9.17.0
func (c ClusterClient) FTHybrid(ctx context.Context, index string, searchExpr string, vectorField string, vectorData Vector) *FTHybridCmd
FTHybrid - Executes a hybrid search combining full-text search and vector similarity The 'index' parameter specifies the index to search, 'searchExpr' is the search query, 'vectorField' is the name of the vector field, and 'vectorData' is the vector to search with. FTHybrid is still experimental, the command behaviour and signature may change
func (ClusterClient) FTHybridWithArgs ¶ added in v9.17.0
func (c ClusterClient) FTHybridWithArgs(ctx context.Context, index string, options *FTHybridOptions) *FTHybridCmd
FTHybridWithArgs - Executes a hybrid search with advanced options FTHybridWithArgs is still experimental, the command behaviour and signature may change
Vector data is always sent through the PARAMS mechanism, because inline vector blobs are no longer supported by Redis. For every vector expression whose VectorParamName is empty, a unique name is generated (e.g. "__vector_param_0") and the corresponding blob is passed via PARAMS.
options.Params is never mutated: the command is built from a local copy that combines the caller-provided params with any generated vector parameters. This makes it safe to reuse the same *FTHybridOptions across multiple calls. Generated names are also reserved against all explicit VectorParamName values, so they never collide with explicit names (even those following the "__vector_param_N" pattern).
func (ClusterClient) FTInfo ¶ added in v9.5.4
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/)
func (ClusterClient) FTSearch ¶ added in v9.5.4
func (c ClusterClient) FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
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 about [FT.SEARCH].
[FT.SEARCH]: (https://redis.io/commands/ft.search/)
func (ClusterClient) FTSearchWithArgs ¶ added in v9.5.4
func (c ClusterClient) 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 about [FT.SEARCH].
[FT.SEARCH]: (https://redis.io/commands/ft.search/)
func (ClusterClient) FTSpellCheck ¶ added in v9.5.4
func (c ClusterClient) FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
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/)
func (ClusterClient) FTSpellCheckWithArgs ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTSynDump ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTSynUpdate ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTSynUpdateWithArgs ¶ added in v9.5.4
func (c ClusterClient) 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/)
func (ClusterClient) FTTagVals ¶ added in v9.5.4
func (c ClusterClient) FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd
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/)
func (ClusterClient) FT_List ¶ added in v9.5.4
func (c ClusterClient) FT_List(ctx context.Context) *StringSliceCmd
FT_List - Lists all the existing indexes in the database. For more information, please refer to the Redis documentation: [FT._LIST]: (https://redis.io/commands/ft._list/)
func (ClusterClient) FlushAllAsync ¶
func (ClusterClient) FlushDBAsync ¶
func (*ClusterClient) ForEachMaster ¶
func (c *ClusterClient) ForEachMaster( ctx context.Context, fn func(ctx context.Context, client *Client) error, ) error
ForEachMaster concurrently calls the fn on each master node in the cluster. It returns the first error if any.
func (*ClusterClient) ForEachShard ¶
func (c *ClusterClient) ForEachShard( ctx context.Context, fn func(ctx context.Context, client *Client) error, ) error
ForEachShard concurrently calls the fn on each known node in the cluster. It returns the first error if any.
func (*ClusterClient) ForEachSlave ¶
func (c *ClusterClient) ForEachSlave( ctx context.Context, fn func(ctx context.Context, client *Client) error, ) error
ForEachSlave concurrently calls the fn on each slave node in the cluster. It returns the first error if any.
func (ClusterClient) FunctionDelete ¶ added in v9.0.3
func (ClusterClient) FunctionDump ¶ added in v9.0.3
func (ClusterClient) FunctionFlush ¶ added in v9.0.3
func (ClusterClient) FunctionFlushAsync ¶ added in v9.0.3
func (ClusterClient) FunctionKill ¶ added in v9.0.3
func (ClusterClient) FunctionList ¶ added in v9.0.3
func (c ClusterClient) FunctionList(ctx context.Context, q FunctionListQuery) *FunctionListCmd
func (ClusterClient) FunctionLoad ¶ added in v9.0.3
func (ClusterClient) FunctionLoadReplace ¶ added in v9.0.3
func (ClusterClient) FunctionRestore ¶ added in v9.0.3
func (ClusterClient) FunctionStats ¶ added in v9.0.3
func (c ClusterClient) FunctionStats(ctx context.Context) *FunctionStatsCmd
func (ClusterClient) GeoAdd ¶
func (c ClusterClient) GeoAdd(ctx context.Context, key string, geoLocation ...*GeoLocation) *IntCmd
func (ClusterClient) GeoHash ¶
func (c ClusterClient) GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
func (ClusterClient) GeoRadius
deprecated
func (c ClusterClient) GeoRadius( ctx context.Context, key string, longitude, latitude float64, query *GeoRadiusQuery, ) *GeoLocationCmd
GeoRadius queries a geospatial index for members within a distance from a coordinate. This is a read-only variant that does not support Store or StoreDist options.
Deprecated: Use GeoSearch with BYRADIUS argument instead as of Redis 6.2.0.
func (ClusterClient) GeoRadiusByMember
deprecated
func (c ClusterClient) GeoRadiusByMember( ctx context.Context, key, member string, query *GeoRadiusQuery, ) *GeoLocationCmd
GeoRadiusByMember queries a geospatial index for members within a distance from a member. This is a read-only variant that does not support Store or StoreDist options.
Deprecated: Use GeoSearch with BYRADIUS and FROMMEMBER arguments instead as of Redis 6.2.0.
func (ClusterClient) GeoRadiusByMemberStore ¶
func (c ClusterClient) GeoRadiusByMemberStore( ctx context.Context, key, member string, query *GeoRadiusQuery, ) *IntCmd
GeoRadiusByMemberStore is a writing GEORADIUSBYMEMBER command.
func (ClusterClient) GeoRadiusStore ¶
func (c ClusterClient) GeoRadiusStore( ctx context.Context, key string, longitude, latitude float64, query *GeoRadiusQuery, ) *IntCmd
GeoRadiusStore is a writing GEORADIUS command.
func (ClusterClient) GeoSearch ¶
func (c ClusterClient) GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
func (ClusterClient) GeoSearchLocation ¶
func (c ClusterClient) GeoSearchLocation( ctx context.Context, key string, q *GeoSearchLocationQuery, ) *GeoSearchLocationCmd
func (ClusterClient) GeoSearchStore ¶
func (c ClusterClient) GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
func (ClusterClient) Get ¶
Get Redis `GET key` command. It returns redis.Nil error when key does not exist.
func (ClusterClient) GetEx ¶
GetEx An expiration of zero removes the TTL associated with the key (i.e. GETEX key persist). Requires Redis >= 6.2.0.
func (*ClusterClient) GetResolver ¶ added in v9.18.0
func (c *ClusterClient) GetResolver() *commandInfoResolver
func (ClusterClient) GetToBuffer ¶ added in v9.21.0
func (c ClusterClient) GetToBuffer(ctx context.Context, key string, buf []byte) *ZeroCopyStringCmd
GetToBuffer executes GET and reads the reply directly into buf, avoiding the intermediate string allocation that *StringCmd would produce. For values larger than the connection's read buffer, the payload is read straight from the socket into buf — effectively zero-copy on the receive path.
The returned *ZeroCopyStringCmd reports the number of bytes read via Val(), the populated slice via Bytes() (which is buf[:Val()]), and any error (including redis.Nil when the key does not exist) via Err(). If buf is too small to hold the value, Err() returns a "buffer too small" error.
Nothing is ever written past len(buf). When len(buf) >= value length + 2, the read takes a fast path that pulls the payload and the protocol's trailing CRLF in a single socket read, using the two bytes after the payload as scratch — size buffers with 2 spare bytes to opt in (see example/zerocopy-buffer).
This command opts out of automatic retries because partial data from a failed attempt would already be sitting in the caller's buffer.
func (ClusterClient) HExpire ¶ added in v9.5.4
func (c ClusterClient) HExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
HExpire - Sets the expiration time for specified fields in a hash in seconds. The command constructs an argument list starting with "HEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HEXPIRE Documentation.
func (ClusterClient) HExpireAt ¶ added in v9.5.4
func (c ClusterClient) HExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
HExpireAt - Sets the expiration time for specified fields in a hash to a UNIX timestamp in seconds. Takes a key, a UNIX timestamp, a struct of conditional flags, and a list of fields. The command sets absolute expiration times based on the UNIX timestamp provided. Available since Redis 7.4 CE. For more information refer to HExpireAt Documentation.
func (ClusterClient) HExpireAtWithArgs ¶ added in v9.5.4
func (c ClusterClient) HExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (ClusterClient) HExpireTime ¶ added in v9.5.4
func (c ClusterClient) HExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
HExpireTime - Retrieves the expiration time for specified fields in a hash as a UNIX timestamp in seconds. Requires a key and the fields themselves to fetch their expiration timestamps. This command returns the expiration times for each field or error/status codes for each field as specified. Available since Redis 7.4 CE. For more information refer to [HExpireTime Documentation].
[HExpireTime Documentation]: https://redis.io/commands/hexpiretime/ For more information - https://redis.io/commands/hexpiretime/
func (ClusterClient) HExpireWithArgs ¶ added in v9.5.4
func (c ClusterClient) HExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
HExpireWithArgs - Sets the expiration time for specified fields in a hash in seconds. It requires a key, an expiration duration, a struct with boolean flags for conditional expiration settings (NX, XX, GT, LT), and a list of fields. The command constructs an argument list starting with "HEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HEXPIRE Documentation.
func (ClusterClient) HGetAll ¶
func (c ClusterClient) HGetAll(ctx context.Context, key string) *MapStringStringCmd
HGetAll returns a map of all fields and values stored at key.
Returns an empty map when key does not exist.
Time complexity: O(N) where N is the size of the hash.
func (ClusterClient) HGetDel ¶ added in v9.8.0
func (c ClusterClient) HGetDel(ctx context.Context, key string, fields ...string) *StringSliceCmd
func (ClusterClient) HGetEX ¶ added in v9.8.0
func (c ClusterClient) HGetEX(ctx context.Context, key string, fields ...string) *StringSliceCmd
func (ClusterClient) HGetEXWithArgs ¶ added in v9.8.0
func (c ClusterClient) HGetEXWithArgs(ctx context.Context, key string, options *HGetEXOptions, fields ...string) *StringSliceCmd
func (*ClusterClient) HImportDiscard ¶ added in v9.22.0
func (c *ClusterClient) HImportDiscard(ctx context.Context, fieldsetName string) *IntCmd
HImportDiscard removes the fieldset from the cluster-wide registry and discards it on every master; connections the fan-out does not reach replay the discard before their next HIMPORT command. It returns 1 if the fieldset was registered on this client and is now removed.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (*ClusterClient) HImportDiscardAll ¶ added in v9.22.0
func (c *ClusterClient) HImportDiscardAll(ctx context.Context) *IntCmd
HImportDiscardAll removes all fieldsets from the cluster-wide registry and wipes them on every master; connections the fan-out does not reach replay the wipe before their next HIMPORT command. It returns the number of fieldsets removed from the registry.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (*ClusterClient) HImportPrepare ¶ added in v9.22.0
func (c *ClusterClient) HImportPrepare(ctx context.Context, fieldsetName string, fields ...string) *StatusCmd
HImportPrepare registers the fieldset in the cluster-wide registry and eagerly prepares one connection on every master; all other connections — including those of replicas promoted later and masters added by resharding — are prepared lazily before their first HImportSet. See HashCmdable.HImportPrepare (cmdable) for the fieldset semantics.
The fan-out is best-effort and reports the first error: on a server rejection (e.g. duplicate field name) the registration is withdrawn and any sessions the fan-out already prepared are cleaned lazily; on a transport failure the registration is kept and lazy replay covers the connections the fan-out missed.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (ClusterClient) HImportSet ¶ added in v9.22.0
func (c ClusterClient) HImportSet(ctx context.Context, key, fieldsetName string, values ...interface{}) *StatusCmd
HImportSet creates or fully replaces the hash at key using the field list registered under fieldsetName, pairing values positionally with the prepared fields:
HIMPORT SET key fieldset_name value [value ...]
The number of values must equal the fieldset's field count. The resulting key is a regular hash readable and writable by all hash commands. If the fieldset was registered through HImportPrepare on this client, it is prepared automatically on whichever pooled connection executes the command; otherwise the fieldset must have been prepared on the executing connection or the server replies "ERR no such fieldset".
"no such fieldset" never surfaces for a registered fieldset: a single-command HImportSet whose connection lost its session state (e.g. RESET) is transparently re-prepared and retried once — the failure also stales every other connection's prepared flag, so the retry re-prepares wherever it lands, and this recovery attempt is granted even when retries are disabled (MaxRetries -1). In pipelines the failed HImportSets — and only those — are re-prepared and re-issued once on the same connection (HIMPORT SET is a full replace, so the re-execution is idempotent and no other command of the batch runs again). Inside transactions the error does surface after EXEC — an executed transaction cannot be partially re-run — but the prepared flags are invalidated, so retrying the transaction succeeds.
Requires Redis 8.10 or newer.
note: the API is experimental and may be subject to change.
func (ClusterClient) HIncrByFloat ¶
func (ClusterClient) HKeys ¶
func (c ClusterClient) HKeys(ctx context.Context, key string) *StringSliceCmd
func (ClusterClient) HMGet ¶
HMGet returns the values for the specified fields in the hash stored at key. It returns an interface{} to distinguish between empty string and nil value.
func (ClusterClient) HMSet ¶
HMSet is a deprecated version of HSet left for compatibility with Redis 3.
func (ClusterClient) HPExpire ¶ added in v9.5.4
func (c ClusterClient) HPExpire(ctx context.Context, key string, expiration time.Duration, fields ...string) *IntSliceCmd
HPExpire - Sets the expiration time for specified fields in a hash in milliseconds. Similar to HExpire, it accepts a key, an expiration duration in milliseconds, a struct with expiration condition flags, and a list of fields. The command modifies the standard time.Duration to milliseconds for the Redis command. Available since Redis 7.4 CE. For more information refer to HPEXPIRE Documentation.
func (ClusterClient) HPExpireAt ¶ added in v9.5.4
func (c ClusterClient) HPExpireAt(ctx context.Context, key string, tm time.Time, fields ...string) *IntSliceCmd
HPExpireAt - Sets the expiration time for specified fields in a hash to a UNIX timestamp in milliseconds. Similar to HExpireAt but for timestamps in milliseconds. It accepts the same parameters and adjusts the UNIX time to milliseconds. Available since Redis 7.4 CE. For more information refer to HExpireAt Documentation.
func (ClusterClient) HPExpireAtWithArgs ¶ added in v9.5.4
func (c ClusterClient) HPExpireAtWithArgs(ctx context.Context, key string, tm time.Time, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
func (ClusterClient) HPExpireTime ¶ added in v9.5.4
func (c ClusterClient) HPExpireTime(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPExpireTime - Retrieves the expiration time for specified fields in a hash as a UNIX timestamp in milliseconds. Similar to HExpireTime, adjusted for timestamps in milliseconds. It requires the same parameters. Provides the expiration timestamp for each field in milliseconds. Available since Redis 7.4 CE. For more information refer to [HExpireTime Documentation].
[HExpireTime Documentation]: https://redis.io/commands/hexpiretime/ For more information - https://redis.io/commands/hexpiretime/
func (ClusterClient) HPExpireWithArgs ¶ added in v9.5.4
func (c ClusterClient) HPExpireWithArgs(ctx context.Context, key string, expiration time.Duration, expirationArgs HExpireArgs, fields ...string) *IntSliceCmd
HPExpireWithArgs - Sets the expiration time for specified fields in a hash in milliseconds. It requires a key, an expiration duration, a struct with boolean flags for conditional expiration settings (NX, XX, GT, LT), and a list of fields. The command constructs an argument list starting with "HPEXPIRE", followed by the key, duration, any conditional flags, and the specified fields. Available since Redis 7.4 CE. For more information refer to HPEXPIRE Documentation.
func (ClusterClient) HPTTL ¶ added in v9.5.4
func (c ClusterClient) HPTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPTTL - Retrieves the remaining time to live for specified fields in a hash in milliseconds. Similar to HTTL, but returns the TTL in milliseconds. It requires a key and the specified fields. This command provides the TTL in milliseconds for each field or returns error/status codes as needed. Available since Redis 7.4 CE. For more information refer to [HPTTL Documentation].
[HPTTL Documentation]: https://redis.io/commands/hpttl/ For more information - https://redis.io/commands/hpttl/
func (ClusterClient) HPersist ¶ added in v9.5.4
func (c ClusterClient) HPersist(ctx context.Context, key string, fields ...string) *IntSliceCmd
HPersist - Removes the expiration time from specified fields in a hash. Accepts a key and the fields themselves. This command ensures that each field specified will have its expiration removed if present. Available since Redis 7.4 CE. For more information refer to HPersist Documentation.
func (ClusterClient) HRandField ¶
func (c ClusterClient) HRandField(ctx context.Context, key string, count int) *StringSliceCmd
HRandField redis-server version >= 6.2.0.
func (ClusterClient) HRandFieldWithValues ¶
func (c ClusterClient) HRandFieldWithValues(ctx context.Context, key string, count int) *KeyValueSliceCmd
HRandFieldWithValues redis-server version >= 6.2.0.
func (ClusterClient) HScanNoValues ¶ added in v9.5.4
func (ClusterClient) HSet ¶
HSet accepts values in following formats:
HSet(ctx, "myhash", "key1", "value1", "key2", "value2")
HSet(ctx, "myhash", []string{"key1", "value1", "key2", "value2"})
HSet(ctx, "myhash", map[string]interface{}{"key1": "value1", "key2": "value2"})
Playing struct With "redis" tag. type MyHash struct { Key1 string `redis:"key1"`; Key2 int `redis:"key2"` }
HSet(ctx, "myhash", MyHash{"value1", "value2"}) Warn: redis-server >= 4.0
For struct, can be a structure pointer type, we only parse the field whose tag is redis. if you don't want the field to be read, you can use the `redis:"-"` flag to ignore it, or you don't need to set the redis tag. For the type of structure field, we only support simple data types: string, int/uint(8,16,32,64), float(32,64), time.Time(to RFC3339Nano), time.Duration(to Nanoseconds ), if you are other more complex or custom data types, please implement the encoding.BinaryMarshaler interface.
Note that in older versions of Redis server(redis-server < 4.0), HSet only supports a single key-value pair. redis-docs: https://redis.io/commands/hset (Starting with Redis version 4.0.0: Accepts multiple field and value arguments.) If you are using a Struct type and the number of fields is greater than one, you will receive an error similar to "ERR wrong number of arguments", you can use HMSet as a substitute.
func (ClusterClient) HSetEXWithArgs ¶ added in v9.8.0
func (ClusterClient) HTTL ¶ added in v9.5.4
func (c ClusterClient) HTTL(ctx context.Context, key string, fields ...string) *IntSliceCmd
HTTL - Retrieves the remaining time to live for specified fields in a hash in seconds. Requires a key and the fields themselves. It returns the TTL for each specified field. This command fetches the TTL in seconds for each field or returns error/status codes as appropriate. Available since Redis 7.4 CE. For more information refer to HTTL Documentation.
func (ClusterClient) HVals ¶
func (c ClusterClient) HVals(ctx context.Context, key string) *StringSliceCmd
func (ClusterClient) IncrByFloat ¶
func (ClusterClient) IncrEXFloat ¶ added in v9.20.0
func (c ClusterClient) IncrEXFloat(ctx context.Context, key string, a IncrEXFloatArgs) *IncrEXFloatCmd
IncrEXFloat Redis `INCREX key [BYFLOAT amount] [LBOUND value] [UBOUND value] [SATURATE] [EX seconds | PX ms | EXAT ts | PXAT ts | PERSIST] [ENX]` command.
Available since Redis 8.8. For more information, see https://redis.io/commands/increx
func (ClusterClient) IncrEXInt ¶ added in v9.20.0
func (c ClusterClient) IncrEXInt(ctx context.Context, key string, a IncrEXIntArgs) *IncrEXIntCmd
IncrEXInt Redis `INCREX key [BYINT amount] [LBOUND value] [UBOUND value] [SATURATE] [EX seconds | PX ms | EXAT ts | PXAT ts | PERSIST] [ENX]` command.
Atomically increments the integer value stored at key, optionally constraining the result to a range and applying expiration semantics. Returns the new value and the increment that was actually applied. When the increment would exceed LBOUND/UBOUND and SATURATE is not set, the key and TTL are left unchanged and the reply is [current_value, 0].
Available since Redis 8.8. For more information, see https://redis.io/commands/increx
func (ClusterClient) JSONArrAppend ¶ added in v9.3.0
func (c ClusterClient) 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 (ClusterClient) JSONArrIndex ¶ added in v9.3.0
func (c ClusterClient) 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
func (ClusterClient) JSONArrIndexWithArgs ¶ added in v9.3.0
func (c ClusterClient) JSONArrIndexWithArgs(ctx context.Context, key, path string, options *JSONArrIndexArgs, value ...interface{}) *IntSliceCmd
JSONArrIndexWithArgs searches for the first occurrence of a JSON value in an array while allowing the start and stop options to be provided. For more information, see https://redis.io/commands/json.arrindex
func (ClusterClient) JSONArrInsert ¶ added in v9.3.0
func (c ClusterClient) JSONArrInsert(ctx context.Context, key, path string, index int64, values ...interface{}) *IntSliceCmd
JSONArrInsert inserts the JSON values into the array at the specified path before the index (shifts to the right). For more information, see https://redis.io/commands/json.arrinsert
func (ClusterClient) JSONArrLen ¶ added in v9.3.0
func (c ClusterClient) JSONArrLen(ctx context.Context, key, path string) *IntSliceCmd
JSONArrLen reports the length of the JSON array at the specified path in the given key. For more information, see https://redis.io/commands/json.arrlen
func (ClusterClient) JSONArrPop ¶ added in v9.3.0
func (c ClusterClient) JSONArrPop(ctx context.Context, key, path string, index int) *StringSliceCmd
JSONArrPop removes and returns an element from the specified index in the array. For more information, see https://redis.io/commands/json.arrpop
func (ClusterClient) JSONArrTrim ¶ added in v9.3.0
func (c ClusterClient) JSONArrTrim(ctx context.Context, key, path string) *IntSliceCmd
JSONArrTrim trims an array to contain only the specified inclusive range of elements. For more information, see https://redis.io/commands/json.arrtrim
func (ClusterClient) JSONArrTrimWithArgs ¶ added in v9.3.0
func (c ClusterClient) JSONArrTrimWithArgs(ctx context.Context, key, path string, options *JSONArrTrimArgs) *IntSliceCmd
JSONArrTrimWithArgs trims an array to contain only the specified inclusive range of elements. For more information, see https://redis.io/commands/json.arrtrim
func (ClusterClient) JSONClear ¶ added in v9.3.0
JSONClear clears container values (arrays/objects) and sets numeric values to 0. For more information, see https://redis.io/commands/json.clear
func (ClusterClient) JSONDebugMemory ¶ added in v9.3.0
JSONDebugMemory reports a value's memory usage in bytes (unimplemented) For more information, see https://redis.io/commands/json.debug-memory
func (ClusterClient) JSONDel ¶ added in v9.3.0
JSONDel deletes a value. For more information, see https://redis.io/commands/json.del
func (ClusterClient) JSONForget ¶ added in v9.3.0
JSONForget deletes a value. For more information, see https://redis.io/commands/json.forget
func (ClusterClient) JSONGet ¶ added in v9.3.0
JSONGet returns the value at path in JSON serialized form. JSON.GET returns an array of strings. This function parses out the wrapping array but leaves the internal strings unprocessed by default (see Val()) For more information - https://redis.io/commands/json.get/
func (ClusterClient) JSONGetWithArgs ¶ added in v9.3.0
func (c ClusterClient) JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
JSONGetWithArgs - Retrieves the value of a key from a JSON document. This function also allows for specifying additional options such as: Indention, NewLine and Space For more information - https://redis.io/commands/json.get/
func (ClusterClient) JSONMGet ¶ added in v9.3.0
func (c ClusterClient) JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
JSONMGet returns the values at the specified path from multiple key arguments. Note - the arguments are reversed when compared with `JSON.MGET` as we want to follow the pattern of having the last argument be variable. For more information, see https://redis.io/commands/json.mget
func (ClusterClient) JSONMSetArgs ¶ added in v9.3.0
func (c ClusterClient) JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
JSONMSetArgs sets or updates one or more JSON values according to the specified key-path-value triplets. For more information, see https://redis.io/commands/json.mset
func (ClusterClient) JSONMerge ¶ added in v9.3.0
JSONMerge merges a given JSON value into matching paths. For more information, see https://redis.io/commands/json.merge
func (ClusterClient) JSONNumIncrBy ¶ added in v9.3.0
JSONNumIncrBy increments the number value stored at the specified path by the provided number. For more information, see https://redis.io/docs/latest/commands/json.numincrby/
func (ClusterClient) JSONObjKeys ¶ added in v9.3.0
JSONObjKeys returns the keys in the object that's referenced by the specified path. For more information, see https://redis.io/commands/json.objkeys
func (ClusterClient) JSONObjLen ¶ added in v9.3.0
func (c ClusterClient) JSONObjLen(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONObjLen reports the number of keys in the JSON object at the specified path in the given key. For more information, see https://redis.io/commands/json.objlen
func (ClusterClient) JSONSet ¶ added in v9.3.0
JSONSet sets the JSON value at the given path in the given key. The value must be something that can be marshaled to JSON (using encoding/JSON) unless the argument is a string or a []byte when we assume that it can be passed directly as JSON. For more information, see https://redis.io/commands/json.set
func (ClusterClient) JSONSetMode ¶ added in v9.3.0
func (c ClusterClient) 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 (ClusterClient) JSONSetWithArgs ¶ added in v9.20.0
func (c ClusterClient) JSONSetWithArgs(ctx context.Context, key, path string, value interface{}, options *JSONSetArgsOptions) *StatusCmd
JSONSetWithArgs sets the JSON value at the given path in the given key with optional arguments for setting mode (NX/XX) and the FPHA (Floating-Point Homogeneous Array) type used for storing FP arrays. 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 (ClusterClient) JSONStrAppend ¶ added in v9.3.0
func (c ClusterClient) JSONStrAppend(ctx context.Context, key, path, value string) *IntPointerSliceCmd
JSONStrAppend appends the JSON-string values to the string at the specified path. For more information, see https://redis.io/commands/json.strappend
func (ClusterClient) JSONStrLen ¶ added in v9.3.0
func (c ClusterClient) JSONStrLen(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONStrLen reports the length of the JSON String at the specified path in the given key. For more information, see https://redis.io/commands/json.strlen
func (ClusterClient) JSONToggle ¶ added in v9.3.0
func (c ClusterClient) JSONToggle(ctx context.Context, key, path string) *IntPointerSliceCmd
JSONToggle toggles a Boolean value stored at the specified path. For more information, see https://redis.io/commands/json.toggle
func (ClusterClient) JSONType ¶ added in v9.3.0
func (c ClusterClient) JSONType(ctx context.Context, key, path string) *JSONSliceCmd
JSONType reports the type of JSON value at the specified path. For more information, see https://redis.io/commands/json.type
func (ClusterClient) Keys ¶
func (c ClusterClient) Keys(ctx context.Context, pattern string) *StringSliceCmd
func (ClusterClient) LInsertAfter ¶
func (ClusterClient) LInsertBefore ¶
func (ClusterClient) LMPop ¶ added in v9.0.3
func (c ClusterClient) LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
LMPop Pops one or more elements from the first non-empty list key from the list of provided key names. direction: left or right, count: > 0 example: client.LMPop(ctx, "left", 3, "key1", "key2")
func (ClusterClient) LMoveM ¶ added in v9.22.0
func (c ClusterClient) LMoveM(ctx context.Context, source, destination, srcpos, destpos string, a LMoveMArgs) *StringSliceCmd
LMoveM atomically moves multiple elements between lists (Redis 8.10+). srcpos/destpos are "LEFT" or "RIGHT". Returns moved elements, or redis.Nil if none.
func (ClusterClient) LPopCount ¶
func (c ClusterClient) LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
func (ClusterClient) LRange ¶
func (c ClusterClient) LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
func (ClusterClient) Latency ¶ added in v9.17.0
func (c ClusterClient) Latency(ctx context.Context) *LatencyCmd
func (ClusterClient) LatencyReset ¶ added in v9.17.0
func (ClusterClient) MSet ¶
MSet is like Set but accepts multiple values:
- MSet("key1", "value1", "key2", "value2")
- MSet([]string{"key1", "value1", "key2", "value2"})
- MSet(map[string]interface{}{"key1": "value1", "key2": "value2"})
- MSet(struct), For struct types, see HSet description.
func (ClusterClient) MSetEX ¶ added in v9.17.0
func (c ClusterClient) MSetEX(ctx context.Context, args MSetEXArgs, values ...interface{}) *IntCmd
MSetEX sets the given keys to their respective values. This command is an extension of the MSETNX that adds expiration and XX options. Available since Redis 8.4 Important: When this method is used with Cluster clients, all keys must be in the same hash slot, otherwise CROSSSLOT error will be returned. For more information, see https://redis.io/commands/msetex
func (ClusterClient) MSetNX ¶
MSetNX is like SetNX but accepts multiple values:
- MSetNX("key1", "value1", "key2", "value2")
- MSetNX([]string{"key1", "value1", "key2", "value2"})
- MSetNX(map[string]interface{}{"key1": "value1", "key2": "value2"})
- MSetNX(struct), For struct types, see HSet description.
func (*ClusterClient) MasterForKey ¶
MasterForKey return a client to the master node for a particular key.
func (ClusterClient) MemoryUsage ¶
func (ClusterClient) ModuleLoadex ¶ added in v9.0.4
func (c ClusterClient) ModuleLoadex(ctx context.Context, conf *ModuleLoadexConfig) *StringCmd
ModuleLoadex Redis `MODULE LOADEX path [CONFIG name value [CONFIG name value ...]] [ARGS args [args ...]]` command.
func (ClusterClient) Monitor ¶ added in v9.3.1
func (c ClusterClient) Monitor(ctx context.Context, ch chan string) *MonitorCmd
Monitor - represents a Redis MONITOR command, allowing the user to capture and process all commands sent to a Redis server. This mimics the behavior of MONITOR in the redis-cli.
Notes: - Using MONITOR blocks the connection to the server for itself. It needs a dedicated connection - The user should create a channel of type string - This runs concurrently in the background. Trigger via the Start and Stop functions See further: Redis MONITOR command: https://redis.io/commands/monitor
func (*ClusterClient) NewDynamicResolver ¶ added in v9.18.0
func (c *ClusterClient) NewDynamicResolver() *commandInfoResolver
NewDynamicResolver returns a CommandInfoResolver that uses the underlying cmdInfo cache to resolve the policies
func (ClusterClient) ObjectEncoding ¶
func (ClusterClient) ObjectFreq ¶ added in v9.5.0
func (ClusterClient) ObjectIdleTime ¶
func (c ClusterClient) ObjectIdleTime(ctx context.Context, key string) *DurationCmd
func (ClusterClient) ObjectRefCount ¶
func (*ClusterClient) OnNewNode ¶
func (c *ClusterClient) OnNewNode(fn func(rdb *Client))
func (*ClusterClient) Options ¶
func (c *ClusterClient) Options() *ClusterOptions
Options returns read-only *ClusterOptions that were used to create the client. Any alteration of the returned *ClusterOptions may result in undefined behaviour.
func (ClusterClient) PExpireTime ¶ added in v9.0.3
func (c ClusterClient) PExpireTime(ctx context.Context, key string) *DurationCmd
PExpireTime returns the absolute expiration time of key as a Unix timestamp encoded in *DurationCmd (milliseconds since the epoch), not a remaining TTL. Convert with: time.UnixMilli(int64(d/time.Millisecond)). Use TTL/PTTL for remaining TTL.
func (*ClusterClient) PSubscribe ¶
func (c *ClusterClient) PSubscribe(ctx context.Context, channels ...string) *PubSub
PSubscribe subscribes the client to the given patterns. Patterns can be omitted to create empty subscription.
func (ClusterClient) PTTL ¶
func (c ClusterClient) PTTL(ctx context.Context, key string) *DurationCmd
func (*ClusterClient) Pipeline ¶
func (c *ClusterClient) Pipeline() Pipeliner
func (*ClusterClient) PoolStats ¶
func (c *ClusterClient) PoolStats() *PoolStats
PoolStats returns accumulated connection pool stats.
func (*ClusterClient) Process ¶
func (c *ClusterClient) Process(ctx context.Context, cmd Cmder) error
func (ClusterClient) PubSubChannels ¶
func (c ClusterClient) PubSubChannels(ctx context.Context, pattern string) *StringSliceCmd
func (ClusterClient) PubSubNumPat ¶
func (ClusterClient) PubSubNumSub ¶
func (c ClusterClient) PubSubNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
func (ClusterClient) PubSubShardChannels ¶
func (c ClusterClient) PubSubShardChannels(ctx context.Context, pattern string) *StringSliceCmd
func (ClusterClient) PubSubShardNumSub ¶
func (c ClusterClient) PubSubShardNumSub(ctx context.Context, channels ...string) *MapStringIntCmd
func (ClusterClient) RPopCount ¶
func (c ClusterClient) RPopCount(ctx context.Context, key string, count int) *StringSliceCmd
func (ClusterClient) RPopLPush
deprecated
RPopLPush atomically returns and removes the last element of the source list, and pushes the element as the first element of the destination list.
Deprecated: Use LMove with RIGHT and LEFT arguments instead as of Redis 6.2.0.
func (*ClusterClient) ReloadState ¶
func (c *ClusterClient) ReloadState(ctx context.Context)
ReloadState reloads cluster state. If available it calls ClusterSlots func to get cluster slots information.
func (ClusterClient) ReplicaOf ¶ added in v9.19.0
ReplicaOf sets a Redis server as a replica of another, or promotes it to being a master.
func (ClusterClient) RestoreReplace ¶
func (ClusterClient) SAdd ¶
Returns the number of elements that were added to the set, not including all the elements already present in the set.
For more information about the command please refer to [SADD].
func (ClusterClient) SCard ¶
Returns the set cardinality (number of elements) of the set stored at key. Returns 0 if key does not exist.
For more information about the command please refer to [SCARD].
[SCARD]: (https://redis.io/docs/latest/commands/scard/)
func (ClusterClient) SDiff ¶
func (c ClusterClient) SDiff(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the difference between the first set and all the successive sets. Keys that do not exist are considered to be empty sets.
For more information about the command please refer to [SDIFF].
[SDIFF]: (https://redis.io/docs/latest/commands/sdiff/)
func (ClusterClient) SDiffCard ¶ added in v9.22.0
func (c ClusterClient) SDiffCard(ctx context.Context, opts *SDiffCardOptions, keys ...string) *IntCmd
Returns the cardinality of the difference of the first set and the rest. Missing keys are treated as empty sets.
For more information about the command please refer to [SDIFFCARD].
[SDIFFCARD]: (https://redis.io/docs/latest/commands/sdiffcard/)
func (ClusterClient) SDiffStore ¶
Stores the members of the set resulting from the difference between the first set and all the successive sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SDIFFSTORE].
[SDIFFSTORE]: (https://redis.io/docs/latest/commands/sdiffstore/)
func (ClusterClient) SInter ¶
func (c ClusterClient) SInter(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the intersection of all the given sets. Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty.
For more information about the command please refer to [SINTER].
[SINTER]: (https://redis.io/docs/latest/commands/sinter/)
func (ClusterClient) SInterCard ¶
Returns the cardinality of the set resulting from the intersection of all the given sets. Keys that do not exist are considered to be empty sets. With one of the keys being an empty set, the resulting set is also empty.
The limit parameter sets an upper bound on the number of results returned. If limit is 0, no limit is applied.
For more information about the command please refer to [SINTERCARD].
[SINTERCARD]: (https://redis.io/docs/latest/commands/sintercard/)
func (ClusterClient) SInterStore ¶
Stores the members of the set resulting from the intersection of all the given sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SINTERSTORE].
[SINTERSTORE]: (https://redis.io/docs/latest/commands/sinterstore/)
func (ClusterClient) SIsMember ¶
Returns if member is a member of the set stored at key. Returns true if the element is a member of the set, false if it is not a member or if key does not exist.
For more information about the command please refer to [SISMEMBER].
[SISMEMBER]: (https://redis.io/docs/latest/commands/sismember/)
func (ClusterClient) SMIsMember ¶
func (c ClusterClient) SMIsMember(ctx context.Context, key string, members ...interface{}) *BoolSliceCmd
Returns whether each member is a member of the set stored at key. For each member, returns true if the element is a member of the set, false if it is not a member or if key does not exist.
For more information about the command please refer to [SMISMEMBER].
[SMISMEMBER]: (https://redis.io/docs/latest/commands/smismember/)
func (ClusterClient) SMembers ¶
func (c ClusterClient) SMembers(ctx context.Context, key string) *StringSliceCmd
Returns all the members of the set value stored at key. Returns an empty slice if key does not exist.
For more information about the command please refer to [SMEMBERS].
[SMEMBERS]: (https://redis.io/docs/latest/commands/smembers/)
func (ClusterClient) SMembersMap ¶
func (c ClusterClient) SMembersMap(ctx context.Context, key string) *StringStructMapCmd
Returns all the members of the set value stored at key as a map. Returns an empty map if key does not exist.
For more information about the command please refer to [SMEMBERS].
[SMEMBERS]: (https://redis.io/docs/latest/commands/smembers/)
func (ClusterClient) SMove ¶
func (c ClusterClient) SMove(ctx context.Context, source, destination string, member interface{}) *BoolCmd
Moves member from the set at source to the set at destination. This operation is atomic. In every given moment the element will appear to be a member of source or destination for other clients.
For more information about the command please refer to [SMOVE].
[SMOVE]: (https://redis.io/docs/latest/commands/smove/)
func (ClusterClient) SPop ¶
Removes and returns one or more random members from the set value stored at key. This version returns a single random member.
For more information about the command please refer to [SPOP].
func (ClusterClient) SPopN ¶
func (c ClusterClient) SPopN(ctx context.Context, key string, count int64) *StringSliceCmd
Removes and returns one or more random members from the set value stored at key. This version returns up to count random members.
For more information about the command please refer to [SPOP].
func (ClusterClient) SRandMember ¶
Returns a random member from the set value stored at key. This version returns a single random member without removing it.
For more information about the command please refer to [SRANDMEMBER].
[SRANDMEMBER]: (https://redis.io/docs/latest/commands/srandmember/)
func (ClusterClient) SRandMemberN ¶
func (c ClusterClient) SRandMemberN(ctx context.Context, key string, count int64) *StringSliceCmd
Returns an array of random members from the set value stored at key. This version returns up to count random members without removing them. When called with a positive count, returns distinct elements. When called with a negative count, allows for repeated elements.
For more information about the command please refer to [SRANDMEMBER].
[SRANDMEMBER]: (https://redis.io/docs/latest/commands/srandmember/)
func (ClusterClient) SRem ¶
Removes the specified members from the set stored at key. Specified members that are not a member of this set are ignored. If key does not exist, it is treated as an empty set and this command returns 0.
For more information about the command please refer to [SREM].
func (ClusterClient) SScan ¶
func (c ClusterClient) SScan(ctx context.Context, key string, cursor uint64, match string, count int64) *ScanCmd
Incrementally iterates the set elements stored at key. This is a cursor-based iterator that allows scanning large sets efficiently.
Parameters:
- cursor: The cursor value for the iteration (use 0 to start a new scan)
- match: Optional pattern to match elements (empty string means no pattern)
- count: Optional hint about how many elements to return per iteration
For more information about the command please refer to [SSCAN].
[SSCAN]: (https://redis.io/docs/latest/commands/sscan/)
func (*ClusterClient) SSubscribe ¶
func (c *ClusterClient) SSubscribe(ctx context.Context, channels ...string) *PubSub
SSubscribe Subscribes the client to the specified shard channels.
func (ClusterClient) SUnion ¶
func (c ClusterClient) SUnion(ctx context.Context, keys ...string) *StringSliceCmd
Returns the members of the set resulting from the union of all the given sets. Keys that do not exist are considered to be empty sets.
For more information about the command please refer to [SUNION].
[SUNION]: (https://redis.io/docs/latest/commands/sunion/)
func (ClusterClient) SUnionCard ¶ added in v9.22.0
func (c ClusterClient) SUnionCard(ctx context.Context, opts *SUnionCardOptions, keys ...string) *IntCmd
Returns the cardinality of the union of all the given sets. Missing keys are treated as empty sets.
For more information about the command please refer to [SUNIONCARD].
[SUNIONCARD]: (https://redis.io/docs/latest/commands/sunioncard/)
func (ClusterClient) SUnionStore ¶
Stores the members of the set resulting from the union of all the given sets into destination. If destination already exists, it is overwritten.
For more information about the command please refer to [SUNIONSTORE].
[SUNIONSTORE]: (https://redis.io/docs/latest/commands/sunionstore/)
func (*ClusterClient) ScriptExists ¶
func (c *ClusterClient) ScriptExists(ctx context.Context, hashes ...string) *BoolSliceCmd
func (*ClusterClient) ScriptFlush ¶
func (c *ClusterClient) ScriptFlush(ctx context.Context) *StatusCmd
func (ClusterClient) ScriptKill ¶
func (*ClusterClient) ScriptLoad ¶
func (c *ClusterClient) ScriptLoad(ctx context.Context, script string) *StringCmd
func (ClusterClient) Set ¶
func (c ClusterClient) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *StatusCmd
Set Redis `SET key value [expiration]` command. Use expiration for `SETEx`-like behavior.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (ClusterClient) SetArgs ¶
func (c ClusterClient) SetArgs(ctx context.Context, key string, value interface{}, a SetArgs) *StatusCmd
SetArgs supports all the options that the SET command supports. It is the alternative to the Set function when you want to have more control over the options.
func (*ClusterClient) SetCommandInfoResolver ¶ added in v9.18.0
func (c *ClusterClient) SetCommandInfoResolver(cmdInfoResolver *commandInfoResolver)
func (ClusterClient) SetFromBuffer ¶ added in v9.21.0
SetFromBuffer executes SET writing the value directly from buf. For values larger than the connection's write buffer, bufio.Writer.Write flushes its internal buffer (containing the RESP header) and then writes buf straight to the socket — effectively zero-copy on the send path.
Expiration is not supported; use Expire separately if a TTL is required.
Note: SetFromBuffer is exposed for API symmetry with GetToBuffer and is functionally equivalent to Set(ctx, key, buf, 0) — both dispatch to the same []byte case in the RESP writer and produce identical bytes on the wire. The zero-copy property on the send path comes from bufio.Writer.Write bypassing its internal buffer for large payloads, which Set([]byte) gets automatically. Prefer SetFromBuffer in code that also uses GetToBuffer so the buffer-based pattern reads coherently; otherwise Set(ctx, key, buf, 0) is equally efficient.
func (ClusterClient) SetIFDEQ ¶ added in v9.17.0
func (c ClusterClient) SetIFDEQ(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StatusCmd
SetIFDEQ sets the value only if the current value's digest equals matchDigest.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns "OK" on success. Returns redis.Nil if the digest doesn't match (value was modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFNEQ is still experimental it's signature and behaviour may change
func (ClusterClient) SetIFDEQGet ¶ added in v9.17.0
func (c ClusterClient) SetIFDEQGet(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StringCmd
SetIFDEQGet sets the value only if the current value's digest equals matchDigest, and returns the previous value.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns the previous value on success. Returns redis.Nil if the digest doesn't match (value was modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFNEQGet is still experimental it's signature and behaviour may change
func (ClusterClient) SetIFDNE ¶ added in v9.17.0
func (c ClusterClient) SetIFDNE(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StatusCmd
SetIFDNE sets the value only if the current value's digest does NOT equal matchDigest.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns "OK" on success (digest didn't match, value was set). Returns redis.Nil if the digest matches (value was not modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFDNE is still experimental it's signature and behaviour may change
func (ClusterClient) SetIFDNEGet ¶ added in v9.17.0
func (c ClusterClient) SetIFDNEGet(ctx context.Context, key string, value interface{}, matchDigest uint64, expiration time.Duration) *StringCmd
SetIFDNEGet sets the value only if the current value's digest does NOT equal matchDigest, and returns the previous value.
This is a compare-and-set operation using xxh3 digest for optimistic locking. The matchDigest parameter is a uint64 xxh3 hash value.
Returns the previous value on success (digest didn't match, value was set). Returns redis.Nil if the digest matches (value was not modified). Zero expiration means the key has no expiration time.
For examples of client-side digest generation and usage patterns, see: example/digest-optimistic-locking/
Redis 8.4+. See https://redis.io/commands/set/
NOTE SetIFDNEGet is still experimental it's signature and behaviour may change
func (ClusterClient) SetIFEQ ¶ added in v9.17.0
func (c ClusterClient) SetIFEQ(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StatusCmd
SetIFEQ Redis `SET key value [expiration] IFEQ match-value` command. Compare-and-set: only sets the value if the current value equals matchValue.
Returns "OK" on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFEQ is still experimental it's signature and behaviour may change
func (ClusterClient) SetIFEQGet ¶ added in v9.17.0
func (c ClusterClient) SetIFEQGet(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StringCmd
SetIFEQGet Redis `SET key value [expiration] IFEQ match-value GET` command. Compare-and-set with GET: only sets the value if the current value equals matchValue, and returns the previous value.
Returns the previous value on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFEQGet is still experimental it's signature and behaviour may change
func (ClusterClient) SetIFNE ¶ added in v9.17.0
func (c ClusterClient) SetIFNE(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StatusCmd
SetIFNE Redis `SET key value [expiration] IFNE match-value` command. Compare-and-set: only sets the value if the current value does not equal matchValue.
Returns "OK" on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFNE is still experimental it's signature and behaviour may change
func (ClusterClient) SetIFNEGet ¶ added in v9.17.0
func (c ClusterClient) SetIFNEGet(ctx context.Context, key string, value interface{}, matchValue interface{}, expiration time.Duration) *StringCmd
SetIFNEGet Redis `SET key value [expiration] IFNE match-value GET` command. Compare-and-set with GET: only sets the value if the current value does not equal matchValue, and returns the previous value.
Returns the previous value on success. Returns nil if the operation was aborted due to condition not matching. Zero expiration means the key has no expiration time.
NOTE SetIFNEGet is still experimental it's signature and behaviour may change
func (ClusterClient) SetNX ¶
func (c ClusterClient) SetNX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
SetNX sets the value of a key only if the key does not exist.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (ClusterClient) SetXX ¶
func (c ClusterClient) SetXX(ctx context.Context, key string, value interface{}, expiration time.Duration) *BoolCmd
SetXX Redis `SET key value [expiration] XX` command.
Zero expiration means the key has no expiration time. KeepTTL is a Redis KEEPTTL option to keep existing TTL, it requires your redis-server version >= 6.0, otherwise you will receive an error: (error) ERR syntax error.
func (ClusterClient) ShutdownNoSave ¶
func (ClusterClient) ShutdownSave ¶
func (*ClusterClient) SlaveForKey ¶
SlaveForKey gets a client for a replica node to run any command on it. This is especially useful if we want to run a particular lua script which has only read only commands on the replica. This is because other redis commands generally have a flag that points that they are read only and automatically run on the replica nodes if ClusterOptions.ReadOnly flag is set to true.
func (ClusterClient) SlowLogGet ¶
func (c ClusterClient) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd
func (ClusterClient) SlowLogLen ¶ added in v9.17.0
func (ClusterClient) SlowLogReset ¶ added in v9.17.0
func (ClusterClient) Sort ¶
func (c ClusterClient) Sort(ctx context.Context, key string, sort *Sort) *StringSliceCmd
func (ClusterClient) SortInterfaces ¶
func (ClusterClient) SortRO ¶
func (c ClusterClient) SortRO(ctx context.Context, key string, sort *Sort) *StringSliceCmd
func (*ClusterClient) Subscribe ¶
func (c *ClusterClient) Subscribe(ctx context.Context, channels ...string) *PubSub
Subscribe subscribes the client to the specified channels. Channels can be omitted to create empty subscription.
func (ClusterClient) TDigestAdd ¶ added in v9.1.0
TDigestAdd adds one or more elements to a t-Digest data structure. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.add/
func (ClusterClient) TDigestByRank ¶ added in v9.1.0
func (c ClusterClient) TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
TDigestByRank returns an array of values from a t-Digest data structure based on their rank. The rank of an element is its position in the sorted list of all elements in the t-Digest. Returns an array of floats representing the values at the specified ranks or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.byrank/
func (ClusterClient) TDigestByRevRank ¶ added in v9.1.0
func (c ClusterClient) TDigestByRevRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
TDigestByRevRank returns an array of values from a t-Digest data structure based on their reverse rank. The reverse rank of an element is its position in the sorted list of all elements in the t-Digest when sorted in descending order. Returns an array of floats representing the values at the specified ranks or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.byrevrank/
func (ClusterClient) TDigestCDF ¶ added in v9.1.0
func (c ClusterClient) TDigestCDF(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
TDigestCDF returns an array of cumulative distribution function (CDF) values for one or more elements in a t-Digest data structure. The CDF value for an element is the fraction of all elements in the t-Digest that are less than or equal to it. Returns an array of floats representing the CDF values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.cdf/
func (ClusterClient) TDigestCreate ¶ added in v9.1.0
TDigestCreate creates an empty t-Digest data structure with default parameters. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.create/
func (ClusterClient) TDigestCreateWithCompression ¶ added in v9.1.0
func (c ClusterClient) TDigestCreateWithCompression(ctx context.Context, key string, compression int64) *StatusCmd
TDigestCreateWithCompression creates an empty t-Digest data structure with a specified compression parameter. The compression parameter controls the accuracy and memory usage of the t-Digest. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.create/
func (ClusterClient) TDigestInfo ¶ added in v9.1.0
func (c ClusterClient) TDigestInfo(ctx context.Context, key string) *TDigestInfoCmd
TDigestInfo returns information about a t-Digest data structure. For more information - https://redis.io/commands/tdigest.info/
func (ClusterClient) TDigestMax ¶ added in v9.1.0
TDigestMax returns the maximum value from a t-Digest data structure. For more information - https://redis.io/commands/tdigest.max/
func (ClusterClient) TDigestMerge ¶ added in v9.1.0
func (c ClusterClient) TDigestMerge(ctx context.Context, destKey string, options *TDigestMergeOptions, sourceKeys ...string) *StatusCmd
TDigestMerge merges multiple t-Digest data structures into a single t-Digest. This function also allows for specifying additional options such as compression and override behavior. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.merge/
func (ClusterClient) TDigestMin ¶ added in v9.1.0
TDigestMin returns the minimum value from a t-Digest data structure. For more information - https://redis.io/commands/tdigest.min/
func (ClusterClient) TDigestQuantile ¶ added in v9.1.0
func (c ClusterClient) TDigestQuantile(ctx context.Context, key string, elements ...float64) *FloatSliceCmd
TDigestQuantile returns an array of quantile values for one or more elements in a t-Digest data structure. The quantile value for an element is the fraction of all elements in the t-Digest that are less than or equal to it. Returns an array of floats representing the quantile values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.quantile/
func (ClusterClient) TDigestRank ¶ added in v9.1.0
func (c ClusterClient) TDigestRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
TDigestRank returns an array of rank values for one or more elements in a t-Digest data structure. The rank of an element is its position in the sorted list of all elements in the t-Digest. Returns an array of integers representing the rank values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.rank/
func (ClusterClient) TDigestReset ¶ added in v9.1.0
TDigestReset resets a t-Digest data structure to its initial state. Returns OK on success or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.reset/
func (ClusterClient) TDigestRevRank ¶ added in v9.1.0
func (c ClusterClient) TDigestRevRank(ctx context.Context, key string, values ...float64) *IntSliceCmd
TDigestRevRank returns an array of reverse rank values for one or more elements in a t-Digest data structure. The reverse rank of an element is its position in the sorted list of all elements in the t-Digest when sorted in descending order. Returns an array of integers representing the reverse rank values for each element or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.revrank/
func (ClusterClient) TDigestTrimmedMean ¶ added in v9.1.0
func (c ClusterClient) TDigestTrimmedMean(ctx context.Context, key string, lowCutQuantile, highCutQuantile float64) *FloatCmd
TDigestTrimmedMean returns the trimmed mean value from a t-Digest data structure. The trimmed mean is calculated by removing a specified fraction of the highest and lowest values from the t-Digest and then calculating the mean of the remaining values. Returns a float representing the trimmed mean value or an error if the operation could not be completed. For more information - https://redis.io/commands/tdigest.trimmed_mean/
func (ClusterClient) TSAdd ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSAddWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSAlter ¶ added in v9.2.0
func (c ClusterClient) TSAlter(ctx context.Context, key string, options *TSAlterOptions) *StatusCmd
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 (ClusterClient) TSCreate ¶ added in v9.2.0
TSCreate - Creates a new time-series key. For more information - https://redis.io/commands/ts.create/
func (ClusterClient) TSCreateRule ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSCreateRuleWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSCreateWithArgs ¶ added in v9.2.0
func (c ClusterClient) TSCreateWithArgs(ctx context.Context, key string, options *TSOptions) *StatusCmd
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 (ClusterClient) TSDecrBy ¶ added in v9.2.0
TSDecrBy - Decrements the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.decrby/
func (ClusterClient) TSDecrByWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSDel ¶ added in v9.2.0
func (c ClusterClient) TSDel(ctx context.Context, Key string, fromTimestamp int, toTimestamp int) *IntCmd
TSDel - Deletes a range of samples from a time-series key. For more information - https://redis.io/commands/ts.del/
func (ClusterClient) TSDeleteRule ¶ added in v9.2.0
func (c ClusterClient) TSDeleteRule(ctx context.Context, sourceKey string, destKey string) *StatusCmd
TSDeleteRule - Deletes a compaction rule from sourceKey to destKey. For more information - https://redis.io/commands/ts.deleterule/
func (ClusterClient) TSGet ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSGetWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSIncrBy ¶ added in v9.2.0
TSIncrBy - Increments the value of a time-series key by the specified timestamp. For more information - https://redis.io/commands/ts.incrby/
func (ClusterClient) TSIncrByWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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/
func (ClusterClient) TSInfo ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSInfoWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSMAdd ¶ added in v9.2.0
func (c ClusterClient) TSMAdd(ctx context.Context, ktvSlices [][]interface{}) *IntSliceCmd
TSMAdd - Adds multiple samples to multiple time-series keys. It accepts a slice of 'ktv' slices, each containing exactly three elements: key, timestamp, and value. This struct must be provided for this command to work. For more information - https://redis.io/commands/ts.madd/
func (ClusterClient) TSMGet ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSMGetWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSMRange ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSMRangeWithArgs ¶ added in v9.2.0
func (c ClusterClient) TSMRangeWithArgs(ctx context.Context, fromTimestamp int, toTimestamp int, filterExpr []string, options *TSMRangeOptions) *MapStringSliceInterfaceCmd
TSMRangeWithArgs - Returns a range of samples from multiple time-series keys. Options are set via TSMRangeOptions. For more information - https://redis.io/commands/ts.mrange/
func (ClusterClient) TSMRevRange ¶ added in v9.2.0
func (c ClusterClient) 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 (ClusterClient) TSMRevRangeWithArgs ¶ added in v9.2.0
func (c ClusterClient) 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. Options are set via TSMRevRangeOptions. For more information - https://redis.io/commands/ts.mrevrange/
func (ClusterClient) TSNRange ¶ added in v9.22.0
func (c ClusterClient) TSNRange(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}) *TSNRangePivotRowSliceCmd
TSNRange - Queries multiple time-series keys and returns a pivot response in forward (ascending) order. For more information - https://redis.io/commands/ts.nrange/
func (ClusterClient) TSNRangeWithArgs ¶ added in v9.22.0
func (c ClusterClient) TSNRangeWithArgs(ctx context.Context, keys []string, fromTimestamp interface{}, toTimestamp interface{}, options *TSNRangeOptions) *TSNRangePivotRowSliceCmd
TSNRangeWithArgs - Queries multiple time-series keys and returns a pivot response in forward (ascending) order with additional options. This function allows for specifying additional options such as: Latest, FilterByTS, FilterByValue, Count, Align, Aggregators, BucketDuration, BucketTimestamp and Empty. Aggregators must contain exactly one spec per key; each spec lists one or more aggregators for its key and is emitted as a single comma-joined wire token. For more information - https://redis.io/commands/ts.nrange/