ioredis
- Version 6.0.0
- Published
- 1.29 MB
- 6 dependencies
- MIT license
Install
npm i ioredisyarn add ioredispnpm add ioredisOverview
A robust, performance-focused and full-featured Redis client for Node.js.
Index
Variables
Functions
Classes
Redis
- autoPipelineQueueSize
- Cluster
- Command
- commandQueue
- condition
- connect()
- createClient()
- disconnect()
- duplicate()
- end()
- handleReconnection()
- hscanBufferStream()
- hscanStream()
- isCluster
- mode
- monitor()
- options
- recoverFromFatalError()
- scanBufferStream()
- scanStream()
- sendCommand()
- silentEmit()
- sscanBufferStream()
- sscanStream()
- status
- stream
- zscanBufferStream()
- zscanStream()
Interfaces
ClusterOptions
- autoPipeliningIgnoredCommands
- clusterNodeRetryStrategy
- clusterRetryStrategy
- dnsLookup
- enableAutoPipelining
- enableOfflineQueue
- enableReadyCheck
- himportFieldsets
- lazyConnect
- maxRedirections
- natMap
- redisOptions
- resolveSrv
- retryDelayOnClusterDown
- retryDelayOnFailover
- retryDelayOnMoved
- retryDelayOnTryAgain
- scaleReads
- scripts
- shardedSubscribers
- slotsRefreshInterval
- slotsRefreshTimeout
- useSRVRecords
CommonRedisOptions
- autoPipeliningIgnoredCommands
- autoResendUnfulfilledCommands
- autoResubscribe
- blockingTimeout
- blockingTimeoutGrace
- clientInfoTag
- commandQueue
- commandTimeout
- connectionName
- Connector
- connectTimeout
- db
- disableClientInfo
- enableAutoPipelining
- enableOfflineQueue
- enableReadyCheck
- himportFieldsets
- keepAlive
- lazyConnect
- maxLoadingRetryTime
- maxRetriesPerRequest
- monitor
- noDelay
- offlineQueue
- password
- protocol
- readOnly
- reconnectOnError
- replyMapping
- retryStrategy
- scripts
- socketTimeout
- stringNumbers
- username
RedisCommander
- ['restore-asking']()
- acl()
- aclBuffer()
- append()
- arcount()
- ardel()
- ardelrange()
- arget()
- argetBuffer()
- argetrange()
- argetrangeBuffer()
- argrep()
- argrepBuffer()
- arinfo()
- arinfoBuffer()
- arinsert()
- arlastitems()
- arlastitemsBuffer()
- arlen()
- armget()
- armgetBuffer()
- armset()
- arnext()
- arop()
- aropBuffer()
- arring()
- arscan()
- arscanBuffer()
- arseek()
- arset()
- asking()
- auth()
- bgrewriteaof()
- bgrewriteaofBuffer()
- bgsave()
- bitcount()
- bitfield()
- bitfield_ro()
- bitop()
- bitpos()
- blmove()
- blmoveBuffer()
- blmovem()
- blmovemBuffer()
- blmpop()
- blmpopBuffer()
- blpop()
- blpopBuffer()
- brpop()
- brpopBuffer()
- brpoplpush()
- brpoplpushBuffer()
- bzmpop()
- bzpopmax()
- bzpopmaxBuffer()
- bzpopmin()
- bzpopminBuffer()
- call()
- callBuffer()
- client()
- clientBuffer()
- cluster()
- command()
- config()
- configBuffer()
- copy()
- dbsize()
- debug()
- decr()
- decrby()
- del()
- discard()
- dump()
- dumpBuffer()
- echo()
- echoBuffer()
- eval()
- eval_ro()
- evalsha()
- evalsha_ro()
- exec()
- exists()
- expire()
- expireat()
- expiretime()
- failover()
- fcall()
- fcall_ro()
- flushall()
- flushdb()
- function()
- functionBuffer()
- geoadd()
- geodist()
- geodistBuffer()
- geohash()
- geohashBuffer()
- geopos()
- georadius()
- georadius_ro()
- georadiusbymember()
- georadiusbymember_ro()
- geosearch()
- geosearchstore()
- get()
- getbit()
- getBuffer()
- getdel()
- getdelBuffer()
- getex()
- getexBuffer()
- getrange()
- getrangeBuffer()
- getset()
- getsetBuffer()
- hdel()
- hello()
- hexists()
- hexpire()
- hexpireat()
- hexpiretime()
- hget()
- hgetall()
- hgetallBuffer()
- hgetBuffer()
- hgetdel()
- hgetdelBuffer()
- hgetex()
- hgetexBuffer()
- himport()
- hincrby()
- hincrbyfloat()
- hincrbyfloatBuffer()
- hkeys()
- hkeysBuffer()
- hlen()
- hmget()
- hmgetBuffer()
- hmset()
- hpersist()
- hpexpire()
- hpexpireat()
- hpexpiretime()
- hpttl()
- hrandfield()
- hrandfieldBuffer()
- hscan()
- hscanBuffer()
- hset()
- hsetex()
- hsetnx()
- hstrlen()
- httl()
- hvals()
- hvalsBuffer()
- incr()
- incrby()
- incrbyfloat()
- increx()
- increxBuffer()
- info()
- keys()
- keysBuffer()
- lastsave()
- latency()
- lcs()
- lindex()
- lindexBuffer()
- linsert()
- llen()
- lmove()
- lmoveBuffer()
- lmovem()
- lmovemBuffer()
- lmpop()
- lmpopBuffer()
- lolwut()
- lpop()
- lpopBuffer()
- lpos()
- lpush()
- lpushx()
- lrange()
- lrangeBuffer()
- lrem()
- lset()
- ltrim()
- memory()
- mget()
- mgetBuffer()
- migrate()
- module()
- move()
- mset()
- msetex()
- msetnx()
- object()
- persist()
- pexpire()
- pexpireat()
- pexpiretime()
- pfadd()
- pfcount()
- pfdebug()
- pfmerge()
- pfselftest()
- ping()
- pingBuffer()
- psetex()
- psubscribe()
- psync()
- pttl()
- publish()
- pubsub()
- punsubscribe()
- quit()
- randomkey()
- randomkeyBuffer()
- readonly()
- readwrite()
- rename()
- renamenx()
- replconf()
- replicaof()
- reset()
- restore()
- role()
- rpop()
- rpopBuffer()
- rpoplpush()
- rpoplpushBuffer()
- rpush()
- rpushx()
- sadd()
- save()
- scan()
- scanBuffer()
- scard()
- script()
- sdiff()
- sdiffBuffer()
- sdiffcard()
- sdiffstore()
- select()
- set()
- setbit()
- setBuffer()
- setex()
- setnx()
- setrange()
- shutdown()
- sinter()
- sinterBuffer()
- sintercard()
- sinterstore()
- sismember()
- slaveof()
- slowlog()
- smembers()
- smembersBuffer()
- smismember()
- smove()
- sort()
- sort_ro()
- spop()
- spopBuffer()
- spublish()
- srandmember()
- srandmemberBuffer()
- srem()
- sscan()
- sscanBuffer()
- ssubscribe()
- strlen()
- subscribe()
- substr()
- sunion()
- sunionBuffer()
- sunioncard()
- sunionstore()
- sunsubscribe()
- swapdb()
- sync()
- time()
- touch()
- ttl()
- type()
- unlink()
- unsubscribe()
- unwatch()
- vadd()
- vcard()
- vdim()
- vemb()
- vembBuffer()
- vgetattr()
- vgetattrBuffer()
- vinfo()
- vinfoBuffer()
- vismember()
- vlinks()
- vlinksBuffer()
- vrandmember()
- vrandmemberBuffer()
- vrange()
- vrangeBuffer()
- vrem()
- vsetattr()
- vsim()
- vsimBuffer()
- wait()
- watch()
- xack()
- xadd()
- xaddBuffer()
- xautoclaim()
- xclaim()
- xdel()
- xdelex()
- xgroup()
- xinfo()
- xlen()
- xnack()
- xpending()
- xrange()
- xrangeBuffer()
- xread()
- xreadBuffer()
- xreadgroup()
- xreadgroupBuffer()
- xrevrange()
- xrevrangeBuffer()
- xsetid()
- xtrim()
- zadd()
- zaddBuffer()
- zcard()
- zcount()
- zdiff()
- zdiffBuffer()
- zdiffstore()
- zincrby()
- zincrbyBuffer()
- zinter()
- zinterBuffer()
- zintercard()
- zinterstore()
- zlexcount()
- zmpop()
- zmscore()
- zmscoreBuffer()
- zpopmax()
- zpopmaxBuffer()
- zpopmin()
- zpopminBuffer()
- zrandmember()
- zrandmemberBuffer()
- zrange()
- zrangeBuffer()
- zrangebylex()
- zrangebylexBuffer()
- zrangebyscore()
- zrangebyscoreBuffer()
- zrangestore()
- zrank()
- zrankBuffer()
- zrem()
- zremrangebylex()
- zremrangebyrank()
- zremrangebyscore()
- zrevrange()
- zrevrangeBuffer()
- zrevrangebylex()
- zrevrangebylexBuffer()
- zrevrangebyscore()
- zrevrangebyscoreBuffer()
- zrevrank()
- zrevrankBuffer()
- zscan()
- zscanBuffer()
- zscore()
- zscoreBuffer()
- zunion()
- zunionBuffer()
- zunionstore()
Type Aliases
Variables
variable ReplyError
const ReplyError: any;Functions
function print
print: (err: Error | null, reply?: any) => void;Classes
class AbstractConnector
abstract class AbstractConnector {}constructor
constructor(disconnectTimeout: number);property connecting
protected connecting: boolean;property firstError
firstError?: Error;property stream
protected stream: any;method check
check: (info: any) => boolean;method connect
abstract connect: (_: ErrorEmitter) => Promise<NetStream>;method disconnect
disconnect: () => void;class Cluster
class Cluster<ReplyMapping extends ReplyMappingMode = 'legacy'> extends Commander<{ type: 'default'; mapping: ReplyMapping extends 'resp3' ? 'resp3' : 'resp2';}> {}Client for the official Redis Cluster
constructor
constructor( startupNodes: ClusterNode[], options?: ClusterOptionsWithReplyMapping<ReplyMapping>);Creates an instance of Cluster.
property autoPipelineQueueSize
readonly autoPipelineQueueSize: number;Get the number of commands queued in automatic pipelines.
This is not available (and returns 0) until the cluster is connected and slots information have been received.
property isCluster
isCluster: boolean;property options
options: ClusterOptions;property slots
slots: string[][];property status
status: ClusterStatus;method connect
connect: () => Promise<void>;Connect to a cluster
method delayUntilReady
delayUntilReady: (callback: Callback) => void;This is needed in order not to install a listener for each auto pipeline
method disconnect
disconnect: (reconnect?: boolean) => void;Disconnect from every node in the cluster.
method duplicate
duplicate: < OverrideOptions extends ClusterOptionsWithReplyMapping<ReplyMappingMode> = undefined>( overrideStartupNodes?: ClusterNode[], overrideOptions?: OverrideOptions) => Cluster<ReplyMappingFromClusterOptions<ReplyMapping, OverrideOptions>>;Create a new instance with the same startup nodes and options as the current one.
Example 1
var cluster = new Redis.Cluster([{ host: "127.0.0.1", port: "30001" }]);var anotherCluster = cluster.duplicate();
method handleError
handleError: (error: Error, ttl: { value?: any }, handlers: any) => void;method hscanBufferStream
hscanBufferStream: (key: string, options?: ScanStreamOptions) => ScanStream;method hscanStream
hscanStream: (key: string, options?: ScanStreamOptions) => ScanStream;method nodes
nodes: (role?: NodeRole) => Redis[];Get nodes with the specified role
method quit
quit: (callback?: Callback<'OK'>) => Promise<'OK'>;Quit the cluster gracefully.
method refreshSlotsCache
refreshSlotsCache: (callback?: Callback<void>) => void;Refresh the slot cache
method sendCommand
sendCommand: (command: Command, stream?: WriteableStream, node?: any) => unknown;method sscanBufferStream
sscanBufferStream: (key: string, options?: ScanStreamOptions) => ScanStream;method sscanStream
sscanStream: (key: string, options?: ScanStreamOptions) => ScanStream;method zscanBufferStream
zscanBufferStream: (key: string, options?: ScanStreamOptions) => ScanStream;method zscanStream
zscanStream: (key: string, options?: ScanStreamOptions) => ScanStream;class Command
class Command implements Respondable {}Command instance
It's rare that you need to create a Command instance yourself.
var infoCommand = new Command('info', null, function (err, result) {console.log('result', result);});redis.sendCommand(infoCommand);// When no callback provided, Command instance will have a `promise` property,// which will resolve/reject with the result of the command.var getCommand = new Command('get', ['foo']);getCommand.promise.then(function (result) {console.log('result', result);});
constructor
constructor( name: string, args?: any[], options?: CommandOptions, callback?: Callback<any>);Creates an instance of Command.
Parameter name
Command name
Parameter args
An array of command arguments
Parameter options
Parameter callback
The callback that handles the response. If omit, the response will be handled via Promise
property args
args: any[];property FLAGS
static FLAGS: { VALID_IN_SUBSCRIBER_MODE: [ 'subscribe', 'psubscribe', 'unsubscribe', 'punsubscribe', 'ssubscribe', 'sunsubscribe', 'ping', 'quit' ]; VALID_IN_MONITOR_MODE: ['monitor', 'auth']; ENTER_SUBSCRIBER_MODE: ['subscribe', 'psubscribe', 'ssubscribe']; EXIT_SUBSCRIBER_MODE: ['unsubscribe', 'punsubscribe', 'sunsubscribe']; WILL_DISCONNECT: ['quit']; HANDSHAKE_COMMANDS: [ 'auth', 'hello', 'select', 'client', 'readonly', 'info' ]; IGNORE_RECONNECT_ON_ERROR: ['client']; BLOCKING_COMMANDS: [ 'blpop', 'brpop', 'brpoplpush', 'blmove', 'blmovem', 'bzpopmin', 'bzpopmax', 'bzmpop', 'blmpop', 'xread', 'xreadgroup' ]; LAST_ARG_TIMEOUT_COMMANDS: [ 'blpop', 'brpop', 'brpoplpush', 'blmove', 'bzpopmin', 'bzpopmax' ]; FIRST_ARG_TIMEOUT_COMMANDS: ['bzmpop', 'blmpop']; BLOCK_OPTION_COMMANDS: ['xread', 'xreadgroup'];};property ignore
ignore?: boolean;property inTransaction
inTransaction: boolean;property isReadOnly
isReadOnly?: boolean;property isResolved
isResolved: boolean;property isSettled
isSettled: boolean;property isTraced
isTraced: boolean;property name
name: string;property pipelineIndex
pipelineIndex?: number;property promise
promise: Promise<any>;property reject
reject: (err: Error) => void;property resolve
resolve: (result: any) => void;method checkFlag
static checkFlag: <T extends keyof CommandNameFlags>( flagName: T, commandName: string) => commandName is CommandNameFlags[T][number];Check whether the command has the flag
method extractBlockingTimeout
extractBlockingTimeout: () => number | null | undefined;Extract the blocking timeout from the command arguments.
Returns
The timeout in seconds, null for indefinite blocking (timeout of 0), or undefined if this is not a blocking command
method getKeys
getKeys: () => Array<string | Buffer>;method getSlot
getSlot: () => number;method setArgumentTransformer
static setArgumentTransformer: (name: string, func: ArgumentTransformer) => void;method setBlockingTimeout
setBlockingTimeout: (ms: number) => void;Set a timeout for blocking commands. When the timeout expires, the command resolves with null (matching Redis behavior). This handles the case of undetectable network failures (e.g., docker network disconnect) where the TCP connection becomes a zombie and no close event fires.
method setReplyContext
setReplyContext: (context: ReplyContext | null | undefined) => void;method setReplyTransformer
static setReplyTransformer: (name: string, func: ReplyTransformer) => void;method setTimeout
setTimeout: (ms: number) => void;Set the wait time before terminating the attempt to execute a command and generating an error.
method stringifyArguments
stringifyArguments: () => void;method toWritable
toWritable: (_socket: object) => string | Buffer;Convert command to writable buffer or string
method transformReply
transformReply: ( result: Buffer | Buffer[]) => string | string[] | Buffer | Buffer[];Convert buffer/buffer[] to string/string[], and apply reply transformer.
class Pipeline
class Pipeline extends Commander<{ type: 'pipeline';}> {}constructor
constructor(redis: Redis<'legacy'> | Cluster<'legacy'>);property isCluster
isCluster: boolean;property isPipeline
isPipeline: boolean;property leftRedirections
leftRedirections: { value?: number };property promise
promise: Promise<unknown>;property redis
redis: Redis<'legacy'> | Cluster<'legacy'>;property reject
reject: (error: Error) => void;property resolve
resolve: (result: unknown) => void;method addBatch
addBatch: (commands: any) => this;method fillResult
fillResult: (value: unknown[], position: number) => void;method sendCommand
sendCommand: (command: Command) => unknown;class Redis
class Redis<ReplyMapping extends ReplyMappingMode = 'legacy'> extends Commander<{ type: 'default'; mapping: ReplyMapping extends 'resp3' ? 'resp3' : 'resp2'; }> implements DataHandledable {}This is the major component of ioredis. Use it to connect to a standalone Redis server or Sentinels.
const redis = new Redis(); // Default port is 6379async function main() {redis.set("foo", "bar");redis.get("foo", (err, result) => {// `result` should be "bar"console.log(err, result);});// Or use Promiseconst result = await redis.get("foo");}
constructor
constructor( port: number, host: string, options: CommonRedisOptions & SentinelConnectionOptions & Partial<TcpOptions & IpcOptions> & { disconnectTimeout?: number; tls?: any; } & { replyMapping?: ReplyMapping });constructor
constructor( path: string, options: CommonRedisOptions & SentinelConnectionOptions & Partial<TcpOptions & IpcOptions> & { disconnectTimeout?: number; tls?: any; } & { replyMapping?: ReplyMapping });constructor
constructor( port: number, options: CommonRedisOptions & SentinelConnectionOptions & Partial<TcpOptions & IpcOptions> & { disconnectTimeout?: number; tls?: any; } & { replyMapping?: ReplyMapping });constructor
constructor(port: number, host: string);constructor
constructor( options: CommonRedisOptions & SentinelConnectionOptions & Partial<TcpOptions & IpcOptions> & { disconnectTimeout?: number; tls?: any; } & { replyMapping?: ReplyMapping });constructor
constructor(port: number);constructor
constructor(path: string);constructor
constructor();property autoPipelineQueueSize
readonly autoPipelineQueueSize: number;property Cluster
static Cluster: typeof Cluster;property Command
static Command: typeof Command;property commandQueue
commandQueue: Deque<CommandItem>;property condition
condition: Condition;property isCluster
isCluster: boolean;property mode
readonly mode: 'normal' | 'subscriber' | 'monitor';Mode of the connection.
One of
"normal","subscriber", or"monitor". When the connection is not in"normal"mode, certain commands are not allowed.
property options
options: RedisOptions;property status
status: RedisStatus;property stream
stream: any;method connect
connect: (callback?: Callback<void>) => Promise<void>;Create a connection to Redis. This method will be invoked automatically when creating a new Redis instance unless
lazyConnect: trueis passed.When calling this method manually, a Promise is returned, which will be resolved when the connection status is ready. The promise can reject if the connection fails, times out, or if Redis is already connecting/connected.
method createClient
static createClient: () => Redis;Create a Redis instance. This is the same as
new Redis()but is included for compatibility with node-redis.
method disconnect
disconnect: (reconnect?: boolean) => void;Disconnect from Redis.
This method closes the connection immediately, and may lose some pending replies that haven't written to client. If you want to wait for the pending replies, use Redis#quit instead.
method duplicate
duplicate: <Override extends Partial<RedisOptions> = undefined>( override?: Override) => Redis<ReplyMappingFromOptions<ReplyMapping, Override>>;Create a new instance with the same options as the current one.
Example 1
var redis = new Redis(6380);var anotherRedis = redis.duplicate();
method end
end: () => void;Disconnect from Redis.
Deprecated
method handleReconnection
handleReconnection: (err: Error, item: CommandItem) => void;method hscanBufferStream
hscanBufferStream: (key: string, options?: ScanStreamOptions) => ScanStream;method hscanStream
hscanStream: (key: string, options?: ScanStreamOptions) => ScanStream;method monitor
monitor: (callback?: Callback<Redis>) => Promise<Redis>;Listen for all requests received by the server in real time.
This command will create a new connection to Redis and send a MONITOR command via the new connection in order to avoid disturbing the current connection.
Parameter callback
The callback function. If omit, a promise will be returned.
Example 1
var redis = new Redis();redis.monitor(function (err, monitor) {// Entering monitoring mode.monitor.on('monitor', function (time, args, source, database) {console.log(time + ": " + util.inspect(args));});});// supports promise as well as other commandsredis.monitor().then(function (monitor) {monitor.on('monitor', function (time, args, source, database) {console.log(time + ": " + util.inspect(args));});});
method recoverFromFatalError
recoverFromFatalError: ( _commandError: Error, err: Error, options: FlushQueueOptions) => void;method scanBufferStream
scanBufferStream: (options?: ScanStreamOptions) => ScanStream;method scanStream
scanStream: (options?: ScanStreamOptions) => ScanStream;method sendCommand
sendCommand: (command: Command, stream?: WriteableStream) => unknown;Send a command to Redis
This method is used internally and in most cases you should not use it directly. If you need to send a command that is not supported by the library, you can use the
callmethod:const redis = new Redis();redis.call('set', 'foo', 'bar');// orredis.call(['set', 'foo', 'bar']);
method silentEmit
silentEmit: (eventName: string, arg?: unknown) => boolean;Emit only when there's at least one listener.
method sscanBufferStream
sscanBufferStream: (key: string, options?: ScanStreamOptions) => ScanStream;method sscanStream
sscanStream: (key: string, options?: ScanStreamOptions) => ScanStream;method zscanBufferStream
zscanBufferStream: (key: string, options?: ScanStreamOptions) => ScanStream;method zscanStream
zscanStream: (key: string, options?: ScanStreamOptions) => ScanStream;class ScanStream
class ScanStream extends Readable {}Convenient class to convert the process of scanning keys to a readable stream.
constructor
constructor(opt: Options);method close
close: () => void;class SentinelConnector
class SentinelConnector extends AbstractConnector {}constructor
constructor(options: SentinelConnectionOptions);property emitter
emitter: any;property options
protected options: SentinelConnectionOptions;property sentinelIterator
protected sentinelIterator: SentinelIterator;method check
check: (info: { role?: string }) => boolean;method connect
connect: (eventEmitter: ErrorEmitter) => Promise<NetStream>;method disconnect
disconnect: () => void;class SentinelIterator
class SentinelIterator implements Iterator<Partial<SentinelAddress>> {}constructor
constructor(sentinels: Partial<SentinelAddress>[]);method add
add: (sentinel: SentinelAddress) => boolean;method next
next: () => { done: boolean; value: Partial<SentinelAddress> };method reset
reset: (moveCurrentEndpointToFirst: boolean) => void;method toString
toString: () => string;Interfaces
interface BatchOperationContext
interface BatchOperationContext {}property batchMode
batchMode: 'MULTI';property batchSize
batchSize: number;property database
database: number;property serverAddress
serverAddress: string;property serverPort
serverPort: number | undefined;interface ChainableCommander
interface ChainableCommander<Mapping extends 'resp2' | 'resp3' = 'resp2'> extends RedisCommander<{ type: 'pipeline'; mapping: Mapping; }> {}property length
length: number;interface Cluster
interface Cluster<ReplyMapping extends 'legacy' | 'resp3' = 'legacy'> extends EventEmitter {}interface Cluster
interface Cluster<ReplyMapping extends 'legacy' | 'resp3' = 'legacy'> extends Transaction<ReplyMapping extends 'resp3' ? 'resp3' : 'resp2'> {}interface ClusterOptions
interface ClusterOptions extends CommanderOptions {}Options for Cluster constructor
property autoPipeliningIgnoredCommands
autoPipeliningIgnoredCommands?: string[] | undefined;See Redis class.
[]
property clusterNodeRetryStrategy
clusterNodeRetryStrategy?: ClusterNodeRetryStrategy;When a cluster node connection is closed, this function will be called to determine the retry delay (in ms). Returning
nullor a non-number disables reconnection for that node.By default this is
null, meaning cluster nodes will NOT automatically reconnect — the cluster relies onMOVEDerrors to refresh topology. Set this to enable reconnection, e.g. for replica nodes that restart without any slot changes.Example 1
clusterNodeRetryStrategy: (times) => Math.min(times * 100, 3000)
null
property clusterRetryStrategy
clusterRetryStrategy?: | ((times: number, reason?: Error) => number | void | null) | null | undefined;See "Quick Start" section.
(times) => Math.min(100 + times * 2, 2000)
property dnsLookup
dnsLookup?: DNSLookupFunction | undefined;Hostnames will be resolved to IP addresses via this function. This is needed when the addresses of startup nodes are hostnames instead of IPs.
You may provide a custom
lookupfunction when you want to customize the cache behavior of the default function.require('dns').lookup
property enableAutoPipelining
enableAutoPipelining?: boolean | undefined;See Redis class.
false
property enableOfflineQueue
enableOfflineQueue?: boolean | undefined;See Redis class.
true
property enableReadyCheck
enableReadyCheck?: boolean | undefined;When enabled, ioredis only emits "ready" event when
CLUSTER INFOcommand reporting the cluster is ready for handling commands.true
property himportFieldsets
himportFieldsets?: readonly HimportFieldset[] | undefined;Managed-fieldset support is experimental and requires Redis 8.10 or newer.
Long-lived HIMPORT fieldsets managed across all current and future master connections for the lifetime of this Cluster client. Configure this option at the top level, not under
redisOptions.When a managed
HIMPORT SETneeds fieldset preparation or recovery, later commands issued on this Cluster client may be sent before that SET resumes. Await the SET before issuing commands that depend on its write.Explicit pipelines containing a managed
HIMPORT SETwait for required fieldset preparation on the selected master before the batch is sent.Background preparation failures do not prevent the connection from becoming ready and are reported through the
node errorevent. A dependent managedHIMPORT SETretries preparation and rejects if recovery fails.Direct
HIMPORT PREPARE,DISCARD, andDISCARDALLcalls fan out to all current masters. Within an explicit pipeline, these commands remain connection-affine and are not managed.Use explicit HIMPORT commands on a separate unconfigured client for bounded, manually managed batches.
undefined
Modifiers
@experimental
property lazyConnect
lazyConnect?: boolean | undefined;By default, When a new Cluster instance is created, it will connect to the Redis cluster automatically. If you want to keep the instance disconnected until the first command is called, set this option to
true.false
property maxRedirections
maxRedirections?: number | undefined;When a MOVED or ASK error is received, client will redirect the command to another node. This option limits the max redirections allowed to send a command.
16
property natMap
natMap?: NatMap | undefined;property redisOptions
redisOptions?: | Omit< RedisOptions, | 'port' | 'host' | 'path' | 'sentinels' | 'retryStrategy' | 'enableOfflineQueue' | 'readOnly' | 'himportFieldsets' > | undefined;Passed to the constructor of
Redisnull
property resolveSrv
resolveSrv?: DNSResolveSrvFunction | undefined;SRV records will be resolved via this function.
You may provide a custom
resolveSrvfunction when you want to customize the cache behavior of the default function.require('dns').resolveSrv
property retryDelayOnClusterDown
retryDelayOnClusterDown?: number | undefined;When a CLUSTERDOWN error is received, client will retry if
retryDelayOnClusterDownis valid delay time (in ms).100
property retryDelayOnFailover
retryDelayOnFailover?: number | undefined;When an error is received when sending a command (e.g. "Connection is closed." when the target Redis node is down), client will retry if
retryDelayOnFailoveris valid delay time (in ms).100
property retryDelayOnMoved
retryDelayOnMoved?: number | undefined;By default, this value is 0, which means when a
MOVEDerror is received, the client will resend the command instantly to the node returned together with theMOVEDerror. However, sometimes it takes time for a cluster to become state stabilized after a failover, so adding a delay before resending can prevent a ping pong effect.0
property retryDelayOnTryAgain
retryDelayOnTryAgain?: number | undefined;When a TRYAGAIN error is received, client will retry if
retryDelayOnTryAgainis valid delay time (in ms).100
property scaleReads
scaleReads?: NodeRole | Function | undefined;Scale reads to the node with the specified role.
"master"
property scripts
scripts?: | Record< string, { lua: string; numberOfKeys?: number; readOnly?: boolean; } > | undefined;Custom LUA commands
property shardedSubscribers
shardedSubscribers?: boolean | undefined;Use sharded subscribers instead of a single subscriber.
If sharded subscribers are used, then one additional subscriber connection per master node is established. If you don't plan to use SPUBLISH/SSUBSCRIBE, then this should be disabled.
false
property slotsRefreshInterval
slotsRefreshInterval?: number | undefined;The milliseconds between every automatic slots refresh.
5000
property slotsRefreshTimeout
slotsRefreshTimeout?: number | undefined;The milliseconds before a timeout occurs while refreshing slots from the cluster.
1000
property useSRVRecords
useSRVRecords?: boolean | undefined;Discover nodes using SRV records
false
interface CommandTraceContext
interface CommandTraceContext {}property args
args: string[];property command
command: string;property database
database: number;property serverAddress
serverAddress: string;property serverPort
serverPort: number | undefined;interface CommonRedisOptions
interface CommonRedisOptions extends CommanderOptions {}property autoPipeliningIgnoredCommands
autoPipeliningIgnoredCommands?: string[] | undefined;[]
property autoResendUnfulfilledCommands
autoResendUnfulfilledCommands?: boolean | undefined;Whether or not to resend unfulfilled commands on reconnect. Unfulfilled commands are most likely to be blocking commands such as
brpoporblpop. true
property autoResubscribe
autoResubscribe?: boolean | undefined;When the client reconnects, channels subscribed in the previous connection will be resubscribed automatically if
autoResubscribeistrue. true
property blockingTimeout
blockingTimeout?: number | undefined;Enables client-side timeout protection for blocking commands when set to a positive number. If
blockingTimeoutis undefined,0, or negative (e.g.-1), the protection is disabled and no client-side timers are installed for blocking commands.
property blockingTimeoutGrace
blockingTimeoutGrace?: number | undefined;Grace period (ms) added to blocking command timeouts. Only used when
blockingTimeoutis a positive number. Defaults to 100ms.
property clientInfoTag
clientInfoTag?: string | undefined;Tag to append to the library name in CLIENT SETINFO (ioredis(tag)). https://redis.io/docs/latest/commands/client-setinfo/ undefined
property commandQueue
commandQueue?: boolean | undefined;property commandTimeout
commandTimeout?: number | undefined;If a command does not return a reply within a set number of milliseconds, a "Command timed out" error will be thrown.
property connectionName
connectionName?: string | undefined;Set the name of the connection to make it easier to identity the connection in client list. https://redis.io/commands/client-setname
property Connector
Connector?: ConnectorConstructor | undefined;property connectTimeout
connectTimeout?: number | undefined;How long the client will wait before killing a socket due to inactivity during initial connection. 10000
property db
db?: number | undefined;Database index to use.
0
property disableClientInfo
disableClientInfo?: boolean | undefined;If true, skips setting library info via CLIENT SETINFO. https://redis.io/docs/latest/commands/client-setinfo/ false
property enableAutoPipelining
enableAutoPipelining?: boolean | undefined;false
property enableOfflineQueue
enableOfflineQueue?: boolean | undefined;By default, if the connection to Redis server has not been established, commands are added to a queue and are executed once the connection is "ready" (when
enableReadyCheckis true, "ready" means the Redis server has loaded the database from disk, otherwise means the connection to the Redis server has been established). If this option is false, when execute the command when the connection isn't ready, an error will be returned.true
property enableReadyCheck
enableReadyCheck?: boolean | undefined;The client will sent an INFO command to check whether the server is still loading data from the disk ( which happens when the server is just launched) when the connection is established, and only wait until the loading process is finished before emitting the
readyevent.true
property himportFieldsets
himportFieldsets?: readonly HimportFieldset[] | undefined;Managed-fieldset support is experimental and requires Redis 8.10 or newer.
Long-lived HIMPORT fieldsets managed for the lifetime of this client. Definitions are copied during construction and prepared again whenever the physical Redis connection changes.
When a managed
HIMPORT SETneeds fieldset preparation or recovery, later commands issued on this client may be sent before that SET resumes. Await the SET before issuing commands that depend on its write.Explicit pipelines containing a managed
HIMPORT SETwait for required fieldset preparation before the batch is sent.Background preparation failures do not prevent the connection from becoming ready and are reported through the
errorevent. A dependent managedHIMPORT SETretries preparation and rejects if recovery fails.Use explicit
HIMPORT PREPAREandDISCARDcommands on a separate client for bounded, manually managed batches.undefined
Modifiers
@experimental
property keepAlive
keepAlive?: number | undefined;Initial delay in milliseconds before the first TCP keep-alive probe. https://nodejs.org/api/net.html#socketsetkeepaliveenable-initialdelay 30000
property lazyConnect
lazyConnect?: boolean | undefined;When a Redis instance is initialized, a connection to the server is immediately established. Set this to true will delay the connection to the server until the first command is sent or
redis.connect()is called explicitly. Whenredis.connect()is called explicitly, a Promise is returned, which will be resolved when the connection is ready or rejected when it fails. The rejection should be handled by the user.false
property maxLoadingRetryTime
maxLoadingRetryTime?: number | undefined;10000
property maxRetriesPerRequest
maxRetriesPerRequest?: number | null | undefined;The commands that don't get a reply due to the connection to the server is lost are put into a queue and will be resent on reconnect (if allowed by the
retryStrategyoption). This option is used to configure how many reconnection attempts should be allowed before the queue is flushed with aMaxRetriesPerRequestErrorerror. Set this options tonullinstead of a number to let commands wait forever until the connection is alive again.20
property monitor
monitor?: boolean | undefined;This option is used internally when you call
redis.monitor()to tell Redis to enter the monitor mode when the connection is established.false
property noDelay
noDelay?: boolean | undefined;Enable/disable the use of Nagle's algorithm. https://nodejs.org/api/net.html#socketsetnodelaynodelay true
property offlineQueue
offlineQueue?: boolean | undefined;property password
password?: string | undefined;If set, client will send AUTH command with the value of this option when connected.
property protocol
protocol?: ProtocolVersion | undefined;The RESP protocol version to use. 3
property readOnly
readOnly?: boolean | undefined;false
property reconnectOnError
reconnectOnError?: ReconnectOnError | null | undefined;Whether or not to reconnect on certain Redis errors. This options by default is
null, which means it should never reconnect on Redis errors. You can pass a function that accepts an Redis error, and returns: -trueor1to trigger a reconnection. -falseor0to not reconnect. -2to reconnect and resend the failed command (who triggered the error) after reconnection.Example 1
const redis = new Redis({reconnectOnError(err) {const targetError = "READONLY";if (err.message.includes(targetError)) {// Only reconnect when the error contains "READONLY"return true; // or `return 1;`}},});null
property replyMapping
replyMapping?: ReplyMappingMode | undefined;How RESP3-only reply types are represented in JavaScript. Only supported when
protocolis 3.-
"legacy"(default): RESP2-compatible shapes. Map replies arrive as flat[key, value, ...]arrays and doubles as strings, so replies are identical across both protocols. -"resp3": map replies arrive as plain objects (with string keys) and doubles as numbers."legacy"
property retryStrategy
retryStrategy?: RetryStrategy;Determines the delay in milliseconds before reconnecting after a connection loss.
Exponential backoff capped at 5000ms, plus 0-199ms of random jitter.
property scripts
scripts?: | Record< string, { lua: string; numberOfKeys?: number | undefined; readOnly?: boolean | undefined; } > | undefined;undefined
property socketTimeout
socketTimeout?: number | undefined;If the socket does not receive data within a set number of milliseconds: 1. the socket is considered "dead" and will be destroyed 2. the client will reject any running commands (altought they might have been processed by the server) 3. the reconnect strategy will kick in (depending on the configuration)
property stringNumbers
stringNumbers?: boolean | undefined;When enabled, numbers returned by Redis will be converted to JavaScript strings instead of numbers. This is necessary if you want to handle big numbers (above
Number.MAX_SAFE_INTEGER=== 2^53). false
property username
username?: string | undefined;If set, client will send AUTH command with the value of this option as the first argument when connected. This is supported since Redis 6.
interface ConnectTraceContext
interface ConnectTraceContext {}property connectionEpoch
connectionEpoch: number;property serverAddress
serverAddress: string;property serverPort
serverPort: number | undefined;interface HimportFieldset
interface HimportFieldset {}A long-lived HIMPORT fieldset managed by ioredis for the lifetime of a logical Redis or Cluster client.
Requires Redis 8.10 or newer.
Modifiers
@experimental
interface Redis
interface Redis<ReplyMapping extends 'legacy' | 'resp3' = 'legacy'> extends EventEmitter {}method on
on: { (event: 'message', cb: (channel: string, message: string) => void): this; ( event: 'messageBuffer', cb: (channel: Buffer, message: Buffer) => void ): this; ( event: 'pmessage', cb: (pattern: string, channel: string, message: string) => void ): this; ( event: 'pmessageBuffer', cb: (pattern: string, channel: Buffer, message: Buffer) => void ): this; (event: 'error', cb: (error: Error) => void): this; (event: RedisStatus, cb: () => void): this; (event: string | symbol, listener: (...args: any[]) => void): this;};method once
once: { (event: 'message', cb: (channel: string, message: string) => void): this; ( event: 'messageBuffer', cb: (channel: Buffer, message: Buffer) => void ): this; ( event: 'pmessage', cb: (pattern: string, channel: string, message: string) => void ): this; ( event: 'pmessageBuffer', cb: (pattern: string, channel: Buffer, message: Buffer) => void ): this; (event: 'error', cb: (error: Error) => void): this; (event: RedisStatus, cb: () => void): this; (event: string | symbol, listener: (...args: any[]) => void): this;};interface Redis
interface Redis<ReplyMapping extends 'legacy' | 'resp3' = 'legacy'> extends Transaction<ReplyMapping extends 'resp3' ? 'resp3' : 'resp2'> {}interface RedisCommander
interface RedisCommander< Context extends ClientContext = { type: 'default'; }> {}method ['restore-asking']
['restore-asking']: { ( key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: 'REPLACE', absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: number | string, frequencyToken: 'FREQ', frequency: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: string | number, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', secondsToken: 'IDLETIME', seconds: string | number, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', absttl: 'ABSTTL', frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, secondsToken: 'IDLETIME', seconds: string | number, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', absttl: 'ABSTTL', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, ttl: string | number, serializedValue: any, callback?: Callback<unknown> ): Result<unknown, Context>;};An internal command for migrating keys in a cluster. - _group_: server - _complexity_: O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)). - _since_: 3.0.0
method acl
acl: { (subcommand: 'CAT', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'CAT', category: any, callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [ subcommand: 'DELUSER', ...usernames: any[], callback: Callback<number> ] ): Result<number, Context>; (subcommand: 'DELUSER', ...usernames: any[]): Result<number, Context>; ( subcommand: 'DRYRUN', username: any, command: any, callback?: Callback<string> ): Result<string, Context>; ( ...args: [ subcommand: 'DRYRUN', username: any, command: any, ...args: any[], callback: Callback<string> ] ): Result<string, Context>; (subcommand: 'DRYRUN', username: any, command: any, ...args: any[]): Result< string, Context >; (subcommand: 'GENPASS', callback?: Callback<string>): Result< string, Context >; ( subcommand: 'GENPASS', bits: string | number, callback?: Callback<string> ): Result<string, Context>; ( subcommand: 'GETUSER', username: any, callback?: Callback<string[]> ): Result<string[], Context>; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'LIST', callback?: Callback<string[]>): Result< string[], Context >; (subcommand: 'LOAD', callback?: Callback<'OK'>): Result<'OK', Context>; (subcommand: 'LOG', reset: 'RESET', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'LOG', callback?: Callback<unknown>): Result<unknown, Context>; ( subcommand: 'LOG', count: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'SAVE', callback?: Callback<'OK'>): Result<'OK', Context>; (subcommand: 'SETUSER', username: any, callback?: Callback<'OK'>): Result< 'OK', Context >; ( ...args: [ subcommand: 'SETUSER', username: any, ...rules: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; (subcommand: 'SETUSER', username: any, ...rules: any[]): Result< 'OK', Context >; (subcommand: 'USERS', callback?: Callback<string[]>): Result< string[], Context >; (subcommand: 'WHOAMI', callback?: Callback<string>): Result<string, Context>;};Lists the ACL categories, or the commands inside a category. - _group_: server - _complexity_: O(1) since the categories and commands are a fixed set. - _since_: 6.0.0
Deletes ACL users, and terminates their connections. - _group_: server - _complexity_: O(1) amortized time considering the typical user. - _since_: 6.0.0
Simulates the execution of a command by a user, without executing the command. - _group_: server - _complexity_: O(1). - _since_: 7.0.0
Generates a pseudorandom, secure password that can be used to identify ACL users. - _group_: server - _complexity_: O(1) - _since_: 6.0.0
Lists the ACL rules of a user. - _group_: server - _complexity_: O(N). Where N is the number of password, command and pattern rules that the user has. - _since_: 6.0.0
Returns helpful text about the different subcommands. - _group_: server - _complexity_: O(1) - _since_: 6.0.0
Dumps the effective rules in ACL file format. - _group_: server - _complexity_: O(N). Where N is the number of configured users. - _since_: 6.0.0
Reloads the rules from the configured ACL file. - _group_: server - _complexity_: O(N). Where N is the number of configured users. - _since_: 6.0.0
Lists recent security events generated due to ACL rules. - _group_: server - _complexity_: O(N) with N being the number of entries shown. - _since_: 6.0.0
Saves the effective ACL rules in the configured ACL file. - _group_: server - _complexity_: O(N). Where N is the number of configured users. - _since_: 6.0.0
Creates and modifies an ACL user and its rules. - _group_: server - _complexity_: O(N). Where N is the number of rules provided. - _since_: 6.0.0
Lists all ACL users. - _group_: server - _complexity_: O(N). Where N is the number of configured users. - _since_: 6.0.0
Returns the authenticated username of the current connection. - _group_: server - _complexity_: O(1) - _since_: 6.0.0
method aclBuffer
aclBuffer: { ( subcommand: 'DRYRUN', username: string | Buffer, command: string | Buffer, callback?: Callback<Buffer> ): Result<Buffer, Context>; ( ...args: [ subcommand: 'DRYRUN', username: any, command: any, ...args: any[], callback: Callback<Buffer> ] ): Result<Buffer, Context>; (subcommand: 'DRYRUN', username: any, command: any, ...args: any[]): Result< Buffer, Context >; (subcommand: 'GENPASS', callback?: Callback<Buffer>): Result< Buffer, Context >; ( subcommand: 'GENPASS', bits: string | number, callback?: Callback<Buffer> ): Result<Buffer, Context>; ( subcommand: 'GETUSER', username: any, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; (subcommand: 'LIST', callback?: Callback<Buffer[]>): Result< Buffer[], Context >; (subcommand: 'USERS', callback?: Callback<Buffer[]>): Result< Buffer[], Context >; (subcommand: 'WHOAMI', callback?: Callback<Buffer>): Result<Buffer, Context>;};method append
append: ( key: RedisKey, value: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Appends a string to the value of a key. Creates the key if it doesn't exist. - _group_: string - _complexity_: O(1). The amortized time complexity is O(1) assuming the appended value is small and the already present value is of any size, since the dynamic string library used by Redis will double the free space available on every reallocation. - _since_: 2.0.0
method arcount
arcount: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the number of non-empty elements in an array. - _group_: array - _complexity_: O(1) - _since_: 8.8.0
method ardel
ardel: { ( ...args: [ key: RedisKey, ...indices: (number | string)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...indices: (string | number)[]): Result<number, Context>;};Deletes elements at the specified indices in an array. - _group_: array - _complexity_: O(N) where N is the number of indices to delete - _since_: 8.8.0
method ardelrange
ardelrange: { ( ...args: [ key: RedisKey, ...ranges: (string | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...ranges: (string | number)[]): Result<number, Context>;};Deletes elements in one or more ranges. - _group_: array - _complexity_: Proportional to the number of existing elements / slices touched, not to the numeric span of the requested ranges - _since_: 8.8.0
method arget
arget: ( key: RedisKey, index: number | string, callback?: Callback<string | null>) => Result<string | null, Context>;Gets the value at an index in an array. - _group_: array - _complexity_: O(1) - _since_: 8.8.0
method argetBuffer
argetBuffer: ( key: RedisKey, index: number | string, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method argetrange
argetrange: ( key: RedisKey, start: number | string, end: number | string, callback?: Callback<(string | null)[]>) => Result<(string | null)[], Context>;Gets values in a range of indices. - _group_: array - _complexity_: O(N) where N is the range length - _since_: 8.8.0
method argetrangeBuffer
argetrangeBuffer: ( key: RedisKey, start: number | string, end: number | string, callback?: Callback<(Buffer | null)[]>) => Result<(Buffer | null)[], Context>;method argrep
argrep: { ( key: RedisKey, start: number | string, end: number | string, predicate: 'EXACT' | 'MATCH' | 'GLOB' | 'RE', value: RedisValue, callback: Callback<number[]> ): Result<number[], Context>; ( ...args: [ key: any, start: string | number, end: string | number, predicate: 'EXACT' | 'MATCH' | 'GLOB' | 'RE', value: any, ...args: any[], callback: Callback<number[] | [index: number, value: string][]> ] ): Result<number[] | [index: number, value: string][], Context>; <T extends any[]>( key: any, start: string | number, end: string | number, predicate: 'EXACT' | 'MATCH' | 'GLOB' | 'RE', value: any, ...args: T ): Result< 'WITHVALUES' extends T[number] ? [index: number, value: string][] : number[], Context >;};Searches array elements in a range using textual predicates. - _group_: array - _complexity_: O(P * C) where P is the number of visited positions in touched slices and C is the cost of evaluating the predicates on one existing element. - _since_: 8.8.0
method argrepBuffer
argrepBuffer: { ( key: RedisKey, start: number | string, end: number | string, predicate: 'EXACT' | 'MATCH' | 'GLOB' | 'RE', value: RedisValue, callback: Callback<number[]> ): Result<number[], Context>; ( ...args: [ key: any, start: string | number, end: string | number, predicate: 'EXACT' | 'MATCH' | 'GLOB' | 'RE', value: any, ...args: any[], callback: Callback<number[] | [index: number, value: Buffer][]> ] ): Result<number[] | [index: number, value: Buffer][], Context>; <T extends any[]>( key: any, start: string | number, end: string | number, predicate: 'EXACT' | 'MATCH' | 'GLOB' | 'RE', value: any, ...args: T ): Result< 'WITHVALUES' extends T[number] ? [index: number, value: Buffer][] : number[], Context >;};method arinfo
arinfo: { ( key: RedisKey, full: 'FULL', callback?: Callback<(string | number)[]> ): Result<(string | number)[], Context>; (key: any, callback?: Callback<(string | number)[]>): Result< (string | number)[], Context >;};Returns metadata about an array. - _group_: array - _complexity_: O(1), or O(N) with FULL option where N is the number of slices. - _since_: 8.8.0
method arinfoBuffer
arinfoBuffer: { ( key: RedisKey, full: 'FULL', callback?: Callback<(Buffer | number)[]> ): Result<(Buffer | number)[], Context>; (key: any, callback?: Callback<any[]>): Result<any[], Context>;};method arinsert
arinsert: { ( ...args: [ key: RedisKey, ...values: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...values: any[]): Result<number, Context>;};Inserts one or more values at consecutive indices. - _group_: array - _complexity_: O(N) where N is the number of values - _since_: 8.8.0
method arlastitems
arlastitems: { ( key: RedisKey, count: number | string, rev: 'REV', callback?: Callback<(string | null)[]> ): Result<(string | null)[], Context>; (key: any, count: string | number, callback?: Callback<string[]>): Result< string[], Context >;};Returns the most recently inserted elements. - _group_: array - _complexity_: O(N) where N is the count - _since_: 8.8.0
method arlastitemsBuffer
arlastitemsBuffer: { ( key: RedisKey, count: number | string, rev: 'REV', callback?: Callback<(Buffer | null)[]> ): Result<(Buffer | null)[], Context>; (key: any, count: string | number, callback?: Callback<any[]>): Result< any[], Context >;};method arlen
arlen: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the length of an array (max index + 1). - _group_: array - _complexity_: O(1) - _since_: 8.8.0
method armget
armget: { ( ...args: [ key: RedisKey, ...indices: (number | string)[], callback: Callback<(string | null)[]> ] ): Result<(string | null)[], Context>; (key: any, ...indices: (string | number)[]): Result<string[], Context>;};Gets values at multiple indices in an array. - _group_: array - _complexity_: O(N) where N is the number of indices - _since_: 8.8.0
method armgetBuffer
armgetBuffer: { ( ...args: [ key: RedisKey, ...indices: (number | string)[], callback: Callback<(Buffer | null)[]> ] ): Result<(Buffer | null)[], Context>; (key: any, ...indices: (string | number)[]): Result<any[], Context>;};method armset
armset: { ( ...args: [ key: RedisKey, ...data: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...data: any[]): Result<number, Context>;};Sets multiple index-value pairs in an array. - _group_: array - _complexity_: O(N) where N is the number of pairs - _since_: 8.8.0
method arnext
arnext: ( key: RedisKey, callback?: Callback<number | null>) => Result<number | null, Context>;Returns the next index ARINSERT would use. - _group_: array - _complexity_: O(1) - _since_: 8.8.0
method arop
arop: { ( key: RedisKey, start: number | string, end: number | string, sum: 'SUM', callback?: Callback<string | null> ): Result<string | null, Context>; ( key: any, start: string | number, end: string | number, min: 'MIN', callback?: Callback<string> ): Result<string, Context>; ( key: any, start: string | number, end: string | number, max: 'MAX', callback?: Callback<string> ): Result<string, Context>; ( key: any, start: string | number, end: string | number, and: 'AND', callback?: Callback<number> ): Result<number, Context>; ( key: any, start: string | number, end: string | number, or: 'OR', callback?: Callback<number> ): Result<number, Context>; ( key: any, start: string | number, end: string | number, xor: 'XOR', callback?: Callback<number> ): Result<number, Context>; ( key: any, start: string | number, end: string | number, match: 'MATCH', value: any, callback?: Callback<number> ): Result<number, Context>; ( key: any, start: string | number, end: string | number, used: 'USED', callback?: Callback<number> ): Result<number, Context>;};Performs aggregate operations on array elements in a range. - _group_: array - _complexity_: O(P) where P is visited positions in touched slices (dense scanned slots + sparse entries), with worst-case O(|end-start|+1) and typical case close to O(N), where N is the number of existing elements in range. - _since_: 8.8.0
method aropBuffer
aropBuffer: { ( key: RedisKey, start: number | string, end: number | string, sum: 'SUM', callback?: Callback<Buffer | null> ): Result<Buffer | null, Context>; ( key: any, start: string | number, end: string | number, min: 'MIN', callback?: Callback<any> ): Result<any, Context>; ( key: any, start: string | number, end: string | number, max: 'MAX', callback?: Callback<any> ): Result<any, Context>;};method arring
arring: { ( ...args: [ key: RedisKey, size: number | string, ...values: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, size: string | number, ...values: any[]): Result<number, Context>;};Inserts values into a ring buffer of specified size, wrapping and truncating as needed. - _group_: array - _complexity_: O(M) normally, O(N+M) on ring resize, where N is the maximum of the old and new ring size and M is the number of inserted values - _since_: 8.8.0
method arscan
arscan: { ( key: RedisKey, start: number | string, end: number | string, limitToken: 'LIMIT', limit: number | string, callback?: Callback<Array<[index: number, value: string]>> ): Result<Array<[index: number, value: string]>, Context>; ( key: any, start: string | number, end: string | number, callback?: Callback<[index: number, value: string][]> ): Result<[index: number, value: string][], Context>;};Iterates existing elements in a range, returning index-value pairs. - _group_: array - _complexity_: O(P) where P is visited positions in touched slices (dense scanned slots + sparse entries), with worst-case O(|end-start|+1) and typical case close to O(N), where N is the number of existing elements in range. - _since_: 8.8.0
method arscanBuffer
arscanBuffer: { ( key: RedisKey, start: number | string, end: number | string, limitToken: 'LIMIT', limit: number | string, callback?: Callback<Array<[index: number, value: Buffer]>> ): Result<Array<[index: number, value: Buffer]>, Context>; ( key: any, start: string | number, end: string | number, callback?: Callback<[index: number, value: Buffer][]> ): Result<[index: number, value: Buffer][], Context>;};method arseek
arseek: ( key: RedisKey, index: number | string, callback?: Callback<number>) => Result<number, Context>;Sets the ARINSERT / ARRING cursor to a specific index. - _group_: array - _complexity_: O(1) - _since_: 8.8.0
method arset
arset: { ( ...args: [ key: RedisKey, index: number | string, ...values: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, index: string | number, ...values: any[]): Result< number, Context >;};Sets one or more contiguous values starting at an index in an array. - _group_: array - _complexity_: O(N) where N is the number of values - _since_: 8.8.0
method asking
asking: (callback?: Callback<'OK'>) => Result<'OK', Context>;Signals that a cluster client is following an -ASK redirect. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
method auth
auth: { (password: string | Buffer, callback?: Callback<'OK'>): Result< 'OK', Context >; (username: any, password: any, callback?: Callback<'OK'>): Result< 'OK', Context >;};Authenticates the connection. - _group_: connection - _complexity_: O(N) where N is the number of passwords defined for the user - _since_: 1.0.0
method bgrewriteaof
bgrewriteaof: (callback?: Callback<string>) => Result<string, Context>;Asynchronously rewrites the append-only file to disk. - _group_: server - _complexity_: O(1) - _since_: 1.0.0
method bgrewriteaofBuffer
bgrewriteaofBuffer: (callback?: Callback<Buffer>) => Result<Buffer, Context>;method bgsave
bgsave: { (schedule: 'SCHEDULE', callback?: Callback<'OK'>): Result<'OK', Context>; (callback?: Callback<'OK'>): Result<'OK', Context>;};Asynchronously saves the database(s) to disk. - _group_: server - _complexity_: O(1) - _since_: 1.0.0
method bitcount
bitcount: { ( key: RedisKey, start: number | string, end: number | string, byte: 'BYTE', callback?: Callback<number> ): Result<number, Context>; ( key: any, start: string | number, end: string | number, bit: 'BIT', callback?: Callback<number> ): Result<number, Context>; (key: any, callback?: Callback<number>): Result<number, Context>; ( key: any, start: string | number, end: string | number, callback?: Callback<number> ): Result<number, Context>;};Counts the number of set bits (population counting) in a string. - _group_: bitmap - _complexity_: O(N) - _since_: 2.6.0
method bitfield
bitfield: { ( key: RedisKey, overflow: 'OVERFLOW', wrap: 'WRAP', setBlockToken: 'SET', encoding: string | Buffer, offset: number | string, value: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, overflow: 'OVERFLOW', wrap: 'WRAP', incrbyBlockToken: 'INCRBY', encoding: any, offset: string | number, increment: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, overflow: 'OVERFLOW', sat: 'SAT', setBlockToken: 'SET', encoding: any, offset: string | number, value: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, overflow: 'OVERFLOW', sat: 'SAT', incrbyBlockToken: 'INCRBY', encoding: any, offset: string | number, increment: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, overflow: 'OVERFLOW', fail: 'FAIL', setBlockToken: 'SET', encoding: any, offset: string | number, value: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, overflow: 'OVERFLOW', fail: 'FAIL', incrbyBlockToken: 'INCRBY', encoding: any, offset: string | number, increment: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, getBlockToken: 'GET', encoding: any, offset: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, setBlockToken: 'SET', encoding: any, offset: string | number, value: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, incrbyBlockToken: 'INCRBY', encoding: any, offset: string | number, increment: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (key: any, callback?: Callback<unknown>): Result<unknown, Context>;};Performs arbitrary bitfield integer operations on strings. - _group_: bitmap - _complexity_: O(1) for each subcommand specified - _since_: 3.2.0
method bitfield_ro
bitfield_ro: { ( ...args: [ key: RedisKey, getBlockToken: 'GET', ...getBlocks: (string | Buffer | number)[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; (key: any, getBlockToken: 'GET', ...getBlocks: any[]): Result< unknown[], Context >; (key: any, callback?: Callback<unknown[]>): Result<unknown[], Context>;};Performs arbitrary read-only bitfield integer operations on strings. - _group_: bitmap - _complexity_: O(1) for each subcommand specified - _since_: 6.0.0
method bitop
bitop: { ( ...args: [ and: 'AND', destkey: RedisKey, ...keys: RedisKey[], callback: Callback<number> ] ): Result<number, Context>; (and: 'AND', destkey: any, keys: any[], callback: Callback<number>): Result< number, Context >; (and: 'AND', destkey: any, ...keys: any[]): Result<number, Context>; (and: 'AND', destkey: any, keys: any[]): Result<number, Context>; ( ...args: [ or: 'OR', destkey: any, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (or: 'OR', destkey: any, keys: any[], callback: Callback<number>): Result< number, Context >; (or: 'OR', destkey: any, ...keys: any[]): Result<number, Context>; (or: 'OR', destkey: any, keys: any[]): Result<number, Context>; ( ...args: [ xor: 'XOR', destkey: any, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (xor: 'XOR', destkey: any, keys: any[], callback: Callback<number>): Result< number, Context >; (xor: 'XOR', destkey: any, ...keys: any[]): Result<number, Context>; (xor: 'XOR', destkey: any, keys: any[]): Result<number, Context>; ( ...args: [ not: 'NOT', destkey: any, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (not: 'NOT', destkey: any, keys: any[], callback: Callback<number>): Result< number, Context >; (not: 'NOT', destkey: any, ...keys: any[]): Result<number, Context>; (not: 'NOT', destkey: any, keys: any[]): Result<number, Context>; ( ...args: [ diff: 'DIFF', destkey: any, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; ( diff: 'DIFF', destkey: any, keys: any[], callback: Callback<number> ): Result<number, Context>; (diff: 'DIFF', destkey: any, ...keys: any[]): Result<number, Context>; (diff: 'DIFF', destkey: any, keys: any[]): Result<number, Context>; ( ...args: [ diff1: 'DIFF1', destkey: any, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; ( diff1: 'DIFF1', destkey: any, keys: any[], callback: Callback<number> ): Result<number, Context>; (diff1: 'DIFF1', destkey: any, ...keys: any[]): Result<number, Context>; (diff1: 'DIFF1', destkey: any, keys: any[]): Result<number, Context>; ( ...args: [ andor: 'ANDOR', destkey: any, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; ( andor: 'ANDOR', destkey: any, keys: any[], callback: Callback<number> ): Result<number, Context>; (andor: 'ANDOR', destkey: any, ...keys: any[]): Result<number, Context>; (andor: 'ANDOR', destkey: any, keys: any[]): Result<number, Context>; ( ...args: [ one: 'ONE', destkey: any, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (one: 'ONE', destkey: any, keys: any[], callback: Callback<number>): Result< number, Context >; (one: 'ONE', destkey: any, ...keys: any[]): Result<number, Context>; (one: 'ONE', destkey: any, keys: any[]): Result<number, Context>;};Performs bitwise operations on multiple strings, and stores the result. - _group_: bitmap - _complexity_: O(N) - _since_: 2.6.0
method bitpos
bitpos: { ( key: RedisKey, bit: number | string, start: number | string, end: number | string, byte: 'BYTE', callback?: Callback<number> ): Result<number, Context>; ( key: any, bit: string | number, start: string | number, end: string | number, bit1: 'BIT', callback?: Callback<number> ): Result<number, Context>; (key: any, bit: string | number, callback?: Callback<number>): Result< number, Context >; ( key: any, bit: string | number, start: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, bit: string | number, start: string | number, end: string | number, callback?: Callback<number> ): Result<number, Context>;};Finds the first set (1) or clear (0) bit in a string. - _group_: bitmap - _complexity_: O(N) - _since_: 2.8.7
method blmove
blmove: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', timeout: number | string, callback?: Callback<string | null> ): Result<string | null, Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, callback?: Callback<string> ): Result<string, Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, callback?: Callback<string> ): Result<string, Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, callback?: Callback<string> ): Result<string, Context>;};Pops an element from a list, pushes it to another list and returns it. Blocks until an element is available otherwise. Deletes the list if the last element was moved. - _group_: list - _complexity_: O(1) - _since_: 6.2.0
method blmoveBuffer
blmoveBuffer: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', timeout: number | string, callback?: Callback<Buffer | null> ): Result<Buffer | null, Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, callback?: Callback<any> ): Result<any, Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, callback?: Callback<any> ): Result<any, Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, callback?: Callback<any> ): Result<any, Context>;};method blmovem
blmovem: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', timeout: number | string, countToken: 'COUNT', count: number | string, obo: 'OBO', callback?: Callback<string[] | null> ): Result<string[] | null, Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, callback?: Callback<string[]> ): Result<string[], Context>;};Moves up to (or exactly) a number of elements from one list to another and returns them. Blocks until the elements are available otherwise. Deletes the source list if it becomes empty. - _group_: list - _complexity_: O(N) where N is the number of elements moved. - _since_: 8.10.0
method blmovemBuffer
blmovemBuffer: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', timeout: number | string, countToken: 'COUNT', count: number | string, obo: 'OBO', callback?: Callback<Buffer[] | null> ): Result<Buffer[] | null, Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', timeout: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', timeout: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', timeout: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', timeout: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>;};method blmpop
blmpop: { ( ...args: [ timeout: number | string, numkeys: number | string, ...keys: RedisKey[], left: 'LEFT', countToken: 'COUNT', count: number | string, callback: Callback<[key: string, members: string[]] | null> ] ): Result<[key: string, members: string[]] | null, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number, callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ] ): Result<[key: string, members: string[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ): Result<[key: string, members: string[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: string, members: string[]]> ] ): Result<[key: string, members: string[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ] ): Result<[key: string, members: string[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ): Result<[key: string, members: string[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], left: 'LEFT', callback: Callback<[key: string, members: string[]]> ] ): Result<[key: string, members: string[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT', callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], left: 'LEFT' ] ): Result<[key: string, members: string[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT' ): Result<[key: string, members: string[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT', callback: Callback<[key: string, members: string[]]> ] ): Result<[key: string, members: string[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT', callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT' ] ): Result<[key: string, members: string[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT' ): Result<[key: string, members: string[]], Context>;};Pops the first element from one of multiple lists. Blocks until an element is available otherwise. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(N+M) where N is the number of provided keys and M is the number of elements returned. - _since_: 7.0.0
method blmpopBuffer
blmpopBuffer: { ( ...args: [ timeout: number | string, numkeys: number | string, ...keys: RedisKey[], left: 'LEFT', countToken: 'COUNT', count: number | string, callback: Callback<[key: Buffer, members: Buffer[]] | null> ] ): Result<[key: Buffer, members: Buffer[]] | null, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number, callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: Buffer, members: Buffer[]]> ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], left: 'LEFT', callback: Callback<[key: Buffer, members: Buffer[]]> ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT', callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], left: 'LEFT' ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], left: 'LEFT' ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT', callback: Callback<[key: Buffer, members: Buffer[]]> ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT', callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], right: 'RIGHT' ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( timeout: string | number, numkeys: string | number, keys: any[], right: 'RIGHT' ): Result<[key: Buffer, members: Buffer[]], Context>;};method blpop
blpop: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback<[string, string] | null> ] ): Result<[string, string] | null, Context>; ( keys: any[], timeout: string | number, callback: Callback<[string, string]> ): Result<[string, string], Context>; (...args: [...keys: any[], timeout: string | number]): Result< [string, string], Context >; (keys: any[], timeout: string | number): Result<[string, string], Context>;};Removes and returns the first element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(N) where N is the number of provided keys. - _since_: 2.0.0
method blpopBuffer
blpopBuffer: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback<[Buffer, Buffer] | null> ] ): Result<[Buffer, Buffer] | null, Context>; ( keys: any[], timeout: string | number, callback: Callback<[Buffer, Buffer]> ): Result<[Buffer, Buffer], Context>; (...args: [...keys: any[], timeout: string | number]): Result< [Buffer, Buffer], Context >; (keys: any[], timeout: string | number): Result<[Buffer, Buffer], Context>;};method brpop
brpop: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback<[string, string] | null> ] ): Result<[string, string] | null, Context>; ( keys: any[], timeout: string | number, callback: Callback<[string, string]> ): Result<[string, string], Context>; (...args: [...keys: any[], timeout: string | number]): Result< [string, string], Context >; (keys: any[], timeout: string | number): Result<[string, string], Context>;};Removes and returns the last element in a list. Blocks until an element is available otherwise. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(N) where N is the number of provided keys. - _since_: 2.0.0
method brpopBuffer
brpopBuffer: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback<[Buffer, Buffer] | null> ] ): Result<[Buffer, Buffer] | null, Context>; ( keys: any[], timeout: string | number, callback: Callback<[Buffer, Buffer]> ): Result<[Buffer, Buffer], Context>; (...args: [...keys: any[], timeout: string | number]): Result< [Buffer, Buffer], Context >; (keys: any[], timeout: string | number): Result<[Buffer, Buffer], Context>;};method brpoplpush
brpoplpush: ( source: RedisKey, destination: RedisKey, timeout: number | string, callback?: Callback<string | null>) => Result<string | null, Context>;Pops an element from a list, pushes it to another list and returns it. Block until an element is available otherwise. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(1) - _since_: 2.2.0
method brpoplpushBuffer
brpoplpushBuffer: ( source: RedisKey, destination: RedisKey, timeout: number | string, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method bzmpop
bzmpop: { ( ...args: [ timeout: number | string, numkeys: number | string, ...keys: RedisKey[], min: 'MIN', countToken: 'COUNT', count: number | string, callback: Callback<unknown> ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], min: 'MIN', countToken: 'COUNT', count: string | number, callback: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], min: 'MIN', countToken: 'COUNT', count: string | number ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], min: 'MIN', countToken: 'COUNT', count: string | number ): Result<unknown, Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number, callback: Callback<unknown> ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number, callback: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number ): Result<unknown, Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], min: 'MIN', callback: Callback<unknown> ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], min: 'MIN', callback: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], min: 'MIN' ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], min: 'MIN' ): Result<unknown, Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], max: 'MAX', callback: Callback<unknown> ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], max: 'MAX', callback: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ timeout: string | number, numkeys: string | number, ...keys: any[], max: 'MAX' ] ): Result<unknown, Context>; ( timeout: string | number, numkeys: string | number, keys: any[], max: 'MAX' ): Result<unknown, Context>;};Removes and returns a member by score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped. - _group_: sorted-set - _complexity_: O(K) + O(M*log(N)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped. - _since_: 7.0.0
method bzpopmax
bzpopmax: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback< RespShape< Resp2<[key: string, member: string, score: string] | null>, Resp3< | [ key: string, member: string, score: Resp3Double<string> ] | null >, Context > > ] ): Result< RespShape< Resp2<[key: string, member: string, score: string] | null>, Resp3< [key: string, member: string, score: Resp3Double<string>] | null >, Context >, Context >; ( keys: any[], timeout: string | number, callback: Callback< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context > > ): Result< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context >, Context >; (...args: [...keys: any[], timeout: string | number]): Result< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context >, Context >; (keys: any[], timeout: string | number): Result< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context >, Context >;};Removes and returns the member with the highest score from one or more sorted sets. Blocks until a member available otherwise. Deletes the sorted set if the last element was popped. - _group_: sorted-set - _complexity_: O(log(N)) with N being the number of elements in the sorted set. - _since_: 5.0.0
method bzpopmaxBuffer
bzpopmaxBuffer: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer] | null>, Resp3< | [ key: Buffer, member: Buffer, score: Resp3Double<Buffer> ] | null >, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer] | null>, Resp3< [key: Buffer, member: Buffer, score: Resp3Double<Buffer>] | null >, Context >, Context >; ( keys: any[], timeout: string | number, callback: Callback< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context > > ): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context >, Context >; (...args: [...keys: any[], timeout: string | number]): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context >, Context >; (keys: any[], timeout: string | number): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context >, Context >;};method bzpopmin
bzpopmin: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback< RespShape< Resp2<[key: string, member: string, score: string] | null>, Resp3< | [ key: string, member: string, score: Resp3Double<string> ] | null >, Context > > ] ): Result< RespShape< Resp2<[key: string, member: string, score: string] | null>, Resp3< [key: string, member: string, score: Resp3Double<string>] | null >, Context >, Context >; ( keys: any[], timeout: string | number, callback: Callback< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context > > ): Result< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context >, Context >; (...args: [...keys: any[], timeout: string | number]): Result< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context >, Context >; (keys: any[], timeout: string | number): Result< RespShape< Resp2<[key: string, member: string, score: string]>, Resp3<[key: string, member: string, score: number]>, Context >, Context >;};Removes and returns the member with the lowest score from one or more sorted sets. Blocks until a member is available otherwise. Deletes the sorted set if the last element was popped. - _group_: sorted-set - _complexity_: O(log(N)) with N being the number of elements in the sorted set. - _since_: 5.0.0
method bzpopminBuffer
bzpopminBuffer: { ( ...args: [ ...keys: RedisKey[], timeout: number | string, callback: Callback< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer] | null>, Resp3< | [ key: Buffer, member: Buffer, score: Resp3Double<Buffer> ] | null >, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer] | null>, Resp3< [key: Buffer, member: Buffer, score: Resp3Double<Buffer>] | null >, Context >, Context >; ( keys: any[], timeout: string | number, callback: Callback< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context > > ): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context >, Context >; (...args: [...keys: any[], timeout: string | number]): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context >, Context >; (keys: any[], timeout: string | number): Result< RespShape< Resp2<[key: Buffer, member: Buffer, score: Buffer]>, Resp3<[key: Buffer, member: Buffer, score: number]>, Context >, Context >;};method call
call: { (command: string, callback?: Callback<unknown>): Result<unknown, Context>; (command: string, args: any[], callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [command: string, ...args: any[], callback: Callback<unknown>] ): Result<unknown, Context>; (command: string, ...args: any[]): Result<unknown, Context>;};Call arbitrary commands.
redis.call('set', 'foo', 'bar')is the same asredis.set('foo', 'bar'), so the only case you need to use this method is when the command is not supported by ioredis.redis.call('set', 'foo', 'bar');redis.call('get', 'foo', (err, value) => {// value === 'bar'});
method callBuffer
callBuffer: { (command: string, callback?: Callback<unknown>): Result<unknown, Context>; (command: string, args: any[], callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [command: string, ...args: any[], callback: Callback<unknown>] ): Result<unknown, Context>; (command: string, ...args: any[]): Result<unknown, Context>;};method client
client: { (subcommand: 'CACHING', yes: 'YES', callback?: Callback<'OK'>): Result< 'OK', Context >; (subcommand: 'CACHING', no: 'NO', callback?: Callback<'OK'>): Result< 'OK', Context >; (subcommand: 'GETNAME', callback?: Callback<string>): Result< string, Context >; (subcommand: 'GETREDIR', callback?: Callback<number>): Result< number, Context >; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'ID', callback?: Callback<number>): Result<number, Context>; (subcommand: 'INFO', callback?: Callback<string>): Result<string, Context>; ( subcommand: 'KILL', type: 'TYPE', normal: 'NORMAL', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', type: 'TYPE', master: 'MASTER', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', type: 'TYPE', slave: 'SLAVE', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', type: 'TYPE', replica: 'REPLICA', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', type: 'TYPE', pubsub: 'PUBSUB', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', skipme: 'SKIPME', yes: 'YES', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', skipme: 'SKIPME', no: 'NO', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', clientIdToken: 'ID', clientId: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', usernameToken: 'USER', username: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', addrToken: 'ADDR', addr: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', laddrToken: 'LADDR', laddr: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'KILL', maxageToken: 'MAXAGE', maxage: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'KILL', oldFormat: any, callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; ( ...args: [ subcommand: 'LIST', type: 'TYPE', normal: 'NORMAL', clientIdToken: 'ID', ...clientIds: (string | number)[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', normal: 'NORMAL', clientIdToken: 'ID', ...clientIds: (string | number)[] ): Result<unknown, Context>; ( ...args: [ subcommand: 'LIST', type: 'TYPE', master: 'MASTER', clientIdToken: 'ID', ...clientIds: (string | number)[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', master: 'MASTER', clientIdToken: 'ID', ...clientIds: (string | number)[] ): Result<unknown, Context>; ( ...args: [ subcommand: 'LIST', type: 'TYPE', replica: 'REPLICA', clientIdToken: 'ID', ...clientIds: (string | number)[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', replica: 'REPLICA', clientIdToken: 'ID', ...clientIds: (string | number)[] ): Result<unknown, Context>; ( ...args: [ subcommand: 'LIST', type: 'TYPE', pubsub: 'PUBSUB', clientIdToken: 'ID', ...clientIds: (string | number)[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', pubsub: 'PUBSUB', clientIdToken: 'ID', ...clientIds: (string | number)[] ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', normal: 'NORMAL', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', master: 'MASTER', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', replica: 'REPLICA', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'LIST', type: 'TYPE', pubsub: 'PUBSUB', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ subcommand: 'LIST', clientIdToken: 'ID', ...clientIds: (string | number)[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'LIST', clientIdToken: 'ID', ...clientIds: (string | number)[] ): Result<unknown, Context>; (subcommand: 'LIST', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'NO-EVICT', on: 'ON', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'NO-EVICT', off: 'OFF', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'NO-TOUCH', on: 'ON', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'NO-TOUCH', off: 'OFF', callback?: Callback<unknown>): Result< unknown, Context >; ( subcommand: 'PAUSE', timeout: string | number, write: 'WRITE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'PAUSE', timeout: string | number, all: 'ALL', callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'PAUSE', timeout: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; (subcommand: 'REPLY', on: 'ON', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'REPLY', off: 'OFF', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'REPLY', skip: 'SKIP', callback?: Callback<unknown>): Result< unknown, Context >; ( subcommand: 'SETINFO', libnameToken: 'LIB-NAME', libname: any, callback?: Callback<string> ): Result<string, Context>; ( subcommand: 'SETINFO', libverToken: 'LIB-VER', libver: any, callback?: Callback<string> ): Result<string, Context>; ( subcommand: 'SETNAME', connectionName: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ subcommand: 'TRACKING', ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (subcommand: 'TRACKING', ...args: any[]): Result<unknown, Context>; (subcommand: 'TRACKINGINFO', callback?: Callback<string>): Result< string, Context >; ( subcommand: 'UNBLOCK', clientId: string | number, timeout: 'TIMEOUT', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'UNBLOCK', clientId: string | number, error: 'ERROR', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'UNBLOCK', clientId: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'UNPAUSE', callback?: Callback<'OK'>): Result<'OK', Context>;};Instructs the server whether to track the keys in the next request. - _group_: connection - _complexity_: O(1) - _since_: 6.0.0
Returns the name of the connection. - _group_: connection - _complexity_: O(1) - _since_: 2.6.9
Returns the client ID to which the connection's tracking notifications are redirected. - _group_: connection - _complexity_: O(1) - _since_: 6.0.0
Returns helpful text about the different subcommands. - _group_: connection - _complexity_: O(1) - _since_: 5.0.0
Returns the unique client ID of the connection. - _group_: connection - _complexity_: O(1) - _since_: 5.0.0
Returns information about the connection. - _group_: connection - _complexity_: O(1) - _since_: 6.2.0
Terminates open connections. - _group_: connection - _complexity_: O(N) where N is the number of client connections - _since_: 2.4.0
Lists open connections. - _group_: connection - _complexity_: O(N) where N is the number of client connections - _since_: 2.4.0
Sets the client eviction mode of the connection. - _group_: connection - _complexity_: O(1) - _since_: 7.0.0
Controls whether commands sent by the client affect the LRU/LFU of accessed keys. - _group_: connection - _complexity_: O(1) - _since_: 7.2.0
Suspends commands processing. - _group_: connection - _complexity_: O(1) - _since_: 3.0.0
Instructs the server whether to reply to commands. - _group_: connection - _complexity_: O(1) - _since_: 3.2.0
Sets information specific to the client or connection. - _group_: connection - _complexity_: O(1) - _since_: 7.2.0
Sets the connection name. - _group_: connection - _complexity_: O(1) - _since_: 2.6.9
Controls server-assisted client-side caching for the connection. - _group_: connection - _complexity_: O(1). Some options may introduce additional complexity. - _since_: 6.0.0
Returns information about server-assisted client-side caching for the connection. - _group_: connection - _complexity_: O(1) - _since_: 6.2.0
Unblocks a client blocked by a blocking command from a different connection. - _group_: connection - _complexity_: O(log N) where N is the number of client connections - _since_: 5.0.0
Resumes processing commands from paused clients. - _group_: connection - _complexity_: O(N) Where N is the number of paused clients - _since_: 6.2.0
method clientBuffer
clientBuffer: { (subcommand: 'GETNAME', callback?: Callback<Buffer | null>): Result< Buffer | null, Context >; (subcommand: 'INFO', callback?: Callback<Buffer>): Result<Buffer, Context>; ( subcommand: 'SETINFO', libnameToken: 'LIB-NAME', libname: any, callback?: Callback<Buffer> ): Result<Buffer, Context>; ( subcommand: 'SETINFO', libverToken: 'LIB-VER', libver: any, callback?: Callback<Buffer> ): Result<Buffer, Context>; (subcommand: 'TRACKINGINFO', callback?: Callback<Buffer>): Result< Buffer, Context >;};method cluster
cluster: { ( ...args: [ subcommand: 'ADDSLOTS', ...slots: (number | string)[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ] ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'ADDSLOTS', slots: (string | number)[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'ADDSLOTS', ...slots: (string | number)[]): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'ADDSLOTS', slots: (string | number)[]): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( ...args: [ subcommand: 'ADDSLOTSRANGE', ...ranges: (string | number)[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ] ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'ADDSLOTSRANGE', ...ranges: (string | number)[]): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'BUMPEPOCH', callback?: Callback<'BUMPED' | 'STILL'>): Result< 'BUMPED' | 'STILL', Context >; ( subcommand: 'COUNT-FAILURE-REPORTS', nodeId: any, callback?: Callback<number> ): Result<number, Context>; ( subcommand: 'COUNTKEYSINSLOT', slot: string | number, callback?: Callback<number> ): Result<number, Context>; ( ...args: [ subcommand: 'DELSLOTS', ...slots: (string | number)[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ] ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'DELSLOTS', slots: (string | number)[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'DELSLOTS', ...slots: (string | number)[]): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'DELSLOTS', slots: (string | number)[]): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( ...args: [ subcommand: 'DELSLOTSRANGE', ...ranges: (string | number)[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ] ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'DELSLOTSRANGE', ...ranges: (string | number)[]): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'FAILOVER', force: 'FORCE', callback?: Callback<'OK'>): Result< 'OK', Context >; ( subcommand: 'FAILOVER', takeover: 'TAKEOVER', callback?: Callback<'OK'> ): Result<'OK', Context>; (subcommand: 'FAILOVER', callback?: Callback<'OK'>): Result<'OK', Context>; ( subcommand: 'FLUSHSLOTS', callback?: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'FORGET', nodeId: any, callback?: Callback<'OK'>): Result< 'OK', Context >; ( subcommand: 'GETKEYSINSLOT', slot: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'INFO', callback?: Callback<string>): Result<string, Context>; (subcommand: 'KEYSLOT', key: any, callback?: Callback<number>): Result< number, Context >; (subcommand: 'LINKS', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( subcommand: 'MEET', ip: any, port: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'MEET', ip: any, port: string | number, clusterBusPort: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'MIGRATION', cancel: 'CANCEL', taskIdToken: 'ID', taskId: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'MIGRATION', cancel: 'CANCEL', all: 'ALL', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'MIGRATION', status: 'STATUS', taskIdToken: 'ID', taskId: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'MIGRATION', status: 'STATUS', all: 'ALL', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ subcommand: 'MIGRATION', importToken: 'IMPORT', ...imports: (string | number)[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'MIGRATION', importToken: 'IMPORT', ...imports: (string | number)[] ): Result<unknown, Context>; ( subcommand: 'MIGRATION', status: 'STATUS', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'MIGRATION', status: 'STATUS', callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'MYID', callback?: Callback<string>): Result<string, Context>; (subcommand: 'MYSHARDID', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'NODES', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'REPLICAS', nodeId: any, callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'REPLICATE', nodeId: any, callback?: Callback<'OK'>): Result< 'OK', Context >; (subcommand: 'RESET', hard: 'HARD', callback?: Callback<'OK'>): Result< 'OK', Context >; (subcommand: 'RESET', soft: 'SOFT', callback?: Callback<'OK'>): Result< 'OK', Context >; (subcommand: 'RESET', callback?: Callback<'OK'>): Result<'OK', Context>; (subcommand: 'SAVECONFIG', callback?: Callback<'OK'>): Result<'OK', Context>; ( subcommand: 'SET-CONFIG-EPOCH', configEpoch: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'SETSLOT', slot: string | number, importingToken: 'IMPORTING', importing: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'SETSLOT', slot: string | number, migratingToken: 'MIGRATING', migrating: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'SETSLOT', slot: string | number, nodeToken: 'NODE', node: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( subcommand: 'SETSLOT', slot: string | number, stable: 'STABLE', callback?: Callback<'OK'> ): Result<'OK', Context>; (subcommand: 'SHARDS', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'SLAVES', nodeId: any, callback?: Callback<unknown>): Result< unknown, Context >; ( subcommand: 'SLOT-STATS', orderbyToken: 'ORDERBY', metric: any, limitToken: 'LIMIT', limit: string | number, asc: 'ASC', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SLOT-STATS', orderbyToken: 'ORDERBY', metric: any, limitToken: 'LIMIT', limit: string | number, desc: 'DESC', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SLOT-STATS', orderbyToken: 'ORDERBY', metric: any, asc: 'ASC', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SLOT-STATS', orderbyToken: 'ORDERBY', metric: any, desc: 'DESC', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SLOT-STATS', orderbyToken: 'ORDERBY', metric: any, limitToken: 'LIMIT', limit: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SLOT-STATS', slotsrangeToken: 'SLOTSRANGE', startSlot: string | number, endSlot: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SLOT-STATS', orderbyToken: 'ORDERBY', metric: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SLOTS', callback?: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( ...args: [ subcommand: 'SYNCSLOTS', syncToken: 'SYNC', taskId: any, ...slotRanges: (string | number)[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ] ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'SYNCSLOTS', syncToken: 'SYNC', taskId: any, ...slotRanges: (string | number)[] ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'SYNCSLOTS', taskIdToken: 'RDBCHANNEL', taskId: any, callback?: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'SYNCSLOTS', snapshotEof: 'SNAPSHOT-EOF', callback?: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'SYNCSLOTS', streamEof: 'STREAM-EOF', callback?: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'SYNCSLOTS', ackToken: 'ACK', state: any, offset: string | number, callback?: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( subcommand: 'SYNCSLOTS', errorToken: 'FAIL', error: any, callback?: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; ( ...args: [ subcommand: 'SYNCSLOTS', confToken: 'CONF', ...args: any[], callback: Callback< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][] > ] ): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >; (subcommand: 'SYNCSLOTS', confToken: 'CONF', ...args: any[]): Result< [ startSlotRange: number, endSlotRange: number, ...nodes: [ host: string, port: number, nodeId: string, info: unknown[] ][] ][], Context >;};Assigns new hash slots to a node. - _group_: cluster - _complexity_: O(N) where N is the total number of hash slot arguments - _since_: 3.0.0
Assigns new hash slot ranges to a node. - _group_: cluster - _complexity_: O(N) where N is the total number of the slots between the start slot and end slot arguments. - _since_: 7.0.0
Advances the cluster config epoch. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Returns the number of active failure reports active for a node. - _group_: cluster - _complexity_: O(N) where N is the number of failure reports - _since_: 3.0.0
Returns the number of keys in a hash slot. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Sets hash slots as unbound for a node. - _group_: cluster - _complexity_: O(N) where N is the total number of hash slot arguments - _since_: 3.0.0
Sets hash slot ranges as unbound for a node. - _group_: cluster - _complexity_: O(N) where N is the total number of the slots between the start slot and end slot arguments. - _since_: 7.0.0
Forces a replica to perform a manual failover of its master. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Deletes all slots information from a node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Removes a node from the nodes table. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Returns the key names in a hash slot. - _group_: cluster - _complexity_: O(N) where N is the number of requested keys - _since_: 3.0.0
Returns helpful text about the different subcommands. - _group_: cluster - _complexity_: O(1) - _since_: 5.0.0
Returns information about the state of a node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Returns the hash slot for a key. - _group_: cluster - _complexity_: O(N) where N is the number of bytes in the key - _since_: 3.0.0
Returns a list of all TCP links to and from peer nodes. - _group_: cluster - _complexity_: O(N) where N is the total number of Cluster nodes - _since_: 7.0.0
Forces a node to handshake with another node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Start, monitor and cancel slot migration. - _group_: cluster - _complexity_: O(N) where N is the total number of the slots between the start slot and end slot arguments. - _since_: 8.4.0
Returns the ID of a node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Returns the shard ID of a node. - _group_: cluster - _complexity_: O(1) - _since_: 7.2.0
Returns the cluster configuration for a node. - _group_: cluster - _complexity_: O(N) where N is the total number of Cluster nodes - _since_: 3.0.0
Lists the replica nodes of a master node. - _group_: cluster - _complexity_: O(N) where N is the number of replicas. - _since_: 5.0.0
Configure a node as replica of a master node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Resets a node. - _group_: cluster - _complexity_: O(N) where N is the number of known nodes. The command may execute a FLUSHALL as a side effect. - _since_: 3.0.0
Forces a node to save the cluster configuration to disk. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Sets the configuration epoch for a new node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Binds a hash slot to a node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
Returns the mapping of cluster slots to shards. - _group_: cluster - _complexity_: O(N) where N is the total number of cluster nodes - _since_: 7.0.0
Lists the replica nodes of a master node. - _group_: cluster - _complexity_: O(N) where N is the number of replicas. - _since_: 3.0.0
Return an array of slot usage statistics for slots assigned to the current node. - _group_: cluster - _complexity_: O(N) where N is the total number of slots based on arguments. O(N*log(N)) with ORDERBY subcommand. - _since_: 8.2.0
Returns the mapping of cluster slots to nodes. - _group_: cluster - _complexity_: O(N) where N is the total number of Cluster nodes - _since_: 3.0.0
Internal command for atomic slot migration protocol between cluster nodes. - _group_: cluster - _complexity_: O(1) - _since_: 8.4.0
method command
command: { (subcommand: 'COUNT', callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'DOCS', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( ...args: [ subcommand: 'DOCS', ...commandNames: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; (subcommand: 'DOCS', ...commandNames: any[]): Result<unknown[], Context>; ( subcommand: 'GETKEYS', command: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( ...args: [ subcommand: 'GETKEYS', command: any, ...args: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; (subcommand: 'GETKEYS', command: any, ...args: any[]): Result< unknown[], Context >; ( subcommand: 'GETKEYSANDFLAGS', command: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( ...args: [ subcommand: 'GETKEYSANDFLAGS', command: any, ...args: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; (subcommand: 'GETKEYSANDFLAGS', command: any, ...args: any[]): Result< unknown[], Context >; (subcommand: 'HELP', callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'INFO', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( ...args: [ subcommand: 'INFO', ...commandNames: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; (subcommand: 'INFO', ...commandNames: any[]): Result<unknown[], Context>; ( subcommand: 'LIST', filterby: 'FILTERBY', moduleNameToken: 'MODULE', moduleName: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( subcommand: 'LIST', filterby: 'FILTERBY', categoryToken: 'ACLCAT', category: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( subcommand: 'LIST', filterby: 'FILTERBY', patternToken: 'PATTERN', pattern: string, callback?: Callback<unknown[]> ): Result<unknown[], Context>; (subcommand: 'LIST', callback?: Callback<unknown[]>): Result< unknown[], Context >;};Returns a count of commands. - _group_: server - _complexity_: O(1) - _since_: 2.8.13
Returns documentary information about one, multiple or all commands. - _group_: server - _complexity_: O(N) where N is the number of commands to look up - _since_: 7.0.0
Extracts the key names from an arbitrary command. - _group_: server - _complexity_: O(N) where N is the number of arguments to the command - _since_: 2.8.13
Extracts the key names and access flags for an arbitrary command. - _group_: server - _complexity_: O(N) where N is the number of arguments to the command - _since_: 7.0.0
Returns helpful text about the different subcommands. - _group_: server - _complexity_: O(1) - _since_: 5.0.0
Returns information about one, multiple or all commands. - _group_: server - _complexity_: O(N) where N is the number of commands to look up - _since_: 2.8.13
Returns a list of command names. - _group_: server - _complexity_: O(N) where N is the total number of Redis commands - _since_: 7.0.0
method config
config: { ( ...args: [ subcommand: 'GET', ...parameters: (string | Buffer)[], callback: Callback< RespShape<Resp2<string[]>, Resp3<Resp3Map<string>>, Context> > ] ): Result< RespShape<Resp2<string[]>, Resp3<Resp3Map<string>>, Context>, Context >; (subcommand: 'GET', ...parameters: any[]): Result< RespShape<Resp2<string[]>, Resp3<Resp3Map<string>>, Context>, Context >; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'RESETSTAT', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'REWRITE', callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [subcommand: 'SET', ...data: any[], callback: Callback<unknown>] ): Result<unknown, Context>; (subcommand: 'SET', ...data: any[]): Result<unknown, Context>;};Returns the effective values of configuration parameters. - _group_: server - _complexity_: O(N) when N is the number of configuration parameters provided - _since_: 2.0.0
Returns helpful text about the different subcommands. - _group_: server - _complexity_: O(1) - _since_: 5.0.0
Resets the server's statistics. - _group_: server - _complexity_: O(1) - _since_: 2.0.0
Persists the effective configuration to file. - _group_: server - _complexity_: O(1) - _since_: 2.8.0
Sets configuration parameters in-flight. - _group_: server - _complexity_: O(N) when N is the number of configuration parameters provided - _since_: 2.0.0
method configBuffer
configBuffer: { ( ...args: [ subcommand: 'GET', ...parameters: (string | Buffer)[], callback: Callback< RespShape<Resp2<Buffer[]>, Resp3<Resp3Map<Buffer>>, Context> > ] ): Result< RespShape<Resp2<Buffer[]>, Resp3<Resp3Map<Buffer>>, Context>, Context >; (subcommand: 'GET', ...parameters: any[]): Result< RespShape<Resp2<Buffer[]>, Resp3<Resp3Map<Buffer>>, Context>, Context >;};method copy
copy: { ( source: RedisKey, destination: RedisKey, destinationDbToken: 'DB', destinationDb: number | string, replace: 'REPLACE', callback?: Callback<number> ): Result<number, Context>; ( source: any, destination: any, replace: 'REPLACE', callback?: Callback<number> ): Result<number, Context>; ( source: any, destination: any, destinationDbToken: 'DB', destinationDb: string | number, callback?: Callback<number> ): Result<number, Context>; (source: any, destination: any, callback?: Callback<number>): Result< number, Context >;};Copies the value of a key to a new key. - _group_: generic - _complexity_: O(N) worst case for collections, where N is the number of nested items. O(1) for string values. - _since_: 6.2.0
method dbsize
dbsize: (callback?: Callback<number>) => Result<number, Context>;Returns the number of keys in the database. - _group_: server - _complexity_: O(1) - _since_: 1.0.0
method debug
debug: { (subcommand: string, callback?: Callback<unknown>): Result<unknown, Context>; ( ...args: [ subcommand: string, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (subcommand: string, ...args: any[]): Result<unknown, Context>;};A container for debugging commands. - _group_: server - _complexity_: Depends on subcommand. - _since_: 1.0.0
method decr
decr: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Decrements the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method decrby
decrby: ( key: RedisKey, decrement: number | string, callback?: Callback<number>) => Result<number, Context>;Decrements a number from the integer value of a key. Uses 0 as initial value if the key doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method del
del: { (...args: [...keys: RedisKey[], callback: Callback<number>]): Result< number, Context >; (keys: any[], callback: Callback<number>): Result<number, Context>; (...args: any[]): Result<number, Context>; (keys: any[]): Result<number, Context>;};Deletes one or more keys. - _group_: generic - _complexity_: O(N) where N is the number of keys that will be removed. When a key to remove holds a value other than a string, the individual complexity for this key is O(M) where M is the number of elements in the list, set, sorted set or hash. Removing a single key that holds a string value is O(1). - _since_: 1.0.0
method discard
discard: (callback?: Callback<'OK'>) => Result<'OK', Context>;Discards a transaction. - _group_: transactions - _complexity_: O(N), when N is the number of queued commands - _since_: 2.0.0
method dump
dump: (key: RedisKey, callback?: Callback<string>) => Result<string, Context>;Returns a serialized representation of the value stored at a key. - _group_: generic - _complexity_: O(1) to access the key and additional O(N*M) to serialize it, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). - _since_: 2.6.0
method dumpBuffer
dumpBuffer: ( key: RedisKey, callback?: Callback<Buffer>) => Result<Buffer, Context>;method echo
echo: ( message: string | Buffer, callback?: Callback<string>) => Result<string, Context>;Returns the given string. - _group_: connection - _complexity_: O(1) - _since_: 1.0.0
method echoBuffer
echoBuffer: ( message: string | Buffer, callback?: Callback<Buffer>) => Result<Buffer, Context>;method eval
eval: { ( script: string | Buffer, numkeys: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ script: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (script: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >; ( ...args: [ script: any, numkeys: string | number, ...keys: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( script: any, numkeys: string | number, keys: any[], callback: Callback<unknown> ): Result<unknown, Context>; (script: any, numkeys: string | number, ...keys: any[]): Result< unknown, Context >; (script: any, numkeys: string | number, keys: any[]): Result< unknown, Context >; ( ...args: [ script: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (script: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >;};Executes a server-side Lua script. - _group_: scripting - _complexity_: Depends on the script that is executed. - _since_: 2.6.0
method eval_ro
eval_ro: { ( script: string | Buffer, numkeys: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ script: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (script: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >; ( ...args: [ script: any, numkeys: string | number, ...keys: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( script: any, numkeys: string | number, keys: any[], callback: Callback<unknown> ): Result<unknown, Context>; (script: any, numkeys: string | number, ...keys: any[]): Result< unknown, Context >; (script: any, numkeys: string | number, keys: any[]): Result< unknown, Context >; ( ...args: [ script: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (script: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >;};Executes a read-only server-side Lua script. - _group_: scripting - _complexity_: Depends on the script that is executed. - _since_: 7.0.0
method evalsha
evalsha: { ( sha1: string | Buffer, numkeys: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ sha1: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (sha1: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >; ( ...args: [ sha1: any, numkeys: string | number, ...keys: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( sha1: any, numkeys: string | number, keys: any[], callback: Callback<unknown> ): Result<unknown, Context>; (sha1: any, numkeys: string | number, ...keys: any[]): Result< unknown, Context >; (sha1: any, numkeys: string | number, keys: any[]): Result<unknown, Context>; ( ...args: [ sha1: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (sha1: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >;};Executes a server-side Lua script by SHA1 digest. - _group_: scripting - _complexity_: Depends on the script that is executed. - _since_: 2.6.0
method evalsha_ro
evalsha_ro: { ( sha1: string | Buffer, numkeys: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ sha1: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (sha1: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >; ( ...args: [ sha1: any, numkeys: string | number, ...keys: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( sha1: any, numkeys: string | number, keys: any[], callback: Callback<unknown> ): Result<unknown, Context>; (sha1: any, numkeys: string | number, ...keys: any[]): Result< unknown, Context >; (sha1: any, numkeys: string | number, keys: any[]): Result<unknown, Context>; ( ...args: [ sha1: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (sha1: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >;};Executes a read-only server-side Lua script by SHA1 digest. - _group_: scripting - _complexity_: Depends on the script that is executed. - _since_: 7.0.0
method exec
exec: ( callback?: Callback<[error: Error | null, result: unknown][] | null>) => Promise<[error: Error | null, result: unknown][] | null>;Executes all commands in a transaction. - _group_: transactions - _complexity_: Depends on commands in the transaction - _since_: 1.2.0
method exists
exists: { (...args: [...keys: RedisKey[], callback: Callback<number>]): Result< number, Context >; (keys: any[], callback: Callback<number>): Result<number, Context>; (...args: any[]): Result<number, Context>; (keys: any[]): Result<number, Context>;};Determines whether one or more keys exist. - _group_: generic - _complexity_: O(N) where N is the number of keys to check. - _since_: 1.0.0
method expire
expire: { ( key: RedisKey, seconds: number | string, nx: 'NX', callback?: Callback<number> ): Result<number, Context>; ( key: any, seconds: string | number, xx: 'XX', callback?: Callback<number> ): Result<number, Context>; ( key: any, seconds: string | number, gt: 'GT', callback?: Callback<number> ): Result<number, Context>; ( key: any, seconds: string | number, lt: 'LT', callback?: Callback<number> ): Result<number, Context>; (key: any, seconds: string | number, callback?: Callback<number>): Result< number, Context >;};Sets the expiration time of a key in seconds. - _group_: generic - _complexity_: O(1) - _since_: 1.0.0
method expireat
expireat: { ( key: RedisKey, unixTimeSeconds: number | string, nx: 'NX', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeSeconds: string | number, xx: 'XX', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeSeconds: string | number, gt: 'GT', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeSeconds: string | number, lt: 'LT', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeSeconds: string | number, callback?: Callback<number> ): Result<number, Context>;};Sets the expiration time of a key to a Unix timestamp. - _group_: generic - _complexity_: O(1) - _since_: 1.2.0
method expiretime
expiretime: ( key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the expiration time of a key as a Unix timestamp. - _group_: generic - _complexity_: O(1) - _since_: 7.0.0
method failover
failover: { ( targetToken: 'TO', host: string | Buffer, port: number | string, force: 'FORCE', abort: 'ABORT', millisecondsToken: 'TIMEOUT', milliseconds: number | string, callback?: Callback<'OK'> ): Result<'OK', Context>; ( targetToken: 'TO', host: any, port: string | number, abort: 'ABORT', millisecondsToken: 'TIMEOUT', milliseconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( targetToken: 'TO', host: any, port: string | number, force: 'FORCE', millisecondsToken: 'TIMEOUT', milliseconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( targetToken: 'TO', host: any, port: string | number, force: 'FORCE', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( abort: 'ABORT', millisecondsToken: 'TIMEOUT', milliseconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( targetToken: 'TO', host: any, port: string | number, millisecondsToken: 'TIMEOUT', milliseconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( targetToken: 'TO', host: any, port: string | number, abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( targetToken: 'TO', host: any, port: string | number, force: 'FORCE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( millisecondsToken: 'TIMEOUT', milliseconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; (abort: 'ABORT', callback?: Callback<'OK'>): Result<'OK', Context>; ( targetToken: 'TO', host: any, port: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; (callback?: Callback<'OK'>): Result<'OK', Context>;};Starts a coordinated failover from a server to one of its replicas. - _group_: server - _complexity_: O(1) - _since_: 6.2.0
method fcall
fcall: { ( func: string | Buffer, numkeys: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ func: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (func: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >; ( ...args: [ func: any, numkeys: string | number, ...keys: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( func: any, numkeys: string | number, keys: any[], callback: Callback<unknown> ): Result<unknown, Context>; (func: any, numkeys: string | number, ...keys: any[]): Result< unknown, Context >; (func: any, numkeys: string | number, keys: any[]): Result<unknown, Context>; ( ...args: [ func: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (func: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >;};Invokes a function. - _group_: scripting - _complexity_: Depends on the function that is executed. - _since_: 7.0.0
method fcall_ro
fcall_ro: { ( func: string | Buffer, numkeys: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ func: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (func: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >; ( ...args: [ func: any, numkeys: string | number, ...keys: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( func: any, numkeys: string | number, keys: any[], callback: Callback<unknown> ): Result<unknown, Context>; (func: any, numkeys: string | number, ...keys: any[]): Result< unknown, Context >; (func: any, numkeys: string | number, keys: any[]): Result<unknown, Context>; ( ...args: [ func: any, numkeys: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (func: any, numkeys: string | number, ...args: any[]): Result< unknown, Context >;};Invokes a read-only function. - _group_: scripting - _complexity_: Depends on the function that is executed. - _since_: 7.0.0
method flushall
flushall: { (async: 'ASYNC', callback?: Callback<'OK'>): Result<'OK', Context>; (sync: 'SYNC', callback?: Callback<'OK'>): Result<'OK', Context>; (callback?: Callback<'OK'>): Result<'OK', Context>;};Removes all keys from all databases. - _group_: server - _complexity_: O(N) where N is the total number of keys in all databases - _since_: 1.0.0
method flushdb
flushdb: { (async: 'ASYNC', callback?: Callback<'OK'>): Result<'OK', Context>; (sync: 'SYNC', callback?: Callback<'OK'>): Result<'OK', Context>; (callback?: Callback<'OK'>): Result<'OK', Context>;};Remove all keys from the current database. - _group_: server - _complexity_: O(N) where N is the number of keys in the selected database - _since_: 1.0.0
method function
function: { ( subcommand: 'DELETE', libraryName: string | Buffer, callback?: Callback<string> ): Result<string, Context>; (subcommand: 'DUMP', callback?: Callback<string>): Result<string, Context>; (subcommand: 'FLUSH', async: 'ASYNC', callback?: Callback<string>): Result< string, Context >; (subcommand: 'FLUSH', sync: 'SYNC', callback?: Callback<string>): Result< string, Context >; (subcommand: 'FLUSH', callback?: Callback<string>): Result<string, Context>; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<string>): Result<string, Context>; ( subcommand: 'LIST', libraryNamePatternToken: 'LIBRARYNAME', libraryNamePattern: any, withcode: 'WITHCODE', callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( subcommand: 'LIST', withcode: 'WITHCODE', callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( subcommand: 'LIST', libraryNamePatternToken: 'LIBRARYNAME', libraryNamePattern: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>; (subcommand: 'LIST', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( subcommand: 'LOAD', replace: 'REPLACE', functionCode: any, callback?: Callback<string> ): Result<string, Context>; (subcommand: 'LOAD', functionCode: any, callback?: Callback<string>): Result< string, Context >; ( subcommand: 'RESTORE', serializedValue: any, flush: 'FLUSH', callback?: Callback<string> ): Result<string, Context>; ( subcommand: 'RESTORE', serializedValue: any, append: 'APPEND', callback?: Callback<string> ): Result<string, Context>; ( subcommand: 'RESTORE', serializedValue: any, replace: 'REPLACE', callback?: Callback<string> ): Result<string, Context>; ( subcommand: 'RESTORE', serializedValue: any, callback?: Callback<string> ): Result<string, Context>; (subcommand: 'STATS', callback?: Callback<unknown>): Result< unknown, Context >;};Deletes a library and its functions. - _group_: scripting - _complexity_: O(1) - _since_: 7.0.0
Dumps all libraries into a serialized binary payload. - _group_: scripting - _complexity_: O(N) where N is the number of functions - _since_: 7.0.0
Deletes all libraries and functions. - _group_: scripting - _complexity_: O(N) where N is the number of functions deleted - _since_: 7.0.0
Returns helpful text about the different subcommands. - _group_: scripting - _complexity_: O(1) - _since_: 7.0.0
Terminates a function during execution. - _group_: scripting - _complexity_: O(1) - _since_: 7.0.0
Returns information about all libraries. - _group_: scripting - _complexity_: O(N) where N is the number of functions - _since_: 7.0.0
Creates a library. - _group_: scripting - _complexity_: O(1) (considering compilation time is redundant) - _since_: 7.0.0
Restores all libraries from a payload. - _group_: scripting - _complexity_: O(N) where N is the number of functions on the payload - _since_: 7.0.0
Returns information about a function during execution. - _group_: scripting - _complexity_: O(1) - _since_: 7.0.0
method functionBuffer
functionBuffer: { ( subcommand: 'DELETE', libraryName: string | Buffer, callback?: Callback<Buffer> ): Result<Buffer, Context>; (subcommand: 'DUMP', callback?: Callback<Buffer>): Result<Buffer, Context>; (subcommand: 'FLUSH', async: 'ASYNC', callback?: Callback<Buffer>): Result< Buffer, Context >; (subcommand: 'FLUSH', sync: 'SYNC', callback?: Callback<Buffer>): Result< Buffer, Context >; (subcommand: 'FLUSH', callback?: Callback<Buffer>): Result<Buffer, Context>; (subcommand: 'KILL', callback?: Callback<Buffer>): Result<Buffer, Context>; ( subcommand: 'LOAD', replace: 'REPLACE', functionCode: any, callback?: Callback<Buffer> ): Result<Buffer, Context>; (subcommand: 'LOAD', functionCode: any, callback?: Callback<Buffer>): Result< Buffer, Context >; ( subcommand: 'RESTORE', serializedValue: any, flush: 'FLUSH', callback?: Callback<Buffer> ): Result<Buffer, Context>; ( subcommand: 'RESTORE', serializedValue: any, append: 'APPEND', callback?: Callback<Buffer> ): Result<Buffer, Context>; ( subcommand: 'RESTORE', serializedValue: any, replace: 'REPLACE', callback?: Callback<Buffer> ): Result<Buffer, Context>; ( subcommand: 'RESTORE', serializedValue: any, callback?: Callback<Buffer> ): Result<Buffer, Context>;};method geoadd
geoadd: { ( ...args: [ key: RedisKey, nx: 'NX', ch: 'CH', ...data: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, nx: 'NX', ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, xx: 'XX', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, xx: 'XX', ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [key: any, ch: 'CH', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [key: any, nx: 'NX', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, nx: 'NX', ...data: any[]): Result<number, Context>; ( ...args: [key: any, xx: 'XX', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, xx: 'XX', ...data: any[]): Result<number, Context>; (...args: [key: any, ...data: any[], callback: Callback<number>]): Result< number, Context >; (key: any, ...data: any[]): Result<number, Context>;};Adds one or more members to a geospatial index. The key is created if it doesn't exist. - _group_: geo - _complexity_: O(log(N)) for each item added, where N is the number of elements in the sorted set. - _since_: 3.2.0
method geodist
geodist: { ( key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, m: 'M', callback?: Callback<string | null> ): Result<string | null, Context>; ( key: any, member1: any, member2: any, km: 'KM', callback?: Callback<string> ): Result<string, Context>; ( key: any, member1: any, member2: any, ft: 'FT', callback?: Callback<string> ): Result<string, Context>; ( key: any, member1: any, member2: any, mi: 'MI', callback?: Callback<string> ): Result<string, Context>; (key: any, member1: any, member2: any, callback?: Callback<string>): Result< string, Context >;};Returns the distance between two members of a geospatial index. - _group_: geo - _complexity_: O(1) - _since_: 3.2.0
method geodistBuffer
geodistBuffer: { ( key: RedisKey, member1: string | Buffer | number, member2: string | Buffer | number, m: 'M', callback?: Callback<Buffer | null> ): Result<Buffer | null, Context>; ( key: any, member1: any, member2: any, km: 'KM', callback?: Callback<any> ): Result<any, Context>; ( key: any, member1: any, member2: any, ft: 'FT', callback?: Callback<any> ): Result<any, Context>; ( key: any, member1: any, member2: any, mi: 'MI', callback?: Callback<any> ): Result<any, Context>; (key: any, member1: any, member2: any, callback?: Callback<any>): Result< any, Context >;};method geohash
geohash: { (key: RedisKey, callback?: Callback<string[]>): Result<string[], Context>; ( ...args: [key: any, ...members: any[], callback: Callback<string[]>] ): Result<string[], Context>; (key: any, members: any[], callback: Callback<string[]>): Result< string[], Context >; (key: any, ...members: any[]): Result<string[], Context>; (key: any, members: any[]): Result<string[], Context>;};Returns members from a geospatial index as geohash strings. - _group_: geo - _complexity_: O(1) for each member requested. - _since_: 3.2.0
method geohashBuffer
geohashBuffer: { (key: RedisKey, callback?: Callback<Buffer[]>): Result<Buffer[], Context>; ( ...args: [key: any, ...members: any[], callback: Callback<Buffer[]>] ): Result<Buffer[], Context>; (key: any, members: any[], callback: Callback<Buffer[]>): Result< Buffer[], Context >; (key: any, ...members: any[]): Result<Buffer[], Context>; (key: any, members: any[]): Result<Buffer[], Context>;};method geopos
geopos: { ( key: RedisKey, callback?: Callback< RespShape< Resp2<([longitude: string, latitude: string] | null)[]>, Resp3< ( | [ longitude: Resp3Double<string>, latitude: Resp3Double<string> ] | null )[] >, Context > > ): Result< RespShape< Resp2<([longitude: string, latitude: string] | null)[]>, Resp3< ( | [ longitude: Resp3Double<string>, latitude: Resp3Double<string> ] | null )[] >, Context >, Context >; ( ...args: [ key: any, ...members: any[], callback: Callback< RespShape< Resp2<[longitude: string, latitude: string][]>, Resp3<[longitude: number, latitude: number][]>, Context > > ] ): Result< RespShape< Resp2<[longitude: string, latitude: string][]>, Resp3<[longitude: number, latitude: number][]>, Context >, Context >; ( key: any, members: any[], callback: Callback< RespShape< Resp2<[longitude: string, latitude: string][]>, Resp3<[longitude: number, latitude: number][]>, Context > > ): Result< RespShape< Resp2<[longitude: string, latitude: string][]>, Resp3<[longitude: number, latitude: number][]>, Context >, Context >; (key: any, ...members: any[]): Result< RespShape< Resp2<[longitude: string, latitude: string][]>, Resp3<[longitude: number, latitude: number][]>, Context >, Context >; (key: any, members: any[]): Result< RespShape< Resp2<[longitude: string, latitude: string][]>, Resp3<[longitude: number, latitude: number][]>, Context >, Context >;};Returns the longitude and latitude of members from a geospatial index. - _group_: geo - _complexity_: O(1) for each member requested. - _since_: 3.2.0
method georadius
georadius: { ( ...args: [ key: any, longitude: string | number, latitude: string | number, radius: string | number, ...args: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( key: any, longitude: string | number, latitude: string | number, radius: string | number, ...args: any[] ): Result<unknown[], Context>;};Queries a geospatial index for members within a distance from a coordinate, optionally stores the result. - _group_: geo - _complexity_: O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index. - _since_: 3.2.0
method georadius_ro
georadius_ro: { ( ...args: [ key: any, longitude: string | number, latitude: string | number, radius: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( key: any, longitude: string | number, latitude: string | number, radius: string | number, ...args: any[] ): Result<unknown, Context>;};Returns members from a geospatial index that are within a distance from a coordinate. - _group_: geo - _complexity_: O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index. - _since_: 3.2.10
method georadiusbymember
georadiusbymember: { ( ...args: [ key: any, member: any, radius: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (key: any, member: any, radius: string | number, ...args: any[]): Result< unknown, Context >;};Queries a geospatial index for members within a distance from a member, optionally stores the result. - _group_: geo - _complexity_: O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index. - _since_: 3.2.0
method georadiusbymember_ro
georadiusbymember_ro: { ( ...args: [ key: any, member: any, radius: string | number, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (key: any, member: any, radius: string | number, ...args: any[]): Result< unknown, Context >;};Returns members from a geospatial index that are within a distance from a member. - _group_: geo - _complexity_: O(N+log(M)) where N is the number of elements inside the bounding box of the circular area delimited by center and radius and M is the number of items inside the index. - _since_: 3.2.10
method geosearch
geosearch: { (...args: [key: any, ...args: any[], callback: Callback<unknown[]>]): Result< unknown[], Context >; (key: any, ...args: any[]): Result<unknown[], Context>;};Queries a geospatial index for members inside an area of a box or a circle. - _group_: geo - _complexity_: O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape - _since_: 6.2.0
method geosearchstore
geosearchstore: { ( ...args: [ destination: any, source: any, ...args: any[], callback: Callback<number> ] ): Result<number, Context>; (destination: any, source: any, ...args: any[]): Result<number, Context>;};Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result. - _group_: geo - _complexity_: O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape - _since_: 6.2.0
method get
get: ( key: RedisKey, callback?: Callback<string | null>) => Result<string | null, Context>;Returns the string value of a key. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method getbit
getbit: ( key: RedisKey, offset: number | string, callback?: Callback<number>) => Result<number, Context>;Returns a bit value by offset. - _group_: bitmap - _complexity_: O(1) - _since_: 2.2.0
method getBuffer
getBuffer: ( key: RedisKey, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method getdel
getdel: ( key: RedisKey, callback?: Callback<string | null>) => Result<string | null, Context>;Returns the string value of a key after deleting the key. - _group_: string - _complexity_: O(1) - _since_: 6.2.0
method getdelBuffer
getdelBuffer: ( key: RedisKey, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method getex
getex: { ( key: RedisKey, secondsToken: 'EX', seconds: number | string, callback?: Callback<string | null> ): Result<string | null, Context>; ( key: any, millisecondsToken: 'PX', milliseconds: string | number, callback?: Callback<string> ): Result<string, Context>; ( key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, callback?: Callback<string> ): Result<string, Context>; ( key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, callback?: Callback<string> ): Result<string, Context>; (key: any, persist: 'PERSIST', callback?: Callback<string>): Result< string, Context >; (key: any, callback?: Callback<string>): Result<string, Context>;};Returns the string value of a key after setting its expiration time. - _group_: string - _complexity_: O(1) - _since_: 6.2.0
method getexBuffer
getexBuffer: { ( key: RedisKey, secondsToken: 'EX', seconds: number | string, callback?: Callback<Buffer | null> ): Result<Buffer | null, Context>; ( key: any, millisecondsToken: 'PX', milliseconds: string | number, callback?: Callback<any> ): Result<any, Context>; ( key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, callback?: Callback<any> ): Result<any, Context>; ( key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, callback?: Callback<any> ): Result<any, Context>; (key: any, persist: 'PERSIST', callback?: Callback<any>): Result< any, Context >; (key: any, callback?: Callback<any>): Result<any, Context>;};method getrange
getrange: ( key: RedisKey, start: number | string, end: number | string, callback?: Callback<string>) => Result<string, Context>;Returns a substring of the string stored at a key. - _group_: string - _complexity_: O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings. - _since_: 2.4.0
method getrangeBuffer
getrangeBuffer: ( key: RedisKey, start: number | string, end: number | string, callback?: Callback<Buffer>) => Result<Buffer, Context>;method getset
getset: ( key: RedisKey, value: string | Buffer | number, callback?: Callback<string | null>) => Result<string | null, Context>;Returns the previous string value of a key after setting it to a new value. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method getsetBuffer
getsetBuffer: ( key: RedisKey, value: string | Buffer | number, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method hdel
hdel: { ( ...args: [ key: RedisKey, ...fields: (string | Buffer)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...fields: any[]): Result<number, Context>;};Deletes one or more fields and their values from a hash. Deletes the hash if no fields remain. - _group_: hash - _complexity_: O(N) where N is the number of fields to be removed. - _since_: 2.0.0
method hello
hello: { ( protover: number | string, authToken: 'AUTH', username: string | Buffer, password: string | Buffer, clientnameToken: 'SETNAME', clientname: string | Buffer, callback?: Callback< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context> > ): Result< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context>, Context >; ( protover: string | number, clientnameToken: 'SETNAME', clientname: any, callback?: Callback< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context> > ): Result< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context>, Context >; ( protover: string | number, authToken: 'AUTH', username: any, password: any, callback?: Callback< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context> > ): Result< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context>, Context >; ( callback?: Callback< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context> > ): Result< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context>, Context >; ( protover: string | number, callback?: Callback< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context> > ): Result< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context>, Context >;};Handshakes with the Redis server. - _group_: connection - _complexity_: O(1) - _since_: 6.0.0
method hexists
hexists: ( key: RedisKey, field: string | Buffer, callback?: Callback<number>) => Result<number, Context>;Determines whether a field exists in a hash. - _group_: hash - _complexity_: O(1) - _since_: 2.0.0
method hexpire
hexpire: { ( ...args: [ key: RedisKey, seconds: number | string, nx: 'NX', fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, seconds: string | number, nx: 'NX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, seconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, seconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, seconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, seconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, seconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, seconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Set expiry for hash field using relative time to expire (seconds) - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hexpireat
hexpireat: { ( ...args: [ key: RedisKey, unixTimeSeconds: number | string, nx: 'NX', fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeSeconds: string | number, nx: 'NX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeSeconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeSeconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeSeconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeSeconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeSeconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeSeconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Set expiry for hash field using an absolute Unix timestamp (seconds) - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hexpiretime
hexpiretime: { ( ...args: [ key: RedisKey, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Returns the expiration time of a hash field as a Unix timestamp, in seconds. - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hget
hget: ( key: RedisKey, field: string | Buffer, callback?: Callback<string | null>) => Result<string | null, Context>;Returns the value of a field in a hash. - _group_: hash - _complexity_: O(1) - _since_: 2.0.0
method hgetall
hgetall: ( key: RedisKey, callback?: Callback<Record<string, string>>) => Result<Record<string, string>, Context>;Returns all fields and values in a hash. - _group_: hash - _complexity_: O(N) where N is the size of the hash. - _since_: 2.0.0
method hgetallBuffer
hgetallBuffer: ( key: RedisKey, callback?: Callback<Record<string, Buffer>>) => Result<Record<string, Buffer>, Context>;method hgetBuffer
hgetBuffer: ( key: RedisKey, field: string | Buffer, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method hgetdel
hgetdel: { ( ...args: [ key: RedisKey, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<(string | null)[]> ] ): Result<(string | null)[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<string[], Context>;};Returns the value of a field and deletes it from the hash. - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 8.0.0
method hgetdelBuffer
hgetdelBuffer: { ( ...args: [ key: RedisKey, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<(Buffer | null)[]> ] ): Result<(Buffer | null)[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<any[], Context>;};method hgetex
hgetex: { ( ...args: [ key: RedisKey, secondsToken: 'EX', seconds: number | string, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<(string | null)[]> ] ): Result<(string | null)[], Context>; ( key: any, secondsToken: 'EX', seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<string[], Context>; ( ...args: [ key: any, millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( key: any, millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<string[], Context>; ( ...args: [ key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<string[], Context>; ( ...args: [ key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<string[], Context>; ( ...args: [ key: any, persist: 'PERSIST', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( key: any, persist: 'PERSIST', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<string[], Context>; ( ...args: [ key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<string[], Context>;};Get the value of one or more fields of a given hash key, and optionally set their expiration. - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 8.0.0
method hgetexBuffer
hgetexBuffer: { ( ...args: [ key: RedisKey, secondsToken: 'EX', seconds: number | string, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<(Buffer | null)[]> ] ): Result<(Buffer | null)[], Context>; ( key: any, secondsToken: 'EX', seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<any[], Context>; ( ...args: [ key: any, millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<any[]> ] ): Result<any[], Context>; ( key: any, millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<any[], Context>; ( ...args: [ key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<any[]> ] ): Result<any[], Context>; ( key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<any[], Context>; ( ...args: [ key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<any[]> ] ): Result<any[], Context>; ( key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<any[], Context>; ( ...args: [ key: any, persist: 'PERSIST', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<any[]> ] ): Result<any[], Context>; ( key: any, persist: 'PERSIST', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<any[], Context>; ( ...args: [ key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<any[]> ] ): Result<any[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<any[], Context>;};method himport
himport: { ( subcommand: 'DISCARD', fieldsetName: string | Buffer, callback?: Callback<number> ): Result<number, Context>; (subcommand: 'DISCARDALL', callback?: Callback<number>): Result< number, Context >; ( ...args: [ subcommand: 'PREPARE', fieldsetName: any, ...fields: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; (subcommand: 'PREPARE', fieldsetName: any, ...fields: any[]): Result< 'OK', Context >; ( ...args: [ subcommand: 'SET', key: any, fieldsetName: any, ...values: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; (subcommand: 'SET', key: any, fieldsetName: any, ...values: any[]): Result< 'OK', Context >;};Removes a single session-local fieldset by name. - _group_: hash - _complexity_: O(N) where N is the number of session-local fieldsets. - _since_: 8.10.0
Removes all session-local fieldsets for the connection. - _group_: hash - _complexity_: O(N) where N is the number of session-local fieldsets. - _since_: 8.10.0
Defines a session-local fieldset that maps a name to a sorted set of field names. - _group_: hash - _complexity_: O(N*log(N)) where N is the number of fields. - _since_: 8.10.0
Creates a fieldset-based hash from values supplied in the order matching a previously prepared fieldset. - _group_: hash - _complexity_: O(N) where N is the number of fields in the fieldset. - _since_: 8.10.0
method hincrby
hincrby: ( key: RedisKey, field: string | Buffer, increment: number | string, callback?: Callback<number>) => Result<number, Context>;Increments the integer value of a field in a hash by a number. Uses 0 as initial value if the field doesn't exist. - _group_: hash - _complexity_: O(1) - _since_: 2.0.0
method hincrbyfloat
hincrbyfloat: ( key: RedisKey, field: string | Buffer, increment: number | string, callback?: Callback<string>) => Result<string, Context>;Increments the floating point value of a field by a number. Uses 0 as initial value if the field doesn't exist. - _group_: hash - _complexity_: O(1) - _since_: 2.6.0
method hincrbyfloatBuffer
hincrbyfloatBuffer: ( key: RedisKey, field: string | Buffer, increment: number | string, callback?: Callback<Buffer>) => Result<Buffer, Context>;method hkeys
hkeys: ( key: RedisKey, callback?: Callback<string[]>) => Result<string[], Context>;Returns all fields in a hash. - _group_: hash - _complexity_: O(N) where N is the size of the hash. - _since_: 2.0.0
method hkeysBuffer
hkeysBuffer: ( key: RedisKey, callback?: Callback<Buffer[]>) => Result<Buffer[], Context>;method hlen
hlen: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the number of fields in a hash. - _group_: hash - _complexity_: O(1) - _since_: 2.0.0
method hmget
hmget: { ( ...args: [ key: RedisKey, ...fields: (string | Buffer)[], callback: Callback<(string | null)[]> ] ): Result<(string | null)[], Context>; (key: any, ...fields: any[]): Result<string[], Context>;};Returns the values of all fields in a hash. - _group_: hash - _complexity_: O(N) where N is the number of fields being requested. - _since_: 2.0.0
method hmgetBuffer
hmgetBuffer: { ( ...args: [ key: RedisKey, ...fields: (string | Buffer)[], callback: Callback<(Buffer | null)[]> ] ): Result<(Buffer | null)[], Context>; (key: any, ...fields: any[]): Result<any[], Context>;};method hmset
hmset: { (key: RedisKey, object: object, callback?: Callback<'OK'>): Result< 'OK', Context >; (key: any, map: Map<any, any>, callback?: Callback<'OK'>): Result< 'OK', Context >; (...args: [key: any, ...data: any[], callback: Callback<'OK'>]): Result< 'OK', Context >; (key: any, ...data: any[]): Result<'OK', Context>;};Sets the values of multiple fields. - _group_: hash - _complexity_: O(N) where N is the number of fields being set. - _since_: 2.0.0
method hpersist
hpersist: { ( ...args: [ key: RedisKey, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Removes the expiration time for each specified field - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hpexpire
hpexpire: { ( ...args: [ key: RedisKey, milliseconds: number | string, nx: 'NX', fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, milliseconds: string | number, nx: 'NX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, milliseconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, milliseconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, milliseconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, milliseconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, milliseconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, milliseconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Set expiry for hash field using relative time to expire (milliseconds) - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hpexpireat
hpexpireat: { ( ...args: [ key: RedisKey, unixTimeMilliseconds: number | string, nx: 'NX', fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeMilliseconds: string | number, nx: 'NX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeMilliseconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeMilliseconds: string | number, xx: 'XX', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeMilliseconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeMilliseconds: string | number, gt: 'GT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeMilliseconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeMilliseconds: string | number, lt: 'LT', fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>; ( ...args: [ key: any, unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Set expiry for hash field using an absolute Unix timestamp (milliseconds) - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hpexpiretime
hpexpiretime: { ( ...args: [ key: RedisKey, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Returns the expiration time of a hash field as a Unix timestamp, in msec. - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hpttl
hpttl: { ( ...args: [ key: RedisKey, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Returns the TTL in milliseconds of a hash field. - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hrandfield
hrandfield: { ( key: RedisKey, count: number | string, withvalues: 'WITHVALUES', callback?: Callback<string | unknown[] | null> ): Result<string | unknown[] | null, Context>; (key: any, callback?: Callback<string | unknown[]>): Result< string | unknown[], Context >; ( key: any, count: string | number, callback?: Callback<string | unknown[]> ): Result<string | unknown[], Context>;};Returns one or more random fields from a hash. - _group_: hash - _complexity_: O(N) where N is the number of fields returned - _since_: 6.2.0
method hrandfieldBuffer
hrandfieldBuffer: { ( key: RedisKey, count: number | string, withvalues: 'WITHVALUES', callback?: Callback<Buffer | unknown[] | null> ): Result<Buffer | unknown[] | null, Context>; (key: any, callback?: Callback<any>): Result<any, Context>; (key: any, count: string | number, callback?: Callback<any>): Result< any, Context >;};method hscan
hscan: { ( key: RedisKey, cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, novalues: 'NOVALUES', callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, novalues: 'NOVALUES', callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, novalues: 'NOVALUES', callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, novalues: 'NOVALUES', callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>;};Iterates over fields and values of a hash. - _group_: hash - _complexity_: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection. - _since_: 2.8.0
method hscanBuffer
hscanBuffer: { ( key: RedisKey, cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, novalues: 'NOVALUES', callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, novalues: 'NOVALUES', callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, novalues: 'NOVALUES', callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, novalues: 'NOVALUES', callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>;};method hset
hset: { (key: RedisKey, object: object, callback?: Callback<number>): Result< number, Context >; (key: any, map: Map<any, any>, callback?: Callback<number>): Result< number, Context >; (...args: [key: any, ...data: any[], callback: Callback<number>]): Result< number, Context >; (key: any, ...data: any[]): Result<number, Context>;};Creates or modifies the value of a field in a hash. - _group_: hash - _complexity_: O(1) for each field/value pair added, so O(N) to add N field/value pairs when the command is called with multiple field/value pairs. - _since_: 2.0.0
method hsetex
hsetex: { ( ...args: [ key: RedisKey, fnx: 'FNX', secondsToken: 'EX', seconds: number | string, fieldsToken: 'FIELDS', numfields: number | string, ...data: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fnx: 'FNX', secondsToken: 'EX', seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fnx: 'FNX', millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fnx: 'FNX', millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fnx: 'FNX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fnx: 'FNX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fnx: 'FNX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fnx: 'FNX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fnx: 'FNX', keepttl: 'KEEPTTL', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fnx: 'FNX', keepttl: 'KEEPTTL', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fxx: 'FXX', secondsToken: 'EX', seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fxx: 'FXX', secondsToken: 'EX', seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fxx: 'FXX', millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fxx: 'FXX', millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fxx: 'FXX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fxx: 'FXX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fxx: 'FXX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fxx: 'FXX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fxx: 'FXX', keepttl: 'KEEPTTL', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fxx: 'FXX', keepttl: 'KEEPTTL', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, secondsToken: 'EX', seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, secondsToken: 'EX', seconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, millisecondsToken: 'PX', milliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, keepttl: 'KEEPTTL', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, keepttl: 'KEEPTTL', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fnx: 'FNX', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fnx: 'FNX', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fxx: 'FXX', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fxx: 'FXX', fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>; ( ...args: [ key: any, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...data: any[] ): Result<number, Context>;};Set the value of one or more fields of a given hash key, and optionally set their expiration. - _group_: hash - _complexity_: O(N) where N is the number of fields being set. - _since_: 8.0.0
method hsetnx
hsetnx: ( key: RedisKey, field: string | Buffer, value: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Sets the value of a field in a hash only when the field doesn't exist. - _group_: hash - _complexity_: O(1) - _since_: 2.0.0
method hstrlen
hstrlen: ( key: RedisKey, field: string | Buffer, callback?: Callback<number>) => Result<number, Context>;Returns the length of the value of a field. - _group_: hash - _complexity_: O(1) - _since_: 3.2.0
method httl
httl: { ( ...args: [ key: RedisKey, fieldsToken: 'FIELDS', numfields: number | string, ...fields: (string | Buffer)[], callback: Callback<number[]> ] ): Result<number[], Context>; ( key: any, fieldsToken: 'FIELDS', numfields: string | number, ...fields: any[] ): Result<number[], Context>;};Returns the TTL in seconds of a hash field. - _group_: hash - _complexity_: O(N) where N is the number of specified fields - _since_: 7.4.0
method hvals
hvals: ( key: RedisKey, callback?: Callback<string[]>) => Result<string[], Context>;Returns all values in a hash. - _group_: hash - _complexity_: O(N) where N is the size of the hash. - _since_: 2.0.0
method hvalsBuffer
hvalsBuffer: ( key: RedisKey, callback?: Callback<Buffer[]>) => Result<Buffer[], Context>;method incr
incr: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Increments the integer value of a key by one. Uses 0 as initial value if the key doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method incrby
incrby: ( key: RedisKey, increment: number | string, callback?: Callback<number>) => Result<number, Context>;Increments the integer value of a key by a number. Uses 0 as initial value if the key doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method incrbyfloat
incrbyfloat: ( key: RedisKey, increment: number | string, callback?: Callback<string>) => Result<string, Context>;Increment the floating point value of a key by a number. Uses 0 as initial value if the key doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 2.6.0
method increx
increx: { ( ...args: [ key: any, ...args: any[], callback: Callback< RespShape< Resp2< | [value: number, increment: number] | [value: string, increment: string] >, Resp3<[value: number, increment: number]>, Context > > ] ): Result< RespShape< Resp2< | [value: number, increment: number] | [value: string, increment: string] >, Resp3<[value: number, increment: number]>, Context >, Context >; (key: any, ...args: any[]): Result< RespShape< Resp2< | [value: number, increment: number] | [value: string, increment: string] >, Resp3<[value: number, increment: number]>, Context >, Context >;};Increments the numeric value of a key by a number and sets its expiration time. Uses 0 as initial value if the key doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 8.8.0
method increxBuffer
increxBuffer: { ( ...args: [ key: any, ...args: any[], callback: Callback< RespShape< Resp2< | [value: number, increment: number] | [value: Buffer, increment: Buffer] >, Resp3<[value: number, increment: number]>, Context > > ] ): Result< RespShape< Resp2< | [value: number, increment: number] | [value: Buffer, increment: Buffer] >, Resp3<[value: number, increment: number]>, Context >, Context >; (key: any, ...args: any[]): Result< RespShape< Resp2< | [value: number, increment: number] | [value: Buffer, increment: Buffer] >, Resp3<[value: number, increment: number]>, Context >, Context >;};method info
info: { (callback?: Callback<string>): Result<string, Context>; (...args: [...sections: any[], callback: Callback<string>]): Result< string, Context >; (...args: any[]): Result<string, Context>;};Returns information and statistics about the server. - _group_: server - _complexity_: O(1) - _since_: 1.0.0
method keys
keys: ( pattern: string, callback?: Callback<string[]>) => Result<string[], Context>;Returns all key names that match a pattern. - _group_: generic - _complexity_: O(N) with N being the number of keys in the database, under the assumption that the key names in the database and the given pattern have limited length. - _since_: 1.0.0
method keysBuffer
keysBuffer: ( pattern: string, callback?: Callback<Buffer[]>) => Result<Buffer[], Context>;method lastsave
lastsave: (callback?: Callback<number>) => Result<number, Context>;Returns the Unix timestamp of the last successful save to disk. - _group_: server - _complexity_: O(1) - _since_: 1.0.0
method latency
latency: { (subcommand: 'DOCTOR', callback?: Callback<string>): Result<string, Context>; (subcommand: 'GRAPH', event: any, callback?: Callback<string>): Result< string, Context >; (subcommand: 'HELP', callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'HISTOGRAM', callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [ subcommand: 'HISTOGRAM', ...commands: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (subcommand: 'HISTOGRAM', ...commands: any[]): Result<unknown, Context>; (subcommand: 'HISTORY', event: any, callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'LATEST', callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'RESET', callback?: Callback<number>): Result<number, Context>; ( ...args: [ subcommand: 'RESET', ...events: any[], callback: Callback<number> ] ): Result<number, Context>; (subcommand: 'RESET', ...events: any[]): Result<number, Context>;};Returns a human-readable latency analysis report. - _group_: server - _complexity_: O(1) - _since_: 2.8.13
Returns a latency graph for an event. - _group_: server - _complexity_: O(1) - _since_: 2.8.13
Returns helpful text about the different subcommands. - _group_: server - _complexity_: O(1) - _since_: 2.8.13
Returns the cumulative distribution of latencies of a subset or all commands. - _group_: server - _complexity_: O(N) where N is the number of commands with latency information being retrieved. - _since_: 7.0.0
Returns timestamp-latency samples for an event. - _group_: server - _complexity_: O(1) - _since_: 2.8.13
Returns the latest latency samples for all events. - _group_: server - _complexity_: O(1) - _since_: 2.8.13
Resets the latency data for one or more events. - _group_: server - _complexity_: O(1) - _since_: 2.8.13
method lcs
lcs: { ( key1: RedisKey, key2: RedisKey, len: 'LEN', idx: 'IDX', minMatchLenToken: 'MINMATCHLEN', minMatchLen: number | string, withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, idx: 'IDX', minMatchLenToken: 'MINMATCHLEN', minMatchLen: string | number, withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, len: 'LEN', minMatchLenToken: 'MINMATCHLEN', minMatchLen: string | number, withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, len: 'LEN', idx: 'IDX', withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, len: 'LEN', idx: 'IDX', minMatchLenToken: 'MINMATCHLEN', minMatchLen: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, minMatchLenToken: 'MINMATCHLEN', minMatchLen: string | number, withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, idx: 'IDX', withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, idx: 'IDX', minMatchLenToken: 'MINMATCHLEN', minMatchLen: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, len: 'LEN', withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, len: 'LEN', minMatchLenToken: 'MINMATCHLEN', minMatchLen: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, len: 'LEN', idx: 'IDX', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, withmatchlen: 'WITHMATCHLEN', callback?: Callback<unknown> ): Result<unknown, Context>; ( key1: any, key2: any, minMatchLenToken: 'MINMATCHLEN', minMatchLen: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (key1: any, key2: any, idx: 'IDX', callback?: Callback<unknown>): Result< unknown, Context >; (key1: any, key2: any, len: 'LEN', callback?: Callback<unknown>): Result< unknown, Context >; (key1: any, key2: any, callback?: Callback<unknown>): Result< unknown, Context >;};Finds the longest common substring. - _group_: string - _complexity_: O(N*M) where N and M are the lengths of s1 and s2, respectively - _since_: 7.0.0
method lindex
lindex: ( key: RedisKey, index: number | string, callback?: Callback<string | null>) => Result<string | null, Context>;Returns an element from a list by its index. - _group_: list - _complexity_: O(N) where N is the number of elements to traverse to get to the element at index. This makes asking for the first or the last element of the list O(1). - _since_: 1.0.0
method lindexBuffer
lindexBuffer: ( key: RedisKey, index: number | string, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method linsert
linsert: { ( key: RedisKey, before: 'BEFORE', pivot: string | Buffer | number, element: string | Buffer | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, after: 'AFTER', pivot: any, element: any, callback?: Callback<number> ): Result<number, Context>;};Inserts an element before or after another element in a list. - _group_: list - _complexity_: O(N) where N is the number of elements to traverse before seeing the value pivot. This means that inserting somewhere on the left end on the list (head) can be considered O(1) and inserting somewhere on the right end (tail) is O(N). - _since_: 2.2.0
method llen
llen: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the length of a list. - _group_: list - _complexity_: O(1) - _since_: 1.0.0
method lmove
lmove: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', callback?: Callback<string> ): Result<string, Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', callback?: Callback<string> ): Result<string, Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', callback?: Callback<string> ): Result<string, Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', callback?: Callback<string> ): Result<string, Context>;};Returns an element after popping it from one list and pushing it to another. Deletes the list if the last element was moved. - _group_: list - _complexity_: O(1) - _since_: 6.2.0
method lmoveBuffer
lmoveBuffer: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', callback?: Callback<Buffer> ): Result<Buffer, Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', callback?: Callback<Buffer> ): Result<Buffer, Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', callback?: Callback<Buffer> ): Result<Buffer, Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', callback?: Callback<Buffer> ): Result<Buffer, Context>;};method lmovem
lmovem: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', countToken: 'COUNT', count: number | string, obo: 'OBO', callback?: Callback<string[] | null> ): Result<string[] | null, Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', callback?: Callback<string[]> ): Result<string[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', callback?: Callback<string[]> ): Result<string[], Context>;};Moves up to (or exactly) a number of elements from one list to another and returns them. Deletes the source list if it becomes empty. - _group_: list - _complexity_: O(N) where N is the number of elements moved. - _since_: 8.10.0
method lmovemBuffer
lmovemBuffer: { ( source: RedisKey, destination: RedisKey, left: 'LEFT', left1: 'LEFT', countToken: 'COUNT', count: number | string, obo: 'OBO', callback?: Callback<Buffer[] | null> ): Result<Buffer[] | null, Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', countToken: 'COUNT', count: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', countToken: 'COUNT', count: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, obo: 'OBO', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', exactlyToken: 'EXACTLY', exactly: string | number, bulk: 'BULK', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', left1: 'LEFT', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, left: 'LEFT', right: 'RIGHT', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', left: 'LEFT', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( source: any, destination: any, right: 'RIGHT', right1: 'RIGHT', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>;};method lmpop
lmpop: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], left: 'LEFT', countToken: 'COUNT', count: number | string, callback: Callback<[key: string, members: string[]] | null> ] ): Result<[key: string, members: string[]] | null, Context>; ( numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number, callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ] ): Result<[key: string, members: string[]], Context>; ( numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ): Result<[key: string, members: string[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: string, members: string[]]> ] ): Result<[key: string, members: string[]], Context>; ( numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ] ): Result<[key: string, members: string[]], Context>; ( numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ): Result<[key: string, members: string[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], left: 'LEFT', callback: Callback<[key: string, members: string[]]> ] ): Result<[key: string, members: string[]], Context>; ( numkeys: string | number, keys: any[], left: 'LEFT', callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; (...args: [numkeys: string | number, ...keys: any[], left: 'LEFT']): Result< [key: string, members: string[]], Context >; (numkeys: string | number, keys: any[], left: 'LEFT'): Result< [key: string, members: string[]], Context >; ( ...args: [ numkeys: string | number, ...keys: any[], right: 'RIGHT', callback: Callback<[key: string, members: string[]]> ] ): Result<[key: string, members: string[]], Context>; ( numkeys: string | number, keys: any[], right: 'RIGHT', callback: Callback<[key: string, members: string[]]> ): Result<[key: string, members: string[]], Context>; ( ...args: [numkeys: string | number, ...keys: any[], right: 'RIGHT'] ): Result<[key: string, members: string[]], Context>; (numkeys: string | number, keys: any[], right: 'RIGHT'): Result< [key: string, members: string[]], Context >;};Returns multiple elements from a list after removing them. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(N+M) where N is the number of provided keys and M is the number of elements returned. - _since_: 7.0.0
method lmpopBuffer
lmpopBuffer: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], left: 'LEFT', countToken: 'COUNT', count: number | string, callback: Callback<[key: Buffer, members: Buffer[]] | null> ] ): Result<[key: Buffer, members: Buffer[]] | null, Context>; ( numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number, callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( numkeys: string | number, keys: any[], left: 'LEFT', countToken: 'COUNT', count: string | number ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: Buffer, members: Buffer[]]> ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number, callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( numkeys: string | number, keys: any[], right: 'RIGHT', countToken: 'COUNT', count: string | number ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], left: 'LEFT', callback: Callback<[key: Buffer, members: Buffer[]]> ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( numkeys: string | number, keys: any[], left: 'LEFT', callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; (...args: [numkeys: string | number, ...keys: any[], left: 'LEFT']): Result< [key: Buffer, members: Buffer[]], Context >; (numkeys: string | number, keys: any[], left: 'LEFT'): Result< [key: Buffer, members: Buffer[]], Context >; ( ...args: [ numkeys: string | number, ...keys: any[], right: 'RIGHT', callback: Callback<[key: Buffer, members: Buffer[]]> ] ): Result<[key: Buffer, members: Buffer[]], Context>; ( numkeys: string | number, keys: any[], right: 'RIGHT', callback: Callback<[key: Buffer, members: Buffer[]]> ): Result<[key: Buffer, members: Buffer[]], Context>; ( ...args: [numkeys: string | number, ...keys: any[], right: 'RIGHT'] ): Result<[key: Buffer, members: Buffer[]], Context>; (numkeys: string | number, keys: any[], right: 'RIGHT'): Result< [key: Buffer, members: Buffer[]], Context >;};method lolwut
lolwut: { ( versionToken: 'VERSION', version: number | string, callback?: Callback<string> ): Result<string, Context>; (callback?: Callback<string>): Result<string, Context>;};Displays computer art and the Redis version - _group_: server - _complexity_: undefined - _since_: 5.0.0
method lpop
lpop: { (key: RedisKey, callback?: Callback<string | null>): Result< string | null, Context >; (key: any, count: string | number, callback?: Callback<string[]>): Result< string[], Context >;};Returns the first elements in a list after removing it. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(N) where N is the number of elements returned - _since_: 1.0.0
method lpopBuffer
lpopBuffer: { (key: RedisKey, callback?: Callback<Buffer | null>): Result< Buffer | null, Context >; (key: any, count: string | number, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method lpos
lpos: { ( key: RedisKey, element: string | Buffer | number, rankToken: 'RANK', rank: number | string, numMatchesToken: 'COUNT', numMatches: number | string, lenToken: 'MAXLEN', len: number | string, callback?: Callback<number[]> ): Result<number[], Context>; ( key: any, element: any, numMatchesToken: 'COUNT', numMatches: string | number, lenToken: 'MAXLEN', len: string | number, callback?: Callback<number[]> ): Result<number[], Context>; ( key: any, element: any, rankToken: 'RANK', rank: string | number, lenToken: 'MAXLEN', len: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, element: any, rankToken: 'RANK', rank: string | number, numMatchesToken: 'COUNT', numMatches: string | number, callback?: Callback<number[]> ): Result<number[], Context>; ( key: any, element: any, lenToken: 'MAXLEN', len: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, element: any, numMatchesToken: 'COUNT', numMatches: string | number, callback?: Callback<number[]> ): Result<number[], Context>; ( key: any, element: any, rankToken: 'RANK', rank: string | number, callback?: Callback<number> ): Result<number, Context>; (key: any, element: any, callback?: Callback<number>): Result< number, Context >;};Returns the index of matching elements in a list. - _group_: list - _complexity_: O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time. - _since_: 6.0.6
method lpush
lpush: { ( ...args: [ key: RedisKey, ...elements: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...elements: any[]): Result<number, Context>;};Prepends one or more elements to a list. Creates the key if it doesn't exist. - _group_: list - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments. - _since_: 1.0.0
method lpushx
lpushx: { ( ...args: [ key: RedisKey, ...elements: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...elements: any[]): Result<number, Context>;};Prepends one or more elements to a list only when the list exists. - _group_: list - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments. - _since_: 2.2.0
method lrange
lrange: ( key: RedisKey, start: number | string, stop: number | string, callback?: Callback<string[]>) => Result<string[], Context>;Returns a range of elements from a list. - _group_: list - _complexity_: O(S+N) where S is the distance of start offset from HEAD for small lists, from nearest end (HEAD or TAIL) for large lists; and N is the number of elements in the specified range. - _since_: 1.0.0
method lrangeBuffer
lrangeBuffer: ( key: RedisKey, start: number | string, stop: number | string, callback?: Callback<Buffer[]>) => Result<Buffer[], Context>;method lrem
lrem: ( key: RedisKey, count: number | string, element: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Removes elements from a list. Deletes the list if the last element was removed. - _group_: list - _complexity_: O(N+M) where N is the length of the list and M is the number of elements removed. - _since_: 1.0.0
method lset
lset: ( key: RedisKey, index: number | string, element: string | Buffer | number, callback?: Callback<'OK'>) => Result<'OK', Context>;Sets the value of an element in a list by its index. - _group_: list - _complexity_: O(N) where N is the length of the list. Setting either the first or the last element of the list is O(1). - _since_: 1.0.0
method ltrim
ltrim: ( key: RedisKey, start: number | string, stop: number | string, callback?: Callback<'OK'>) => Result<'OK', Context>;Removes elements from both ends a list. Deletes the list if all elements were trimmed. - _group_: list - _complexity_: O(N) where N is the number of elements to be removed by the operation. - _since_: 1.0.0
method memory
memory: { (subcommand: 'DOCTOR', callback?: Callback<string>): Result<string, Context>; (subcommand: 'HELP', callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'MALLOC-STATS', callback?: Callback<string>): Result< string, Context >; (subcommand: 'PURGE', callback?: Callback<'OK'>): Result<'OK', Context>; ( subcommand: 'STATS', callback?: Callback< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context> > ): Result< RespShape<Resp2<unknown[]>, Resp3<Resp3Map<unknown>>, Context>, Context >; ( subcommand: 'USAGE', key: any, countToken: 'SAMPLES', count: string | number, callback?: Callback<number> ): Result<number, Context>; (subcommand: 'USAGE', key: any, callback?: Callback<number>): Result< number, Context >;};Outputs a memory problems report. - _group_: server - _complexity_: O(1) - _since_: 4.0.0
Returns helpful text about the different subcommands. - _group_: server - _complexity_: O(1) - _since_: 4.0.0
Returns the allocator statistics. - _group_: server - _complexity_: Depends on how much memory is allocated, could be slow - _since_: 4.0.0
Asks the allocator to release memory. - _group_: server - _complexity_: Depends on how much memory is allocated, could be slow - _since_: 4.0.0
Returns details about memory usage. - _group_: server - _complexity_: O(1) - _since_: 4.0.0
Estimates the memory usage of a key. - _group_: server - _complexity_: O(N) where N is the number of samples. - _since_: 4.0.0
method mget
mget: { ( ...args: [...keys: RedisKey[], callback: Callback<(string | null)[]>] ): Result<(string | null)[], Context>; (keys: any[], callback: Callback<string[]>): Result<string[], Context>; (...args: any[]): Result<string[], Context>; (keys: any[]): Result<string[], Context>;};Atomically returns the string values of one or more keys. - _group_: string - _complexity_: O(N) where N is the number of keys to retrieve. - _since_: 1.0.0
method mgetBuffer
mgetBuffer: { ( ...args: [...keys: RedisKey[], callback: Callback<(Buffer | null)[]>] ): Result<(Buffer | null)[], Context>; (keys: any[], callback: Callback<any[]>): Result<any[], Context>; (...args: any[]): Result<any[], Context>; (keys: any[]): Result<any[], Context>;};method migrate
migrate: { ( ...args: [ host: string | Buffer, port: number | string, key: RedisKey, destinationDb: number | string, timeout: number | string, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: string | Buffer, keysToken: 'KEYS', ...keys: RedisKey[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', replace: 'REPLACE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, copy: 'COPY', callback?: Callback<'OK'> ): Result<'OK', Context>; ( ...args: [ host: any, port: string | number, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', ...keys: any[], callback: Callback<'OK'> ] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', keys: any[], callback: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', ...keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, keysToken: 'KEYS', keys: any[] ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, authToken: 'AUTH', auth: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, auth2Token: 'AUTH2', username: any, password: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, replace: 'REPLACE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, copy: 'COPY', callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, key: any, destinationDb: string | number, timeout: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( host: any, port: string | number, destinationDb: string | number, timeout: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>;};Atomically transfers a key from one Redis instance to another. - _group_: generic - _complexity_: This command actually executes a DUMP+DEL in the source instance, and a RESTORE in the target instance. See the pages of these commands for time complexity. Also an O(N) data transfer between the two instances is performed. - _since_: 2.6.0
method module
module: { (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'LIST', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'LOAD', path: any, callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [ subcommand: 'LOAD', path: any, ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (subcommand: 'LOAD', path: any, ...args: any[]): Result<unknown, Context>; ( ...args: [ subcommand: 'LOADEX', path: any, argsToken: 'ARGS', ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (subcommand: 'LOADEX', path: any, argsToken: 'ARGS', ...args: any[]): Result< unknown, Context >; ( ...args: [ subcommand: 'LOADEX', path: any, configsToken: 'CONFIG', ...configs: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'LOADEX', path: any, configsToken: 'CONFIG', ...configs: any[] ): Result<unknown, Context>; ( ...args: [ subcommand: 'LOADEX', path: any, configsToken: 'CONFIG', ...args: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( subcommand: 'LOADEX', path: any, configsToken: 'CONFIG', ...args: any[] ): Result<unknown, Context>; (subcommand: 'LOADEX', path: any, callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'UNLOAD', name: any, callback?: Callback<unknown>): Result< unknown, Context >;};Returns helpful text about the different subcommands. - _group_: server - _complexity_: O(1) - _since_: 5.0.0
Returns all loaded modules. - _group_: server - _complexity_: O(N) where N is the number of loaded modules. - _since_: 4.0.0
Loads a module. - _group_: server - _complexity_: O(1) - _since_: 4.0.0
Loads a module using extended parameters. - _group_: server - _complexity_: O(1) - _since_: 7.0.0
Unloads a module. - _group_: server - _complexity_: O(1) - _since_: 4.0.0
method move
move: ( key: RedisKey, db: number | string, callback?: Callback<number>) => Result<number, Context>;Moves a key to another database. - _group_: generic - _complexity_: O(1) - _since_: 1.0.0
method mset
mset: { (object: object, callback?: Callback<'OK'>): Result<'OK', Context>; (map: Map<any, any>, callback?: Callback<'OK'>): Result<'OK', Context>; (...args: [...data: any[], callback: Callback<'OK'>]): Result<'OK', Context>; (...args: any[]): Result<'OK', Context>;};Atomically creates or modifies the string values of one or more keys. - _group_: string - _complexity_: O(N) where N is the number of keys to set. - _since_: 1.0.1
method msetex
msetex: { ( ...args: [ numkeys: number | string, ...data: (RedisKey | string | Buffer | number)[], nx: 'NX', secondsToken: 'EX', seconds: number | string, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', secondsToken: 'EX', seconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', millisecondsToken: 'PX', milliseconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', millisecondsToken: 'PX', milliseconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', keepttl: 'KEEPTTL', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', keepttl: 'KEEPTTL' ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', secondsToken: 'EX', seconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', secondsToken: 'EX', seconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', millisecondsToken: 'PX', milliseconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', millisecondsToken: 'PX', milliseconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', keepttl: 'KEEPTTL', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', keepttl: 'KEEPTTL' ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], secondsToken: 'EX', seconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], secondsToken: 'EX', seconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], millisecondsToken: 'PX', milliseconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], millisecondsToken: 'PX', milliseconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number ] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], keepttl: 'KEEPTTL', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [numkeys: string | number, ...data: any[], keepttl: 'KEEPTTL'] ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...data: any[], nx: 'NX', callback: Callback<number> ] ): Result<number, Context>; (...args: [numkeys: string | number, ...data: any[], nx: 'NX']): Result< number, Context >; ( ...args: [ numkeys: string | number, ...data: any[], xx: 'XX', callback: Callback<number> ] ): Result<number, Context>; (...args: [numkeys: string | number, ...data: any[], xx: 'XX']): Result< number, Context >; ( ...args: [ numkeys: string | number, ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (numkeys: string | number, ...data: any[]): Result<number, Context>;};Atomically sets multiple string keys with a shared expiration in a single operation. Supports flexible argument parsing where condition and expiration flags can appear in any order. - _group_: string - _complexity_: O(N) where N is the number of keys to set. - _since_: 8.4.0
method msetnx
msetnx: { (object: object, callback?: Callback<'OK'>): Result<'OK', Context>; (map: Map<any, any>, callback?: Callback<'OK'>): Result<'OK', Context>; (...args: [...data: any[], callback: Callback<number>]): Result< number, Context >; (...args: any[]): Result<number, Context>;};Atomically modifies the string values of one or more keys only when all keys don't exist. - _group_: string - _complexity_: O(N) where N is the number of keys to set. - _since_: 1.0.1
method object
object: { ( subcommand: 'ENCODING', key: RedisKey, callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'FREQ', key: any, callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'IDLETIME', key: any, callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'REFCOUNT', key: any, callback?: Callback<unknown>): Result< unknown, Context >;};Returns the internal encoding of a Redis object. - _group_: generic - _complexity_: O(1) - _since_: 2.2.3
Returns the logarithmic access frequency counter of a Redis object. - _group_: generic - _complexity_: O(1) - _since_: 4.0.0
Returns helpful text about the different subcommands. - _group_: generic - _complexity_: O(1) - _since_: 6.2.0
Returns the time since the last access to a Redis object. - _group_: generic - _complexity_: O(1) - _since_: 2.2.3
Returns the reference count of a value of a key. - _group_: generic - _complexity_: O(1) - _since_: 2.2.3
method persist
persist: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Removes the expiration time of a key. - _group_: generic - _complexity_: O(1) - _since_: 2.2.0
method pexpire
pexpire: { ( key: RedisKey, milliseconds: number | string, nx: 'NX', callback?: Callback<number> ): Result<number, Context>; ( key: any, milliseconds: string | number, xx: 'XX', callback?: Callback<number> ): Result<number, Context>; ( key: any, milliseconds: string | number, gt: 'GT', callback?: Callback<number> ): Result<number, Context>; ( key: any, milliseconds: string | number, lt: 'LT', callback?: Callback<number> ): Result<number, Context>; ( key: any, milliseconds: string | number, callback?: Callback<number> ): Result<number, Context>;};Sets the expiration time of a key in milliseconds. - _group_: generic - _complexity_: O(1) - _since_: 2.6.0
method pexpireat
pexpireat: { ( key: RedisKey, unixTimeMilliseconds: number | string, nx: 'NX', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeMilliseconds: string | number, xx: 'XX', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeMilliseconds: string | number, gt: 'GT', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeMilliseconds: string | number, lt: 'LT', callback?: Callback<number> ): Result<number, Context>; ( key: any, unixTimeMilliseconds: string | number, callback?: Callback<number> ): Result<number, Context>;};Sets the expiration time of a key to a Unix milliseconds timestamp. - _group_: generic - _complexity_: O(1) - _since_: 2.6.0
method pexpiretime
pexpiretime: ( key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the expiration time of a key as a Unix milliseconds timestamp. - _group_: generic - _complexity_: O(1) - _since_: 7.0.0
method pfadd
pfadd: { (key: RedisKey, callback?: Callback<number>): Result<number, Context>; ( ...args: [key: any, ...elements: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, ...elements: any[]): Result<number, Context>;};Adds elements to a HyperLogLog key. Creates the key if it doesn't exist. - _group_: hyperloglog - _complexity_: O(1) to add every element. - _since_: 2.8.9
method pfcount
pfcount: { (...args: [...keys: RedisKey[], callback: Callback<number>]): Result< number, Context >; (keys: any[], callback: Callback<number>): Result<number, Context>; (...args: any[]): Result<number, Context>; (keys: any[]): Result<number, Context>;};Returns the approximated cardinality of the set(s) observed by the HyperLogLog key(s). - _group_: hyperloglog - _complexity_: O(1) with a very small average constant time when called with a single key. O(N) with N being the number of keys, and much bigger constant times, when called with multiple keys. - _since_: 2.8.9
method pfdebug
pfdebug: ( subcommand: string | Buffer, key: RedisKey, callback?: Callback<unknown>) => Result<unknown, Context>;Internal commands for debugging HyperLogLog values. - _group_: hyperloglog - _complexity_: N/A - _since_: 2.8.9
method pfmerge
pfmerge: { (destkey: RedisKey, callback?: Callback<'OK'>): Result<'OK', Context>; ( ...args: [destkey: any, ...sourcekeys: any[], callback: Callback<'OK'>] ): Result<'OK', Context>; (destkey: any, sourcekeys: any[], callback: Callback<'OK'>): Result< 'OK', Context >; (destkey: any, ...sourcekeys: any[]): Result<'OK', Context>; (destkey: any, sourcekeys: any[]): Result<'OK', Context>;};Merges one or more HyperLogLog values into a single key. - _group_: hyperloglog - _complexity_: O(N) to merge N HyperLogLogs, but with high constant times. - _since_: 2.8.9
method pfselftest
pfselftest: (callback?: Callback<unknown>) => Result<unknown, Context>;An internal command for testing HyperLogLog values. - _group_: hyperloglog - _complexity_: N/A - _since_: 2.8.9
method ping
ping: { (callback?: Callback<'PONG'>): Result<'PONG', Context>; (message: any, callback?: Callback<string>): Result<string, Context>;};Returns the server's liveliness response. - _group_: connection - _complexity_: O(1) - _since_: 1.0.0
method pingBuffer
pingBuffer: ( message: string | Buffer, callback?: Callback<Buffer>) => Result<Buffer, Context>;method psetex
psetex: ( key: RedisKey, milliseconds: number | string, value: string | Buffer | number, callback?: Callback<unknown>) => Result<unknown, Context>;Sets both string value and expiration time in milliseconds of a key. The key is created if it doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 2.6.0
method psubscribe
psubscribe: { (...args: [...patterns: string[], callback: Callback<unknown>]): Result< unknown, Context >; (...args: string[]): Result<unknown, Context>;};Listens for messages published to channels that match one or more patterns. - _group_: pubsub - _complexity_: O(N) where N is the number of patterns to subscribe to. - _since_: 2.0.0
method psync
psync: ( replicationid: string | Buffer | number, offset: number | string, callback?: Callback<unknown>) => Result<unknown, Context>;An internal command used in replication. - _group_: server - _complexity_: undefined - _since_: 2.8.0
method pttl
pttl: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the expiration time in milliseconds of a key. - _group_: generic - _complexity_: O(1) - _since_: 2.6.0
method publish
publish: ( channel: string | Buffer, message: string | Buffer, callback?: Callback<number>) => Result<number, Context>;Posts a message to a channel. - _group_: pubsub - _complexity_: O(N+M) where N is the number of clients subscribed to the receiving channel and M is the total number of subscribed patterns (by any client). - _since_: 2.0.0
method pubsub
pubsub: { (subcommand: 'CHANNELS', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( subcommand: 'CHANNELS', pattern: string, callback?: Callback<unknown[]> ): Result<unknown[], Context>; (subcommand: 'HELP', callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'NUMPAT', callback?: Callback<unknown[]>): Result< unknown[], Context >; (subcommand: 'NUMSUB', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( ...args: [ subcommand: 'NUMSUB', ...channels: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; (subcommand: 'NUMSUB', ...channels: any[]): Result<unknown[], Context>; (subcommand: 'SHARDCHANNELS', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( subcommand: 'SHARDCHANNELS', pattern: string, callback?: Callback<unknown[]> ): Result<unknown[], Context>; (subcommand: 'SHARDNUMSUB', callback?: Callback<unknown[]>): Result< unknown[], Context >; ( ...args: [ subcommand: 'SHARDNUMSUB', ...shardchannels: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; (subcommand: 'SHARDNUMSUB', ...shardchannels: any[]): Result< unknown[], Context >;};Returns the active channels. - _group_: pubsub - _complexity_: O(N) where N is the number of active channels, and assuming constant time pattern matching (relatively short channels and patterns) - _since_: 2.8.0
Returns helpful text about the different subcommands. - _group_: pubsub - _complexity_: O(1) - _since_: 6.2.0
Returns a count of unique pattern subscriptions. - _group_: pubsub - _complexity_: O(1) - _since_: 2.8.0
Returns a count of subscribers to channels. - _group_: pubsub - _complexity_: O(N) for the NUMSUB subcommand, where N is the number of requested channels - _since_: 2.8.0
Returns the active shard channels. - _group_: pubsub - _complexity_: O(N) where N is the number of active shard channels, and assuming constant time pattern matching (relatively short shard channels). - _since_: 7.0.0
Returns the count of subscribers of shard channels. - _group_: pubsub - _complexity_: O(N) for the SHARDNUMSUB subcommand, where N is the number of requested shard channels - _since_: 7.0.0
method punsubscribe
punsubscribe: { (callback?: Callback<unknown>): Result<unknown, Context>; (...args: [...patterns: string[], callback: Callback<unknown>]): Result< unknown, Context >; (...args: string[]): Result<unknown, Context>;};Stops listening to messages published to channels that match one or more patterns. - _group_: pubsub - _complexity_: O(N) where N is the number of patterns to unsubscribe. - _since_: 2.0.0
method quit
quit: (callback?: Callback<'OK'>) => Result<'OK', Context>;Closes the connection. - _group_: connection - _complexity_: O(1) - _since_: 1.0.0
method randomkey
randomkey: ( callback?: Callback<string | null>) => Result<string | null, Context>;Returns a random key name from the database. - _group_: generic - _complexity_: O(1) - _since_: 1.0.0
method randomkeyBuffer
randomkeyBuffer: ( callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method readonly
readonly: (callback?: Callback<'OK'>) => Result<'OK', Context>;Enables read-only queries for a connection to a Redis Cluster replica node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
method readwrite
readwrite: (callback?: Callback<'OK'>) => Result<'OK', Context>;Enables read-write queries for a connection to a Reids Cluster replica node. - _group_: cluster - _complexity_: O(1) - _since_: 3.0.0
method rename
rename: ( key: RedisKey, newkey: RedisKey, callback?: Callback<'OK'>) => Result<'OK', Context>;Renames a key and overwrites the destination. - _group_: generic - _complexity_: O(1) - _since_: 1.0.0
method renamenx
renamenx: ( key: RedisKey, newkey: RedisKey, callback?: Callback<number>) => Result<number, Context>;Renames a key only when the target key name doesn't exist. - _group_: generic - _complexity_: O(1) - _since_: 1.0.0
method replconf
replconf: (callback?: Callback<unknown>) => Result<unknown, Context>;An internal command for configuring the replication stream. - _group_: server - _complexity_: O(1) - _since_: 3.0.0
method replicaof
replicaof: { (no: 'NO', one: 'ONE', callback?: Callback<'OK'>): Result<'OK', Context>; (host: any, port: string | number, callback?: Callback<'OK'>): Result< 'OK', Context >;};Configures a server as replica of another, or promotes it to a master. - _group_: server - _complexity_: O(1) - _since_: 5.0.0
method reset
reset: (callback?: Callback<'OK'>) => Result<'OK', Context>;Resets the connection. - _group_: connection - _complexity_: O(1) - _since_: 6.2.0
method restore
restore: { ( key: RedisKey, ttl: number | string, serializedValue: string | Buffer | number, replace: 'REPLACE', absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: number | string, frequencyToken: 'FREQ', frequency: number | string, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: string | number, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', secondsToken: 'IDLETIME', seconds: string | number, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', absttl: 'ABSTTL', frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, secondsToken: 'IDLETIME', seconds: string | number, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', absttl: 'ABSTTL', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, frequencyToken: 'FREQ', frequency: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, secondsToken: 'IDLETIME', seconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, absttl: 'ABSTTL', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, replace: 'REPLACE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, ttl: string | number, serializedValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>;};Creates a key from the serialized representation of a value. - _group_: generic - _complexity_: O(1) to create the new key and additional O(N*M) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1*M) where M is small, so simply O(1). However for sorted set values the complexity is O(N*M*log(N)) because inserting values into sorted sets is O(log(N)). - _since_: 2.6.0
method role
role: (callback?: Callback<unknown[]>) => Result<unknown[], Context>;Returns the replication role. - _group_: server - _complexity_: O(1) - _since_: 2.8.12
method rpop
rpop: { (key: RedisKey, callback?: Callback<string | null>): Result< string | null, Context >; (key: any, count: string | number, callback?: Callback<string[]>): Result< string[], Context >;};Returns and removes the last elements of a list. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(N) where N is the number of elements returned - _since_: 1.0.0
method rpopBuffer
rpopBuffer: { (key: RedisKey, callback?: Callback<Buffer | null>): Result< Buffer | null, Context >; (key: any, count: string | number, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method rpoplpush
rpoplpush: ( source: RedisKey, destination: RedisKey, callback?: Callback<string>) => Result<string, Context>;Returns the last element of a list after removing and pushing it to another list. Deletes the list if the last element was popped. - _group_: list - _complexity_: O(1) - _since_: 1.2.0
method rpoplpushBuffer
rpoplpushBuffer: ( source: RedisKey, destination: RedisKey, callback?: Callback<Buffer>) => Result<Buffer, Context>;method rpush
rpush: { ( ...args: [ key: RedisKey, ...elements: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...elements: any[]): Result<number, Context>;};Appends one or more elements to a list. Creates the key if it doesn't exist. - _group_: list - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments. - _since_: 1.0.0
method rpushx
rpushx: { ( ...args: [ key: RedisKey, ...elements: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...elements: any[]): Result<number, Context>;};Appends an element to a list only when the list exists. - _group_: list - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments. - _since_: 2.2.0
method sadd
sadd: { ( ...args: [ key: RedisKey, ...members: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, members: any[], callback: Callback<number>): Result< number, Context >; (key: any, ...members: any[]): Result<number, Context>; (key: any, members: any[]): Result<number, Context>;};Adds one or more members to a set. Creates the key if it doesn't exist. - _group_: set - _complexity_: O(1) for each element added, so O(N) to add N elements when the command is called with multiple arguments. - _since_: 1.0.0
method save
save: (callback?: Callback<'OK'>) => Result<'OK', Context>;Synchronously saves the database(s) to disk. - _group_: server - _complexity_: O(N) where N is the total number of keys in all databases - _since_: 1.0.0
method scan
scan: { ( cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, typeToken: 'TYPE', type: string | Buffer, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( cursor: string | number, countToken: 'COUNT', count: string | number, typeToken: 'TYPE', type: any, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( cursor: string | number, patternToken: 'MATCH', pattern: string, typeToken: 'TYPE', type: any, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( cursor: string | number, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( cursor: string | number, typeToken: 'TYPE', type: any, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( cursor: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>;};Iterates over the key names in the database. - _group_: generic - _complexity_: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection. - _since_: 2.8.0
method scanBuffer
scanBuffer: { ( cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, typeToken: 'TYPE', type: string | Buffer, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( cursor: string | number, countToken: 'COUNT', count: string | number, typeToken: 'TYPE', type: any, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( cursor: string | number, patternToken: 'MATCH', pattern: string, typeToken: 'TYPE', type: any, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( cursor: string | number, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( cursor: string | number, typeToken: 'TYPE', type: any, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( cursor: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>;};method scard
scard: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the number of members in a set. - _group_: set - _complexity_: O(1) - _since_: 1.0.0
method script
script: { (subcommand: 'DEBUG', yes: 'YES', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'DEBUG', sync: 'SYNC', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'DEBUG', no: 'NO', callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [ subcommand: 'EXISTS', ...sha1s: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (subcommand: 'EXISTS', ...sha1s: any[]): Result<unknown, Context>; (subcommand: 'FLUSH', async: 'ASYNC', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'FLUSH', sync: 'SYNC', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'FLUSH', callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'KILL', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'LOAD', script: any, callback?: Callback<unknown>): Result< unknown, Context >;};Sets the debug mode of server-side Lua scripts. - _group_: scripting - _complexity_: O(1) - _since_: 3.2.0
Determines whether server-side Lua scripts exist in the script cache. - _group_: scripting - _complexity_: O(N) with N being the number of scripts to check (so checking a single script is an O(1) operation). - _since_: 2.6.0
Removes all server-side Lua scripts from the script cache. - _group_: scripting - _complexity_: O(N) with N being the number of scripts in cache - _since_: 2.6.0
Returns helpful text about the different subcommands. - _group_: scripting - _complexity_: O(1) - _since_: 5.0.0
Terminates a server-side Lua script during execution. - _group_: scripting - _complexity_: O(1) - _since_: 2.6.0
Loads a server-side Lua script to the script cache. - _group_: scripting - _complexity_: O(N) with N being the length in bytes of the script body. - _since_: 2.6.0
method sdiff
sdiff: { (...args: [...keys: RedisKey[], callback: Callback<string[]>]): Result< string[], Context >; (keys: any[], callback: Callback<string[]>): Result<string[], Context>; (...args: any[]): Result<string[], Context>; (keys: any[]): Result<string[], Context>;};Returns the difference of multiple sets. - _group_: set - _complexity_: O(N) where N is the total number of elements in all given sets. - _since_: 1.0.0
method sdiffBuffer
sdiffBuffer: { (...args: [...keys: RedisKey[], callback: Callback<Buffer[]>]): Result< Buffer[], Context >; (keys: any[], callback: Callback<Buffer[]>): Result<Buffer[], Context>; (...args: any[]): Result<Buffer[], Context>; (keys: any[]): Result<Buffer[], Context>;};method sdiffcard
sdiffcard: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], limitToken: 'LIMIT', limit: number | string, callback: Callback<number> ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number, callback: Callback<number> ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], limitToken: 'LIMIT', limit: string | number ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (numkeys: string | number, keys: any[], callback: Callback<number>): Result< number, Context >; (numkeys: string | number, ...keys: any[]): Result<number, Context>; (numkeys: string | number, keys: any[]): Result<number, Context>;};Returns the number of members of the difference between the first set and all successive sets. - _group_: set - _complexity_: O(N) where N is the total number of elements in all given sets. - _since_: 8.10.0
method sdiffstore
sdiffstore: { ( ...args: [ destination: RedisKey, ...keys: RedisKey[], callback: Callback<number> ] ): Result<number, Context>; (destination: any, keys: any[], callback: Callback<number>): Result< number, Context >; (destination: any, ...keys: any[]): Result<number, Context>; (destination: any, keys: any[]): Result<number, Context>;};Stores the difference of multiple sets in a key. - _group_: set - _complexity_: O(N) where N is the total number of elements in all given sets. - _since_: 1.0.0
method select
select: ( index: number | string, callback?: Callback<'OK'>) => Result<'OK', Context>;Changes the selected database. - _group_: connection - _complexity_: O(1) - _since_: 1.0.0
method set
set: { ( key: RedisKey, value: string | Buffer | number, secondsToken: 'EX', seconds: number | string, nx: 'NX', get: 'GET', callback?: Callback<string | null> ): Result<string | null, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, nx: 'NX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, nx: 'NX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, nx: 'NX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', nx: 'NX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', xx: 'XX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, nx: 'NX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, xx: 'XX', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, nx: 'NX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, xx: 'XX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, nx: 'NX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, xx: 'XX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, nx: 'NX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, xx: 'XX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, nx: 'NX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, xx: 'XX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, keepttl: 'KEEPTTL', get: 'GET', callback?: Callback<string> ): Result<string, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', nx: 'NX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, keepttl: 'KEEPTTL', xx: 'XX', callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifeqValueToken: 'IFEQ', ifeqValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifneValueToken: 'IFNE', ifneValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; (key: any, value: any, get: 'GET', callback?: Callback<string>): Result< string, Context >; (key: any, value: any, nx: 'NX', callback?: Callback<'OK'>): Result< 'OK', Context >; (key: any, value: any, xx: 'XX', callback?: Callback<'OK'>): Result< 'OK', Context >; ( key: any, value: any, ifeqValueToken: 'IFEQ', ifeqValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, ifneValueToken: 'IFNE', ifneValue: any, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, callback?: Callback<'OK'> ): Result<'OK', Context>; ( key: any, value: any, keepttl: 'KEEPTTL', callback?: Callback<'OK'> ): Result<'OK', Context>; (key: any, value: any, callback?: Callback<'OK'>): Result<'OK', Context>;};Sets the string value of a key, ignoring its type. The key is created if it doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method setbit
setbit: ( key: RedisKey, offset: number | string, value: number | string, callback?: Callback<number>) => Result<number, Context>;Sets or clears the bit at offset of the string value. Creates the key if it doesn't exist. - _group_: bitmap - _complexity_: O(1) - _since_: 2.2.0
method setBuffer
setBuffer: { ( key: RedisKey, value: string | Buffer | number, secondsToken: 'EX', seconds: number | string, nx: 'NX', get: 'GET', callback?: Callback<Buffer | null> ): Result<Buffer | null, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, nx: 'NX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, nx: 'NX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, nx: 'NX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, xx: 'XX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', nx: 'NX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', xx: 'XX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, nx: 'NX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, xx: 'XX', get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, ifeqValueToken: 'IFEQ', ifeqValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, ifneValueToken: 'IFNE', ifneValue: any, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, ifdeqDigestToken: 'IFDEQ', ifdeqDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, ifdneDigestToken: 'IFDNE', ifdneDigest: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, secondsToken: 'EX', seconds: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, millisecondsToken: 'PX', milliseconds: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeSecondsToken: 'EXAT', unixTimeSeconds: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, unixTimeMillisecondsToken: 'PXAT', unixTimeMilliseconds: string | number, get: 'GET', callback?: Callback<any> ): Result<any, Context>; ( key: any, value: any, keepttl: 'KEEPTTL', get: 'GET', callback?: Callback<any> ): Result<any, Context>; (key: any, value: any, get: 'GET', callback?: Callback<any>): Result< any, Context >;};method setex
setex: ( key: RedisKey, seconds: number | string, value: string | Buffer | number, callback?: Callback<'OK'>) => Result<'OK', Context>;Sets the string value and expiration time of a key. Creates the key if it doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 2.0.0
method setnx
setnx: ( key: RedisKey, value: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Set the string value of a key only when the key doesn't exist. - _group_: string - _complexity_: O(1) - _since_: 1.0.0
method setrange
setrange: ( key: RedisKey, offset: number | string, value: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Overwrites a part of a string value with another by an offset. Creates the key if it doesn't exist. - _group_: string - _complexity_: O(1), not counting the time taken to copy the new string in place. Usually, this string is very small so the amortized complexity is O(1). Otherwise, complexity is O(M) with M being the length of the value argument. - _since_: 2.2.0
method shutdown
shutdown: { ( nosave: 'NOSAVE', now: 'NOW', force: 'FORCE', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( save: 'SAVE', now: 'NOW', force: 'FORCE', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( now: 'NOW', force: 'FORCE', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( nosave: 'NOSAVE', force: 'FORCE', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( nosave: 'NOSAVE', now: 'NOW', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( nosave: 'NOSAVE', now: 'NOW', force: 'FORCE', callback?: Callback<'OK'> ): Result<'OK', Context>; ( save: 'SAVE', force: 'FORCE', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( save: 'SAVE', now: 'NOW', abort: 'ABORT', callback?: Callback<'OK'> ): Result<'OK', Context>; ( save: 'SAVE', now: 'NOW', force: 'FORCE', callback?: Callback<'OK'> ): Result<'OK', Context>; (force: 'FORCE', abort: 'ABORT', callback?: Callback<'OK'>): Result< 'OK', Context >; (now: 'NOW', abort: 'ABORT', callback?: Callback<'OK'>): Result< 'OK', Context >; (now: 'NOW', force: 'FORCE', callback?: Callback<'OK'>): Result< 'OK', Context >; (nosave: 'NOSAVE', abort: 'ABORT', callback?: Callback<'OK'>): Result< 'OK', Context >; (nosave: 'NOSAVE', force: 'FORCE', callback?: Callback<'OK'>): Result< 'OK', Context >; (nosave: 'NOSAVE', now: 'NOW', callback?: Callback<'OK'>): Result< 'OK', Context >; (save: 'SAVE', abort: 'ABORT', callback?: Callback<'OK'>): Result< 'OK', Context >; (save: 'SAVE', force: 'FORCE', callback?: Callback<'OK'>): Result< 'OK', Context >; (save: 'SAVE', now: 'NOW', callback?: Callback<'OK'>): Result<'OK', Context>; (abort: 'ABORT', callback?: Callback<'OK'>): Result<'OK', Context>; (force: 'FORCE', callback?: Callback<'OK'>): Result<'OK', Context>; (now: 'NOW', callback?: Callback<'OK'>): Result<'OK', Context>; (nosave: 'NOSAVE', callback?: Callback<'OK'>): Result<'OK', Context>; (save: 'SAVE', callback?: Callback<'OK'>): Result<'OK', Context>; (callback?: Callback<'OK'>): Result<'OK', Context>;};Synchronously saves the database(s) to disk and shuts down the Redis server. - _group_: server - _complexity_: O(N) when saving, where N is the total number of keys in all databases when saving data, otherwise O(1) - _since_: 1.0.0
method sinter
sinter: { (...args: [...keys: RedisKey[], callback: Callback<string[]>]): Result< string[], Context >; (keys: any[], callback: Callback<string[]>): Result<string[], Context>; (...args: any[]): Result<string[], Context>; (keys: any[]): Result<string[], Context>;};Returns the intersect of multiple sets. - _group_: set - _complexity_: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets. - _since_: 1.0.0
method sinterBuffer
sinterBuffer: { (...args: [...keys: RedisKey[], callback: Callback<Buffer[]>]): Result< Buffer[], Context >; (keys: any[], callback: Callback<Buffer[]>): Result<Buffer[], Context>; (...args: any[]): Result<Buffer[], Context>; (keys: any[]): Result<Buffer[], Context>;};method sintercard
sintercard: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], limitToken: 'LIMIT', limit: number | string, callback: Callback<number> ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number, callback: Callback<number> ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], limitToken: 'LIMIT', limit: string | number ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (numkeys: string | number, keys: any[], callback: Callback<number>): Result< number, Context >; (numkeys: string | number, ...keys: any[]): Result<number, Context>; (numkeys: string | number, keys: any[]): Result<number, Context>;};Returns the number of members of the intersect of multiple sets. - _group_: set - _complexity_: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets. - _since_: 7.0.0
method sinterstore
sinterstore: { ( ...args: [ destination: RedisKey, ...keys: RedisKey[], callback: Callback<number> ] ): Result<number, Context>; (destination: any, keys: any[], callback: Callback<number>): Result< number, Context >; (destination: any, ...keys: any[]): Result<number, Context>; (destination: any, keys: any[]): Result<number, Context>;};Stores the intersect of multiple sets in a key. - _group_: set - _complexity_: O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets. - _since_: 1.0.0
method sismember
sismember: ( key: RedisKey, member: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Determines whether a member belongs to a set. - _group_: set - _complexity_: O(1) - _since_: 1.0.0
method slaveof
slaveof: { (no: 'NO', one: 'ONE', callback?: Callback<'OK'>): Result<'OK', Context>; (host: any, port: string | number, callback?: Callback<'OK'>): Result< 'OK', Context >;};Sets a Redis server as a replica of another, or promotes it to being a master. - _group_: server - _complexity_: O(1) - _since_: 1.0.0
method slowlog
slowlog: { (subcommand: 'GET', callback?: Callback<unknown>): Result<unknown, Context>; ( subcommand: 'GET', count: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'LEN', callback?: Callback<unknown>): Result<unknown, Context>; (subcommand: 'RESET', callback?: Callback<unknown>): Result< unknown, Context >;};Returns the slow log's entries. - _group_: server - _complexity_: O(N) where N is the number of entries returned - _since_: 2.2.12
Show helpful text about the different subcommands - _group_: server - _complexity_: O(1) - _since_: 6.2.0
Returns the number of entries in the slow log. - _group_: server - _complexity_: O(1) - _since_: 2.2.12
Clears all entries from the slow log. - _group_: server - _complexity_: O(N) where N is the number of entries in the slowlog - _since_: 2.2.12
method smembers
smembers: ( key: RedisKey, callback?: Callback<string[]>) => Result<string[], Context>;Returns all members of a set. - _group_: set - _complexity_: O(N) where N is the set cardinality. - _since_: 1.0.0
method smembersBuffer
smembersBuffer: ( key: RedisKey, callback?: Callback<Buffer[]>) => Result<Buffer[], Context>;method smismember
smismember: { ( ...args: [ key: RedisKey, ...members: (string | Buffer | number)[], callback: Callback<number[]> ] ): Result<number[], Context>; (key: any, members: any[], callback: Callback<number[]>): Result< number[], Context >; (key: any, ...members: any[]): Result<number[], Context>; (key: any, members: any[]): Result<number[], Context>;};Determines whether multiple members belong to a set. - _group_: set - _complexity_: O(N) where N is the number of elements being checked for membership - _since_: 6.2.0
method smove
smove: ( source: RedisKey, destination: RedisKey, member: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Moves a member from one set to another. - _group_: set - _complexity_: O(1) - _since_: 1.0.0
method sort
sort: { ( ...args: [ key: RedisKey, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: number | string, count: number | string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: RedisKey, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<number | unknown[], Context>; ( key: any, asc: 'ASC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, desc: 'DESC', alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, asc: 'ASC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, desc: 'DESC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[] ): Result<number | unknown[], Context>; ( key: any, alpha: 'ALPHA', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, asc: 'ASC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, desc: 'DESC', destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any, callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], destinationToken: 'STORE', destination: any ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, alpha: 'ALPHA', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, asc: 'ASC', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, desc: 'DESC', callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[] ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, destinationToken: 'STORE', destination: any, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; (key: any, alpha: 'ALPHA', callback?: Callback<number | unknown[]>): Result< number | unknown[], Context >; (key: any, asc: 'ASC', callback?: Callback<number | unknown[]>): Result< number | unknown[], Context >; (key: any, desc: 'DESC', callback?: Callback<number | unknown[]>): Result< number | unknown[], Context >; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<number | unknown[]> ] ): Result<number | unknown[], Context>; (key: any, getPatternToken: 'GET', ...getPatterns: string[]): Result< number | unknown[], Context >; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; ( key: any, byPatternToken: 'BY', byPattern: string, callback?: Callback<number | unknown[]> ): Result<number | unknown[], Context>; (key: any, callback?: Callback<number | unknown[]>): Result< number | unknown[], Context >;};Sorts the elements in a list, a set, or a sorted set, optionally storing the result. - _group_: generic - _complexity_: O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N). - _since_: 1.0.0
method sort_ro
sort_ro: { ( ...args: [ key: RedisKey, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: number | string, count: number | string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', alpha: 'ALPHA' ] ): Result<unknown, Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[] ): Result<unknown, Context>; (key: any, asc: 'ASC', alpha: 'ALPHA', callback?: Callback<unknown>): Result< unknown, Context >; ( key: any, desc: 'DESC', alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], alpha: 'ALPHA' ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], asc: 'ASC' ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC', callback: Callback<unknown> ] ): Result<unknown, Context>; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], desc: 'DESC' ] ): Result<unknown, Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, asc: 'ASC', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, desc: 'DESC', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, getPatternToken: 'GET', ...getPatterns: string[] ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, alpha: 'ALPHA', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, asc: 'ASC', callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, desc: 'DESC', callback?: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, getPatternToken: 'GET', ...getPatterns: string[] ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (key: any, alpha: 'ALPHA', callback?: Callback<unknown>): Result< unknown, Context >; (key: any, asc: 'ASC', callback?: Callback<unknown>): Result< unknown, Context >; (key: any, desc: 'DESC', callback?: Callback<unknown>): Result< unknown, Context >; ( ...args: [ key: any, getPatternToken: 'GET', ...getPatterns: string[], callback: Callback<unknown> ] ): Result<unknown, Context>; (key: any, getPatternToken: 'GET', ...getPatterns: string[]): Result< unknown, Context >; ( key: any, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, byPatternToken: 'BY', byPattern: string, callback?: Callback<unknown> ): Result<unknown, Context>; (key: any, callback?: Callback<unknown>): Result<unknown, Context>;};Returns the sorted elements of a list, a set, or a sorted set. - _group_: generic - _complexity_: O(N+M*log(M)) where N is the number of elements in the list or set to sort, and M the number of returned elements. When the elements are not sorted, complexity is O(N). - _since_: 7.0.0
method spop
spop: { (key: RedisKey, callback?: Callback<string | null>): Result< string | null, Context >; (key: any, count: string | number, callback?: Callback<string[]>): Result< string[], Context >;};Returns one or more random members from a set after removing them. Deletes the set if the last member was popped. - _group_: set - _complexity_: Without the count argument O(1), otherwise O(N) where N is the value of the passed count. - _since_: 1.0.0
method spopBuffer
spopBuffer: { (key: RedisKey, callback?: Callback<Buffer | null>): Result< Buffer | null, Context >; (key: any, count: string | number, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method spublish
spublish: ( shardchannel: string | Buffer, message: string | Buffer, callback?: Callback<unknown>) => Result<unknown, Context>;Post a message to a shard channel - _group_: pubsub - _complexity_: O(N) where N is the number of clients subscribed to the receiving shard channel. - _since_: 7.0.0
method srandmember
srandmember: { (key: RedisKey, callback?: Callback<string | null>): Result< string | null, Context >; (key: any, count: string | number, callback?: Callback<string[]>): Result< string[], Context >;};Get one or multiple random members from a set - _group_: set - _complexity_: Without the count argument O(1), otherwise O(N) where N is the absolute value of the passed count. - _since_: 1.0.0
method srandmemberBuffer
srandmemberBuffer: { (key: RedisKey, callback?: Callback<Buffer | null>): Result< Buffer | null, Context >; (key: any, count: string | number, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method srem
srem: { ( ...args: [ key: RedisKey, ...members: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, members: any[], callback: Callback<number>): Result< number, Context >; (key: any, ...members: any[]): Result<number, Context>; (key: any, members: any[]): Result<number, Context>;};Removes one or more members from a set. Deletes the set if the last member was removed. - _group_: set - _complexity_: O(N) where N is the number of members to be removed. - _since_: 1.0.0
method sscan
sscan: { ( key: RedisKey, cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>;};Iterates over members of a set. - _group_: set - _complexity_: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection. - _since_: 2.8.0
method sscanBuffer
sscanBuffer: { ( key: RedisKey, cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>;};method ssubscribe
ssubscribe: { ( ...args: [ ...shardchannels: (string | Buffer)[], callback: Callback<unknown> ] ): Result<unknown, Context>; (...args: any[]): Result<unknown, Context>;};Listens for messages published to shard channels. - _group_: pubsub - _complexity_: O(N) where N is the number of shard channels to subscribe to. - _since_: 7.0.0
method strlen
strlen: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the length of a string value. - _group_: string - _complexity_: O(1) - _since_: 2.2.0
method subscribe
subscribe: { ( ...args: [...channels: (string | Buffer)[], callback: Callback<unknown>] ): Result<unknown, Context>; (...args: any[]): Result<unknown, Context>;};Listens for messages published to channels. - _group_: pubsub - _complexity_: O(N) where N is the number of channels to subscribe to. - _since_: 2.0.0
method substr
substr: ( key: RedisKey, start: number | string, end: number | string, callback?: Callback<unknown>) => Result<unknown, Context>;Returns a substring from a string value. - _group_: string - _complexity_: O(N) where N is the length of the returned string. The complexity is ultimately determined by the returned length, but because creating a substring from an existing string is very cheap, it can be considered O(1) for small strings. - _since_: 1.0.0
method sunion
sunion: { (...args: [...keys: RedisKey[], callback: Callback<string[]>]): Result< string[], Context >; (keys: any[], callback: Callback<string[]>): Result<string[], Context>; (...args: any[]): Result<string[], Context>; (keys: any[]): Result<string[], Context>;};Returns the union of multiple sets. - _group_: set - _complexity_: O(N) where N is the total number of elements in all given sets. - _since_: 1.0.0
method sunionBuffer
sunionBuffer: { (...args: [...keys: RedisKey[], callback: Callback<Buffer[]>]): Result< Buffer[], Context >; (keys: any[], callback: Callback<Buffer[]>): Result<Buffer[], Context>; (...args: any[]): Result<Buffer[], Context>; (keys: any[]): Result<Buffer[], Context>;};method sunioncard
sunioncard: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], approx: 'APPROX', limitToken: 'LIMIT', limit: number | string, callback: Callback<number> ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], approx: 'APPROX', limitToken: 'LIMIT', limit: string | number, callback: Callback<number> ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], approx: 'APPROX', limitToken: 'LIMIT', limit: string | number ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], approx: 'APPROX', limitToken: 'LIMIT', limit: string | number ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], limitToken: 'LIMIT', limit: string | number, callback: Callback<number> ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number, callback: Callback<number> ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], limitToken: 'LIMIT', limit: string | number ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], approx: 'APPROX', callback: Callback<number> ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], approx: 'APPROX', callback: Callback<number> ): Result<number, Context>; ( ...args: [numkeys: string | number, ...keys: any[], approx: 'APPROX'] ): Result<number, Context>; (numkeys: string | number, keys: any[], approx: 'APPROX'): Result< number, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (numkeys: string | number, keys: any[], callback: Callback<number>): Result< number, Context >; (numkeys: string | number, ...keys: any[]): Result<number, Context>; (numkeys: string | number, keys: any[]): Result<number, Context>;};Returns the number of members of the union of multiple sets. - _group_: set - _complexity_: O(N) where N is the total number of elements in all given sets. - _since_: 8.10.0
method sunionstore
sunionstore: { ( ...args: [ destination: RedisKey, ...keys: RedisKey[], callback: Callback<number> ] ): Result<number, Context>; (destination: any, keys: any[], callback: Callback<number>): Result< number, Context >; (destination: any, ...keys: any[]): Result<number, Context>; (destination: any, keys: any[]): Result<number, Context>;};Stores the union of multiple sets in a key. - _group_: set - _complexity_: O(N) where N is the total number of elements in all given sets. - _since_: 1.0.0
method sunsubscribe
sunsubscribe: { (callback?: Callback<unknown>): Result<unknown, Context>; (...args: [...shardchannels: any[], callback: Callback<unknown>]): Result< unknown, Context >; (...args: any[]): Result<unknown, Context>;};Stops listening to messages posted to shard channels. - _group_: pubsub - _complexity_: O(N) where N is the number of shard channels to unsubscribe. - _since_: 7.0.0
method swapdb
swapdb: ( index1: number | string, index2: number | string, callback?: Callback<'OK'>) => Result<'OK', Context>;Swaps two Redis databases. - _group_: server - _complexity_: O(N) where N is the count of clients watching or blocking on keys from both databases. - _since_: 4.0.0
method sync
sync: (callback?: Callback<unknown>) => Result<unknown, Context>;An internal command used in replication. - _group_: server - _complexity_: undefined - _since_: 1.0.0
method time
time: (callback?: Callback<number[]>) => Result<number[], Context>;Returns the server time. - _group_: server - _complexity_: O(1) - _since_: 2.6.0
method touch
touch: { (...args: [...keys: RedisKey[], callback: Callback<number>]): Result< number, Context >; (keys: any[], callback: Callback<number>): Result<number, Context>; (...args: any[]): Result<number, Context>; (keys: any[]): Result<number, Context>;};Returns the number of existing keys out of those specified after updating the time they were last accessed. - _group_: generic - _complexity_: O(N) where N is the number of keys that will be touched. - _since_: 3.2.1
method ttl
ttl: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the expiration time in seconds of a key. - _group_: generic - _complexity_: O(1) - _since_: 1.0.0
method type
type: (key: RedisKey, callback?: Callback<string>) => Result<string, Context>;Determines the type of value stored at a key. - _group_: generic - _complexity_: O(1) - _since_: 1.0.0
method unlink
unlink: { (...args: [...keys: RedisKey[], callback: Callback<number>]): Result< number, Context >; (keys: any[], callback: Callback<number>): Result<number, Context>; (...args: any[]): Result<number, Context>; (keys: any[]): Result<number, Context>;};Asynchronously deletes one or more keys. - _group_: generic - _complexity_: O(1) for each key removed regardless of its size. Then the command does O(N) work in a different thread in order to reclaim memory, where N is the number of allocations the deleted objects where composed of. - _since_: 4.0.0
method unsubscribe
unsubscribe: { (callback?: Callback<unknown>): Result<unknown, Context>; (...args: [...channels: any[], callback: Callback<unknown>]): Result< unknown, Context >; (...args: any[]): Result<unknown, Context>;};Stops listening to messages posted to channels. - _group_: pubsub - _complexity_: O(N) where N is the number of channels to unsubscribe. - _since_: 2.0.0
method unwatch
unwatch: (callback?: Callback<'OK'>) => Result<'OK', Context>;Forgets about watched keys of a transaction. - _group_: transactions - _complexity_: O(1) - _since_: 2.2.0
method vadd
vadd: { ( ...args: [ key: any, ...args: any[], callback: Callback<RespShape<Resp2<number>, Resp3<boolean>, Context>> ] ): Result<RespShape<Resp2<number>, Resp3<boolean>, Context>, Context>; (key: any, ...args: any[]): Result< RespShape<Resp2<number>, Resp3<boolean>, Context>, Context >;};Add one or more elements to a vector set, or update its vector if it already exists - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vcard
vcard: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Return the number of elements in a vector set - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vdim
vdim: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Return the dimension of vectors in the vector set - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vemb
vemb: { ( key: RedisKey, element: string | Buffer | number, raw: 'RAW', callback?: Callback< RespShape<Resp2<string[] | null>, Resp3<number[] | null>, Context> > ): Result< RespShape<Resp2<string[] | null>, Resp3<number[] | null>, Context>, Context >; ( key: any, element: any, callback?: Callback<RespShape<Resp2<string[]>, Resp3<number[]>, Context>> ): Result<RespShape<Resp2<string[]>, Resp3<number[]>, Context>, Context>;};Return the vector associated with an element - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vembBuffer
vembBuffer: { ( key: RedisKey, element: string | Buffer | number, raw: 'RAW', callback?: Callback< RespShape<Resp2<Buffer[] | null>, Resp3<number[] | null>, Context> > ): Result< RespShape<Resp2<Buffer[] | null>, Resp3<number[] | null>, Context>, Context >; ( key: any, element: any, callback?: Callback<RespShape<Resp2<Buffer[]>, Resp3<number[]>, Context>> ): Result<RespShape<Resp2<Buffer[]>, Resp3<number[]>, Context>, Context>;};method vgetattr
vgetattr: ( key: RedisKey, element: string | Buffer | number, callback?: Callback<string | null>) => Result<string | null, Context>;Retrieve the JSON attributes of elements - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vgetattrBuffer
vgetattrBuffer: ( key: RedisKey, element: string | Buffer | number, callback?: Callback<Buffer | null>) => Result<Buffer | null, Context>;method vinfo
vinfo: ( key: RedisKey, callback?: Callback< RespShape< Resp2<(string | number)[] | null>, Resp3<Resp3Map<string | number> | null>, Context > >) => Result< RespShape< Resp2<(string | number)[] | null>, Resp3<Resp3Map<string | number> | null>, Context >, Context>;Return information about a vector set - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vinfoBuffer
vinfoBuffer: ( key: RedisKey, callback?: Callback< RespShape< Resp2<(Buffer | number)[] | null>, Resp3<Resp3Map<Buffer | number> | null>, Context > >) => Result< RespShape< Resp2<(Buffer | number)[] | null>, Resp3<Resp3Map<Buffer | number> | null>, Context >, Context>;method vismember
vismember: ( key: RedisKey, element: string | Buffer | number, callback?: Callback<RespShape<Resp2<number>, Resp3<boolean>, Context>>) => Result<RespShape<Resp2<number>, Resp3<boolean>, Context>, Context>;Check if an element exists in a vector set - _group_: module - _complexity_: undefined - _since_: 8.2.0
method vlinks
vlinks: { ( key: RedisKey, element: string | Buffer | number, withscores: 'WITHSCORES', callback?: Callback<string[][] | null> ): Result<string[][] | null, Context>; (key: any, element: any, callback?: Callback<string[][]>): Result< string[][], Context >;};Return the neighbors of an element at each layer in the HNSW graph - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vlinksBuffer
vlinksBuffer: { ( key: RedisKey, element: string | Buffer | number, withscores: 'WITHSCORES', callback?: Callback<Buffer[][] | null> ): Result<Buffer[][] | null, Context>; (key: any, element: any, callback?: Callback<Buffer[][]>): Result< Buffer[][], Context >;};method vrandmember
vrandmember: { (key: RedisKey, callback?: Callback<string | null>): Result< string | null, Context >; (key: any, count: string | number, callback?: Callback<string[]>): Result< string[], Context >;};Return one or multiple random members from a vector set - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vrandmemberBuffer
vrandmemberBuffer: { (key: RedisKey, callback?: Callback<Buffer | null>): Result< Buffer | null, Context >; (key: any, count: string | number, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method vrange
vrange: { ( key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, end: any, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>;};Return vector set elements in a lex range - _group_: module - _complexity_: undefined - _since_: 8.4.0
method vrangeBuffer
vrangeBuffer: { ( key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, end: any, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>;};method vrem
vrem: ( key: RedisKey, element: string | Buffer | number, callback?: Callback<RespShape<Resp2<number>, Resp3<boolean>, Context>>) => Result<RespShape<Resp2<number>, Resp3<boolean>, Context>, Context>;Remove an element from a vector set - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vsetattr
vsetattr: ( key: RedisKey, element: string | Buffer | number, json: string | Buffer, callback?: Callback<RespShape<Resp2<number>, Resp3<boolean>, Context>>) => Result<RespShape<Resp2<number>, Resp3<boolean>, Context>, Context>;Associate or remove the JSON attributes of elements - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vsim
vsim: { <T extends any[]>( ...args: [ key: any, ...args: T, callback: Callback<VsimReply<T, string, Context>> ] ): Result<VsimReply<T, string, Context>, Context>; <T extends any[]>(key: any, ...args: T): Result< VsimReply<T, string, Context>, Context >;};Return elements by vector similarity - _group_: module - _complexity_: undefined - _since_: 8.0.0
method vsimBuffer
vsimBuffer: { <T extends any[]>( ...args: [ key: any, ...args: T, callback: Callback<VsimReply<T, Buffer, Context>> ] ): Result<VsimReply<T, Buffer, Context>, Context>; <T extends any[]>(key: any, ...args: T): Result< VsimReply<T, Buffer, Context>, Context >;};method wait
wait: ( numreplicas: number | string, timeout: number | string, callback?: Callback<number>) => Result<number, Context>;Blocks until the asynchronous replication of all preceding write commands sent by the connection is completed. - _group_: generic - _complexity_: O(1) - _since_: 3.0.0
method watch
watch: { (...args: [...keys: RedisKey[], callback: Callback<'OK'>]): Result< 'OK', Context >; (keys: any[], callback: Callback<'OK'>): Result<'OK', Context>; (...args: any[]): Result<'OK', Context>; (keys: any[]): Result<'OK', Context>;};Monitors changes to keys to determine the execution of a transaction. - _group_: transactions - _complexity_: O(1) for every key. - _since_: 2.2.0
method xack
xack: { ( ...args: [ key: RedisKey, group: string | Buffer, ...ids: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, group: any, ...ids: any[]): Result<number, Context>;};Returns the number of messages that were successfully acknowledged by the consumer group member of a stream. - _group_: stream - _complexity_: O(1) for each message ID processed. - _since_: 5.0.0
method xadd
xadd: { (...args: [key: any, ...args: any[], callback: Callback<string>]): Result< string | null, Context >; (key: any, ...args: any[]): Result<string, Context>;};Appends a new message to a stream. Creates the key if it doesn't exist. - _group_: stream - _complexity_: O(1) when adding a new entry, O(N) when trimming where N being the number of entries evicted. - _since_: 5.0.0
method xaddBuffer
xaddBuffer: { (...args: [key: any, ...args: any[], callback: Callback<any>]): Result< Buffer | null, Context >; (key: any, ...args: any[]): Result<any, Context>;};method xautoclaim
xautoclaim: { ( key: RedisKey, group: string | Buffer, consumer: string | Buffer, minIdleTime: string | Buffer | number, start: string | Buffer | number, countToken: 'COUNT', count: number | string, justid: 'JUSTID', callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( key: any, group: any, consumer: any, minIdleTime: any, start: any, justid: 'JUSTID', callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( key: any, group: any, consumer: any, minIdleTime: any, start: any, countToken: 'COUNT', count: string | number, callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( key: any, group: any, consumer: any, minIdleTime: any, start: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>;};Changes, or acquires, ownership of messages in a consumer group, as if the messages were delivered to as consumer group member. - _group_: stream - _complexity_: O(1) if COUNT is small. - _since_: 6.2.0
method xclaim
xclaim: { ( ...args: [ key: RedisKey, group: string | Buffer, consumer: string | Buffer, minIdleTime: string | Buffer | number, ...ids: (string | Buffer | number)[], msToken: 'IDLE', ms: number | string, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: number | string, countToken: 'RETRYCOUNT', count: number | string, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: string | Buffer | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE', justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], justid: 'JUSTID', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], justid: 'JUSTID', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE', lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE', lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE', justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE', justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, countToken: 'RETRYCOUNT', count: string | number ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, countToken: 'RETRYCOUNT', count: string | number ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], lastidToken: 'LASTID', lastid: any, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], lastidToken: 'LASTID', lastid: any ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], justid: 'JUSTID', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], justid: 'JUSTID' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE', callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], force: 'FORCE' ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], unixTimeMillisecondsToken: 'TIME', unixTimeMilliseconds: string | number ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number, callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], msToken: 'IDLE', ms: string | number ] ): Result<unknown[], Context>; ( ...args: [ key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[], callback: Callback<unknown[]> ] ): Result<unknown[], Context>; ( key: any, group: any, consumer: any, minIdleTime: any, ...ids: any[] ): Result<unknown[], Context>;};Changes, or acquires, ownership of a message in a consumer group, as if the message was delivered a consumer group member. - _group_: stream - _complexity_: O(log N) with N being the number of messages in the PEL of the consumer group. - _since_: 5.0.0
method xdel
xdel: { ( ...args: [ key: RedisKey, ...ids: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, ...ids: any[]): Result<number, Context>;};Returns the number of messages after removing them from a stream. - _group_: stream - _complexity_: O(1) for each single item to delete in the stream, regardless of the stream size. - _since_: 5.0.0
method xdelex
xdelex: { ( ...args: [ key: RedisKey, keepref: 'KEEPREF', idsToken: 'IDS', numids: number | string, ...ids: (string | Buffer | number)[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( key: any, keepref: 'KEEPREF', idsToken: 'IDS', numids: string | number, ...ids: any[] ): Result<unknown, Context>; ( ...args: [ key: any, delref: 'DELREF', idsToken: 'IDS', numids: string | number, ...ids: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( key: any, delref: 'DELREF', idsToken: 'IDS', numids: string | number, ...ids: any[] ): Result<unknown, Context>; ( ...args: [ key: any, acked: 'ACKED', idsToken: 'IDS', numids: string | number, ...ids: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; ( key: any, acked: 'ACKED', idsToken: 'IDS', numids: string | number, ...ids: any[] ): Result<unknown, Context>; ( ...args: [ key: any, idsToken: 'IDS', numids: string | number, ...ids: any[], callback: Callback<unknown> ] ): Result<unknown, Context>; (key: any, idsToken: 'IDS', numids: string | number, ...ids: any[]): Result< unknown, Context >;};Deletes one or multiple entries from the stream. - _group_: stream - _complexity_: O(1) for each single item to delete in the stream, regardless of the stream size. - _since_: 8.2.0
method xgroup
xgroup: { ( subcommand: 'CREATE', key: RedisKey, group: string | Buffer, newId: '$', mkstream: 'MKSTREAM', entriesreadToken: 'ENTRIESREAD', entriesread: number | string, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATE', key: any, group: any, id: any, mkstream: 'MKSTREAM', entriesreadToken: 'ENTRIESREAD', entriesread: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATE', key: any, group: any, newId: '$', entriesreadToken: 'ENTRIESREAD', entriesread: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATE', key: any, group: any, newId: '$', mkstream: 'MKSTREAM', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATE', key: any, group: any, id: any, entriesreadToken: 'ENTRIESREAD', entriesread: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATE', key: any, group: any, id: any, mkstream: 'MKSTREAM', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATE', key: any, group: any, newId: '$', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATE', key: any, group: any, id: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'CREATECONSUMER', key: any, group: any, consumer: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'DELCONSUMER', key: any, group: any, consumer: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'DESTROY', key: any, group: any, callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; ( subcommand: 'SETID', key: any, group: any, newId: '$', entriesreadToken: 'ENTRIESREAD', entriesread: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SETID', key: any, group: any, id: any, entriesreadToken: 'ENTRIESREAD', entriesread: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SETID', key: any, group: any, newId: '$', callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'SETID', key: any, group: any, id: any, callback?: Callback<unknown> ): Result<unknown, Context>;};Creates a consumer group. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
Creates a consumer in a consumer group. - _group_: stream - _complexity_: O(1) - _since_: 6.2.0
Deletes a consumer from a consumer group. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
Destroys a consumer group. - _group_: stream - _complexity_: O(N) where N is the number of entries in the group's pending entries list (PEL). - _since_: 5.0.0
Returns helpful text about the different subcommands. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
Sets the last-delivered ID of a consumer group. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
method xinfo
xinfo: { ( subcommand: 'CONSUMERS', key: RedisKey, group: string | Buffer, callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'GROUPS', key: any, callback?: Callback<unknown>): Result< unknown, Context >; (subcommand: 'HELP', callback?: Callback<unknown>): Result<unknown, Context>; ( subcommand: 'STREAM', key: any, full: 'FULL', countToken: 'COUNT', count: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( subcommand: 'STREAM', key: any, full: 'FULL', callback?: Callback<unknown> ): Result<unknown, Context>; (subcommand: 'STREAM', key: any, callback?: Callback<unknown>): Result< unknown, Context >;};Returns a list of the consumers in a consumer group. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
Returns a list of the consumer groups of a stream. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
Returns helpful text about the different subcommands. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
Returns information about a stream. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
method xlen
xlen: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Return the number of messages in a stream. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
method xnack
xnack: { ( ...args: [ key: RedisKey, group: string | Buffer, silent: 'SILENT', idsToken: 'IDS', numids: number | string, ...ids: (string | Buffer | number)[], countToken: 'RETRYCOUNT', count: number | string, force: 'FORCE', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, silent: 'SILENT', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE' ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE' ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, force: 'FORCE' ] ): Result<number, Context>; ( ...args: [ key: any, group: any, silent: 'SILENT', idsToken: 'IDS', numids: string | number, ...ids: any[], force: 'FORCE', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, silent: 'SILENT', idsToken: 'IDS', numids: string | number, ...ids: any[], force: 'FORCE' ] ): Result<number, Context>; ( ...args: [ key: any, group: any, silent: 'SILENT', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, silent: 'SILENT', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[], force: 'FORCE', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[], force: 'FORCE' ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[], force: 'FORCE', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[], force: 'FORCE' ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number, callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[], countToken: 'RETRYCOUNT', count: string | number ] ): Result<number, Context>; ( ...args: [ key: any, group: any, silent: 'SILENT', idsToken: 'IDS', numids: string | number, ...ids: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, group: any, silent: 'SILENT', idsToken: 'IDS', numids: string | number, ...ids: any[] ): Result<number, Context>; ( ...args: [ key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, group: any, fail: 'FAIL', idsToken: 'IDS', numids: string | number, ...ids: any[] ): Result<number, Context>; ( ...args: [ key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[], callback: Callback<number> ] ): Result<number, Context>; ( key: any, group: any, fatal: 'FATAL', idsToken: 'IDS', numids: string | number, ...ids: any[] ): Result<number, Context>;};Releases claimed messages back to the group's PEL without acknowledging them, making them available for re-delivery. - _group_: stream - _complexity_: O(1) for each message ID processed. - _since_: 8.8.0
method xpending
xpending: { ( key: RedisKey, group: string | Buffer, minIdleTimeToken: 'IDLE', minIdleTime: number | string, start: string | Buffer | number, end: string | Buffer | number, count: number | string, callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( key: any, group: any, minIdleTimeToken: 'IDLE', minIdleTime: string | number, start: any, end: any, count: string | number, consumer: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>; (key: any, group: any, callback?: Callback<unknown[]>): Result< unknown[], Context >; ( key: any, group: any, start: any, end: any, count: string | number, callback?: Callback<unknown[]> ): Result<unknown[], Context>; ( key: any, group: any, start: any, end: any, count: string | number, consumer: any, callback?: Callback<unknown[]> ): Result<unknown[], Context>;};Returns the information and entries from a stream consumer group's pending entries list. - _group_: stream - _complexity_: O(N) with N being the number of elements returned, so asking for a small fixed number of entries per call is O(1). O(M), where M is the total number of entries scanned when used with the IDLE filter. When the command returns just the summary and the list of consumers is small, it runs in O(1) time; otherwise, an additional O(N) time for iterating every consumer. - _since_: 5.0.0
method xrange
xrange: { ( key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, countToken: 'COUNT', count: number | string, callback?: Callback<[id: string, fields: string[]][]> ): Result<[id: string, fields: string[]][], Context>; ( key: any, start: any, end: any, callback?: Callback<[id: string, fields: string[]][]> ): Result<[id: string, fields: string[]][], Context>;};Returns the messages from a stream within a range of IDs. - _group_: stream - _complexity_: O(N) with N being the number of elements being returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). - _since_: 5.0.0
method xrangeBuffer
xrangeBuffer: { ( key: RedisKey, start: string | Buffer | number, end: string | Buffer | number, countToken: 'COUNT', count: number | string, callback?: Callback<[id: Buffer, fields: Buffer[]][]> ): Result<[id: Buffer, fields: Buffer[]][], Context>; ( key: any, start: any, end: any, callback?: Callback<[id: Buffer, fields: Buffer[]][]> ): Result<[id: Buffer, fields: Buffer[]][], Context>;};method xread
xread: { ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] | null >, Resp3<Resp3Map<[id: string, fields: string[]][]> | null>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; (streamsToken: 'STREAMS', ...args: any[]): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >;};Returns messages from multiple streams with IDs greater than the ones requested. Blocks until a message is available otherwise. - _group_: stream - _complexity_: undefined - _since_: 5.0.0
method xreadBuffer
xreadBuffer: { ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] | null >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]> | null>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; (streamsToken: 'STREAMS', ...args: any[]): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >;};method xreadgroup
xreadgroup: { ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2< | [key: string, items: [id: string, fields: string[] | null][]][] | null >, Resp3<Resp3Map<[id: string, fields: string[] | null][]> | null>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: string, items: [id: string, fields: string[]][]][] >, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: string, items: [id: string, fields: string[]][]][]>, Resp3<Resp3Map<[id: string, fields: string[]][]>>, Context >, Context >;};Returns new or historical messages from a stream for a consumer in a group. Blocks until a message is available otherwise. - _group_: stream - _complexity_: For each stream mentioned: O(M) with M being the number of elements returned. If M is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). On the other side when XREADGROUP blocks, XADD will pay the O(N) time in order to serve the N clients blocked on the stream getting new data. - _since_: 5.0.0
method xreadgroupBuffer
xreadgroupBuffer: { ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2< | [key: Buffer, items: [id: Buffer, fields: Buffer[] | null][]][] | null >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[] | null][]> | null>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, noack: 'NOACK', streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, minIdleTimeToken: 'CLAIM', minIdleTime: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, millisecondsToken: 'BLOCK', milliseconds: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxsizeToken: 'MAXSIZE', maxsize: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, maxcountToken: 'MAXCOUNT', maxcount: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, countToken: 'COUNT', count: string | number, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( ...args: [ groupBlockToken: 'GROUP', group: any, consumer: any, streamsToken: 'STREAMS', ...args: any[], callback: Callback< RespShape< Resp2< [key: Buffer, items: [id: Buffer, fields: Buffer[]][]][] >, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context > > ] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >; ( groupBlockToken: 'GROUP', group: any, consumer: any, streamsToken: 'STREAMS', ...args: any[] ): Result< RespShape< Resp2<[key: Buffer, items: [id: Buffer, fields: Buffer[]][]][]>, Resp3<Resp3Map<[id: Buffer, fields: Buffer[]][]>>, Context >, Context >;};method xrevrange
xrevrange: { ( key: RedisKey, end: string | Buffer | number, start: string | Buffer | number, countToken: 'COUNT', count: number | string, callback?: Callback<[id: string, fields: string[]][]> ): Result<[id: string, fields: string[]][], Context>; ( key: any, end: any, start: any, callback?: Callback<[id: string, fields: string[]][]> ): Result<[id: string, fields: string[]][], Context>;};Returns the messages from a stream within a range of IDs in reverse order. - _group_: stream - _complexity_: O(N) with N being the number of elements returned. If N is constant (e.g. always asking for the first 10 elements with COUNT), you can consider it O(1). - _since_: 5.0.0
method xrevrangeBuffer
xrevrangeBuffer: { ( key: RedisKey, end: string | Buffer | number, start: string | Buffer | number, countToken: 'COUNT', count: number | string, callback?: Callback<[id: Buffer, fields: Buffer[]][]> ): Result<[id: Buffer, fields: Buffer[]][], Context>; ( key: any, end: any, start: any, callback?: Callback<[id: Buffer, fields: Buffer[]][]> ): Result<[id: Buffer, fields: Buffer[]][], Context>;};method xsetid
xsetid: { ( key: RedisKey, lastId: string | Buffer | number, entriesAddedToken: 'ENTRIESADDED', entriesAdded: number | string, maxDeletedIdToken: 'MAXDELETEDID', maxDeletedId: string | Buffer | number, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, lastId: any, maxDeletedIdToken: 'MAXDELETEDID', maxDeletedId: any, callback?: Callback<unknown> ): Result<unknown, Context>; ( key: any, lastId: any, entriesAddedToken: 'ENTRIESADDED', entriesAdded: string | number, callback?: Callback<unknown> ): Result<unknown, Context>; (key: any, lastId: any, callback?: Callback<unknown>): Result< unknown, Context >;};An internal command for replicating stream values. - _group_: stream - _complexity_: O(1) - _since_: 5.0.0
method xtrim
xtrim: { ( key: RedisKey, maxlen: 'MAXLEN', equal: '=', threshold: string | Buffer | number, countToken: 'LIMIT', count: number | string, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', equal: '=', threshold: any, countToken: 'LIMIT', count: string | number, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', equal: '=', threshold: any, countToken: 'LIMIT', count: string | number, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, countToken: 'LIMIT', count: string | number, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, countToken: 'LIMIT', count: string | number, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, countToken: 'LIMIT', count: string | number, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, countToken: 'LIMIT', count: string | number, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, countToken: 'LIMIT', count: string | number, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, countToken: 'LIMIT', count: string | number, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', equal: '=', threshold: any, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', equal: '=', threshold: any, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', equal: '=', threshold: any, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', equal: '=', threshold: any, countToken: 'LIMIT', count: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, countToken: 'LIMIT', count: string | number, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, countToken: 'LIMIT', count: string | number, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, countToken: 'LIMIT', count: string | number, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, countToken: 'LIMIT', count: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, countToken: 'LIMIT', count: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, countToken: 'LIMIT', count: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', equal: '=', threshold: any, callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', approximately: '~', threshold: any, callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, keepref: 'KEEPREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, delref: 'DELREF', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, acked: 'ACKED', callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, countToken: 'LIMIT', count: string | number, callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', equal: '=', threshold: any, callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', approximately: '~', threshold: any, callback?: Callback<number> ): Result<number, Context>; ( key: any, maxlen: 'MAXLEN', threshold: any, callback?: Callback<number> ): Result<number, Context>; ( key: any, minid: 'MINID', threshold: any, callback?: Callback<number> ): Result<number, Context>;};Deletes messages from the beginning of a stream. - _group_: stream - _complexity_: O(N), with N being the number of evicted entries. Constant times are very small however, since entries are organized in macro nodes containing multiple entries that can be released with a single deallocation. - _since_: 5.0.0
method zadd
zadd: { ( ...args: [ key: RedisKey, nx: 'NX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: (string | Buffer | number)[], callback: Callback< RespShape< Resp2<string | null>, Resp3<Resp3Double<string> | null>, Context > > ] ): Result< RespShape< Resp2<string | null>, Resp3<Resp3Double<string> | null>, Context >, Context >; ( key: any, nx: 'NX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, nx: 'NX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; ( key: any, nx: 'NX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, xx: 'XX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; ( key: any, xx: 'XX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, xx: 'XX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; ( key: any, xx: 'XX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', gt: 'GT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', gt: 'GT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', gt: 'GT', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, nx: 'NX', gt: 'GT', ch: 'CH', ...data: any[]): Result< number, Context >; ( ...args: [ key: any, nx: 'NX', lt: 'LT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', lt: 'LT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', lt: 'LT', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, nx: 'NX', lt: 'LT', ch: 'CH', ...data: any[]): Result< number, Context >; ( ...args: [ key: any, xx: 'XX', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', gt: 'GT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', gt: 'GT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', gt: 'GT', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, xx: 'XX', gt: 'GT', ch: 'CH', ...data: any[]): Result< number, Context >; ( ...args: [ key: any, xx: 'XX', lt: 'LT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', lt: 'LT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', lt: 'LT', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, xx: 'XX', lt: 'LT', ch: 'CH', ...data: any[]): Result< number, Context >; ( ...args: [ key: any, ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, gt: 'GT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, gt: 'GT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, gt: 'GT', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, gt: 'GT', ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, lt: 'LT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, lt: 'LT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, lt: 'LT', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, lt: 'LT', ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, nx: 'NX', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, nx: 'NX', ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, nx: 'NX', gt: 'GT', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, nx: 'NX', gt: 'GT', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, nx: 'NX', lt: 'LT', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, nx: 'NX', lt: 'LT', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, xx: 'XX', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', ch: 'CH', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, xx: 'XX', ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, xx: 'XX', gt: 'GT', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, xx: 'XX', gt: 'GT', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, xx: 'XX', lt: 'LT', ...data: any[], callback: Callback<number> ] ): Result<number, Context>; (key: any, xx: 'XX', lt: 'LT', ...data: any[]): Result<number, Context>; ( ...args: [ key: any, incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<string>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<string>, Resp3<number>, Context>, Context>; (key: any, incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<string>, Resp3<number>, Context>, Context >; ( ...args: [key: any, ch: 'CH', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, ch: 'CH', ...data: any[]): Result<number, Context>; ( ...args: [key: any, gt: 'GT', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, gt: 'GT', ...data: any[]): Result<number, Context>; ( ...args: [key: any, lt: 'LT', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, lt: 'LT', ...data: any[]): Result<number, Context>; ( ...args: [key: any, nx: 'NX', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, nx: 'NX', ...data: any[]): Result<number, Context>; ( ...args: [key: any, xx: 'XX', ...data: any[], callback: Callback<number>] ): Result<number, Context>; (key: any, xx: 'XX', ...data: any[]): Result<number, Context>; (...args: [key: any, ...data: any[], callback: Callback<number>]): Result< number, Context >; (key: any, ...data: any[]): Result<number, Context>;};Adds one or more members to a sorted set, or updates their scores. Creates the key if it doesn't exist. - _group_: sorted-set - _complexity_: O(log(N)) for each item added, where N is the number of elements in the sorted set. - _since_: 1.2.0
method zaddBuffer
zaddBuffer: { ( ...args: [ key: RedisKey, nx: 'NX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: (string | Buffer | number)[], callback: Callback< RespShape< Resp2<Buffer | null>, Resp3<Resp3Double<Buffer> | null>, Context > > ] ): Result< RespShape< Resp2<Buffer | null>, Resp3<Resp3Double<Buffer> | null>, Context >, Context >; ( key: any, nx: 'NX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, nx: 'NX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; ( key: any, nx: 'NX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, xx: 'XX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; ( key: any, xx: 'XX', gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, xx: 'XX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; ( key: any, xx: 'XX', lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; ( ...args: [ key: any, gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<Buffer>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context>; (key: any, gt: 'GT', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<Buffer>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context>; (key: any, lt: 'LT', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', gt: 'GT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', gt: 'GT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', lt: 'LT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', lt: 'LT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', gt: 'GT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', gt: 'GT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', lt: 'LT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', lt: 'LT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, ch: 'CH', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<Buffer>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context>; (key: any, ch: 'CH', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, gt: 'GT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<Buffer>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context>; (key: any, gt: 'GT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, lt: 'LT', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<Buffer>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context>; (key: any, lt: 'LT', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, nx: 'NX', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, nx: 'NX', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, xx: 'XX', incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<any>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<any>, Resp3<number>, Context>, Context>; (key: any, xx: 'XX', incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<any>, Resp3<number>, Context>, Context >; ( ...args: [ key: any, incr: 'INCR', ...data: any[], callback: Callback<RespShape<Resp2<Buffer>, Resp3<number>, Context>> ] ): Result<RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context>; (key: any, incr: 'INCR', ...data: any[]): Result< RespShape<Resp2<Buffer>, Resp3<number>, Context>, Context >;};method zcard
zcard: (key: RedisKey, callback?: Callback<number>) => Result<number, Context>;Returns the number of members in a sorted set. - _group_: sorted-set - _complexity_: O(1) - _since_: 1.2.0
method zcount
zcount: ( key: RedisKey, min: number | string, max: number | string, callback?: Callback<number>) => Result<number, Context>;Returns the count of members in a sorted set that have scores within a range. - _group_: sorted-set - _complexity_: O(log(N)) with N being the number of elements in the sorted set. - _since_: 2.0.0
method zdiff
zdiff: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; ( numkeys: string | number, keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; (numkeys: string | number, keys: any[], withscores: 'WITHSCORES'): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], callback: Callback<string[]> ): Result<string[], Context>; (numkeys: string | number, ...keys: any[]): Result<string[], Context>; (numkeys: string | number, keys: any[]): Result<string[], Context>;};Returns the difference between multiple sorted sets. - _group_: sorted-set - _complexity_: O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set. - _since_: 6.2.0
method zdiffBuffer
zdiffBuffer: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; ( numkeys: string | number, keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; (numkeys: string | number, keys: any[], withscores: 'WITHSCORES'): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], callback: Callback<Buffer[]> ): Result<Buffer[], Context>; (numkeys: string | number, ...keys: any[]): Result<Buffer[], Context>; (numkeys: string | number, keys: any[]): Result<Buffer[], Context>;};method zdiffstore
zdiffstore: { ( ...args: [ destination: RedisKey, numkeys: number | string, ...keys: RedisKey[], callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], callback: Callback<number> ): Result<number, Context>; (destination: any, numkeys: string | number, ...keys: any[]): Result< number, Context >; (destination: any, numkeys: string | number, keys: any[]): Result< number, Context >;};Stores the difference of multiple sorted sets in a key. - _group_: sorted-set - _complexity_: O(L + (N-K)log(N)) worst case where L is the total number of elements in all the sets, N is the size of the first set, and K is the size of the result set. - _since_: 6.2.0
method zincrby
zincrby: ( key: RedisKey, increment: number | string, member: string | Buffer | number, callback?: Callback< RespShape<Resp2<string>, Resp3<Resp3Double<string>>, Context> >) => Result< RespShape<Resp2<string>, Resp3<Resp3Double<string>>, Context>, Context>;Increments the score of a member in a sorted set. - _group_: sorted-set - _complexity_: O(log(N)) where N is the number of elements in the sorted set. - _since_: 1.2.0
method zincrbyBuffer
zincrbyBuffer: ( key: RedisKey, increment: number | string, member: string | Buffer | number, callback?: Callback< RespShape<Resp2<Buffer>, Resp3<Resp3Double<Buffer>>, Context> >) => Result< RespShape<Resp2<Buffer>, Resp3<Resp3Double<Buffer>>, Context>, Context>;method zinter
zinter: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; (numkeys: string | number, keys: any[], withscores: 'WITHSCORES'): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], callback: Callback<string[]> ): Result<string[], Context>; (numkeys: string | number, ...keys: any[]): Result<string[], Context>; (numkeys: string | number, keys: any[]): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], callback: Callback<string[]> ] ): Result<string[], Context>; (numkeys: string | number, ...args: any[]): Result<string[], Context>;};Returns the intersect of multiple sorted sets. - _group_: sorted-set - _complexity_: O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set. - _since_: 6.2.0
method zinterBuffer
zinterBuffer: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; (numkeys: string | number, keys: any[], withscores: 'WITHSCORES'): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], callback: Callback<Buffer[]> ): Result<Buffer[], Context>; (numkeys: string | number, ...keys: any[]): Result<Buffer[], Context>; (numkeys: string | number, keys: any[]): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; (numkeys: string | number, ...args: any[]): Result<Buffer[], Context>;};method zintercard
zintercard: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], limitToken: 'LIMIT', limit: number | string, callback: Callback<number> ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number, callback: Callback<number> ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], limitToken: 'LIMIT', limit: string | number ] ): Result<number, Context>; ( numkeys: string | number, keys: any[], limitToken: 'LIMIT', limit: string | number ): Result<number, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; (numkeys: string | number, keys: any[], callback: Callback<number>): Result< number, Context >; (numkeys: string | number, ...keys: any[]): Result<number, Context>; (numkeys: string | number, keys: any[]): Result<number, Context>;};Returns the number of members of the intersect of multiple sorted sets. - _group_: sorted-set - _complexity_: O(N*K) worst case with N being the smallest input sorted set, K being the number of input sorted sets. - _since_: 7.0.0
method zinterstore
zinterstore: { ( ...args: [ destination: RedisKey, numkeys: number | string, ...keys: RedisKey[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], callback: Callback<number> ): Result<number, Context>; (destination: any, numkeys: string | number, ...keys: any[]): Result< number, Context >; (destination: any, numkeys: string | number, keys: any[]): Result< number, Context >; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], callback: Callback<number> ] ): Result<number, Context>; (destination: any, numkeys: string | number, ...args: any[]): Result< number, Context >;};Stores the intersect of multiple sorted sets in a key. - _group_: sorted-set - _complexity_: O(N*K)+O(M*log(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set. - _since_: 2.0.0
method zlexcount
zlexcount: ( key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Returns the number of members in a sorted set within a lexicographical range. - _group_: sorted-set - _complexity_: O(log(N)) with N being the number of elements in the sorted set. - _since_: 2.8.9
method zmpop
zmpop: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], min: 'MIN', countToken: 'COUNT', count: number | string, callback: Callback<unknown> ] ): Result<unknown, Context>; ( numkeys: string | number, keys: any[], min: 'MIN', countToken: 'COUNT', count: string | number, callback: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], min: 'MIN', countToken: 'COUNT', count: string | number ] ): Result<unknown, Context>; ( numkeys: string | number, keys: any[], min: 'MIN', countToken: 'COUNT', count: string | number ): Result<unknown, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number, callback: Callback<unknown> ] ): Result<unknown, Context>; ( numkeys: string | number, keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number, callback: Callback<unknown> ): Result<unknown, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number ] ): Result<unknown, Context>; ( numkeys: string | number, keys: any[], max: 'MAX', countToken: 'COUNT', count: string | number ): Result<unknown, Context>; ( ...args: [ numkeys: string | number, ...keys: any[], min: 'MIN', callback: Callback<unknown> ] ): Result<unknown, Context>; ( numkeys: string | number, keys: any[], min: 'MIN', callback: Callback<unknown> ): Result<unknown, Context>; (...args: [numkeys: string | number, ...keys: any[], min: 'MIN']): Result< unknown, Context >; (numkeys: string | number, keys: any[], min: 'MIN'): Result< unknown, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], max: 'MAX', callback: Callback<unknown> ] ): Result<unknown, Context>; ( numkeys: string | number, keys: any[], max: 'MAX', callback: Callback<unknown> ): Result<unknown, Context>; (...args: [numkeys: string | number, ...keys: any[], max: 'MAX']): Result< unknown, Context >; (numkeys: string | number, keys: any[], max: 'MAX'): Result< unknown, Context >;};Returns the highest- or lowest-scoring members from one or more sorted sets after removing them. Deletes the sorted set if the last member was popped. - _group_: sorted-set - _complexity_: O(K) + O(M*log(N)) where K is the number of provided keys, N being the number of elements in the sorted set, and M being the number of elements popped. - _since_: 7.0.0
method zmscore
zmscore: { ( ...args: [ key: RedisKey, ...members: (string | Buffer | number)[], callback: Callback< RespShape< Resp2<(string | null)[]>, Resp3<(Resp3Double<string> | null)[]>, Context > > ] ): Result< RespShape< Resp2<(string | null)[]>, Resp3<(Resp3Double<string> | null)[]>, Context >, Context >; ( key: any, members: any[], callback: Callback<RespShape<Resp2<string[]>, Resp3<number[]>, Context>> ): Result<RespShape<Resp2<string[]>, Resp3<number[]>, Context>, Context>; (key: any, ...members: any[]): Result< RespShape<Resp2<string[]>, Resp3<number[]>, Context>, Context >; (key: any, members: any[]): Result< RespShape<Resp2<string[]>, Resp3<number[]>, Context>, Context >;};Returns the score of one or more members in a sorted set. - _group_: sorted-set - _complexity_: O(N) where N is the number of members being requested. - _since_: 6.2.0
method zmscoreBuffer
zmscoreBuffer: { ( ...args: [ key: RedisKey, ...members: (string | Buffer | number)[], callback: Callback< RespShape< Resp2<(Buffer | null)[]>, Resp3<(Resp3Double<Buffer> | null)[]>, Context > > ] ): Result< RespShape< Resp2<(Buffer | null)[]>, Resp3<(Resp3Double<Buffer> | null)[]>, Context >, Context >; ( key: any, members: any[], callback: Callback<RespShape<Resp2<any[]>, Resp3<number[]>, Context>> ): Result<RespShape<Resp2<any[]>, Resp3<number[]>, Context>, Context>; (key: any, ...members: any[]): Result< RespShape<Resp2<any[]>, Resp3<number[]>, Context>, Context >; (key: any, members: any[]): Result< RespShape<Resp2<any[]>, Resp3<number[]>, Context>, Context >;};method zpopmax
zpopmax: { ( key: RedisKey, callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>] | []>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>] | []>, Context >, Context >; ( key: any, count: string | number, callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >;};Returns the highest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped. - _group_: sorted-set - _complexity_: O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped. - _since_: 5.0.0
method zpopmaxBuffer
zpopmaxBuffer: { ( key: RedisKey, callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>] | []>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>] | []>, Context >, Context >; ( key: any, count: string | number, callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >;};method zpopmin
zpopmin: { ( key: RedisKey, callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>] | []>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>] | []>, Context >, Context >; ( key: any, count: string | number, callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >;};Returns the lowest-scoring members from a sorted set after removing them. Deletes the sorted set if the last member was popped. - _group_: sorted-set - _complexity_: O(log(N)*M) with N being the number of elements in the sorted set, and M being the number of elements popped. - _since_: 5.0.0
method zpopminBuffer
zpopminBuffer: { ( key: RedisKey, callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>] | []>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>] | []>, Context >, Context >; ( key: any, count: string | number, callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >;};method zrandmember
zrandmember: { ( key: RedisKey, count: number | string, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; (key: any, callback?: Callback<string>): Result<string, Context>; (key: any, count: string | number, callback?: Callback<string[]>): Result< string[], Context >;};Returns one or more random members from a sorted set. - _group_: sorted-set - _complexity_: O(N) where N is the number of members returned - _since_: 6.2.0
method zrandmemberBuffer
zrandmemberBuffer: { ( key: RedisKey, count: number | string, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; (key: any, callback?: Callback<any>): Result<any, Context>; (key: any, count: string | number, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method zrange
zrange: { ( key: RedisKey, start: string | Buffer | number, stop: string | Buffer, byscore: 'BYSCORE', rev: 'REV', limitToken: 'LIMIT', offset: number | string, count: number | string, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', rev: 'REV', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, rev: 'REV', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, byscore: 'BYSCORE', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, byscore: 'BYSCORE', rev: 'REV', callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, rev: 'REV', callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, byscore: 'BYSCORE', callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', callback?: Callback<string[]> ): Result<string[], Context>; (key: any, start: any, stop: any, callback?: Callback<string[]>): Result< string[], Context >;};Returns members in a sorted set within a range of indexes. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned. - _since_: 1.2.0
method zrangeBuffer
zrangeBuffer: { ( key: RedisKey, start: string | Buffer | number, stop: string | Buffer, byscore: 'BYSCORE', rev: 'REV', limitToken: 'LIMIT', offset: number | string, count: number | string, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', rev: 'REV', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, limitToken: 'LIMIT', offset: string | number, count: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, rev: 'REV', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, byscore: 'BYSCORE', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, byscore: 'BYSCORE', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, byscore: 'BYSCORE', rev: 'REV', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, bylex: 'BYLEX', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', rev: 'REV', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, start: any, stop: any, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, rev: 'REV', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, byscore: 'BYSCORE', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, start: any, stop: any, bylex: 'BYLEX', callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; (key: any, start: any, stop: any, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method zrangebylex
zrangebylex: { ( key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback<string[]> ): Result<string[], Context>; (key: any, min: any, max: any, callback?: Callback<string[]>): Result< string[], Context >;};Returns members in a sorted set within a lexicographical range. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)). - _since_: 2.8.9
method zrangebylexBuffer
zrangebylexBuffer: { ( key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; (key: any, min: any, max: any, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method zrangebyscore
zrangebyscore: { ( key: RedisKey, min: number | string, max: number | string, withscores: 'WITHSCORES', limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; ( key: any, min: string | number, max: string | number, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, min: string | number, max: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, min: string | number, max: string | number, callback?: Callback<string[]> ): Result<string[], Context>;};Returns members in a sorted set within a range of scores. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)). - _since_: 1.0.5
method zrangebyscoreBuffer
zrangebyscoreBuffer: { ( key: RedisKey, min: number | string, max: number | string, withscores: 'WITHSCORES', limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; ( key: any, min: string | number, max: string | number, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, min: string | number, max: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, min: string | number, max: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>;};method zrangestore
zrangestore: { ( dst: RedisKey, src: RedisKey, min: string | Buffer | number, max: string | Buffer | number, byscore: 'BYSCORE', rev: 'REV', limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, bylex: 'BYLEX', rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, rev: 'REV', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, byscore: 'BYSCORE', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, byscore: 'BYSCORE', rev: 'REV', callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, bylex: 'BYLEX', limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, bylex: 'BYLEX', rev: 'REV', callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, rev: 'REV', callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, byscore: 'BYSCORE', callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, bylex: 'BYLEX', callback?: Callback<number> ): Result<number, Context>; ( dst: any, src: any, min: any, max: any, callback?: Callback<number> ): Result<number, Context>;};Stores a range of members from sorted set in a key. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements stored into the destination key. - _since_: 6.2.0
method zrank
zrank: { ( key: RedisKey, member: string | Buffer | number, withscore: 'WITHSCORE', callback?: Callback< RespShape< Resp2<[rank: number, score: string] | null>, Resp3<[rank: number, score: Resp3Double<string>] | null>, Context > > ): Result< RespShape< Resp2<[rank: number, score: string] | null>, Resp3<[rank: number, score: Resp3Double<string>] | null>, Context >, Context >; (key: any, member: any, callback?: Callback<number>): Result< number, Context >;};Returns the index of a member in a sorted set ordered by ascending scores. - _group_: sorted-set - _complexity_: O(log(N)) - _since_: 2.0.0
method zrankBuffer
zrankBuffer: ( key: RedisKey, member: string | Buffer | number, withscore: 'WITHSCORE', callback?: Callback< RespShape< Resp2<[rank: number, score: Buffer] | null>, Resp3<[rank: number, score: Resp3Double<Buffer>] | null>, Context > >) => Result< RespShape< Resp2<[rank: number, score: Buffer] | null>, Resp3<[rank: number, score: Resp3Double<Buffer>] | null>, Context >, Context>;method zrem
zrem: { ( ...args: [ key: RedisKey, ...members: (string | Buffer | number)[], callback: Callback<number> ] ): Result<number, Context>; (key: any, members: any[], callback: Callback<number>): Result< number, Context >; (key: any, ...members: any[]): Result<number, Context>; (key: any, members: any[]): Result<number, Context>;};Removes one or more members from a sorted set. Deletes the sorted set if all members were removed. - _group_: sorted-set - _complexity_: O(M*log(N)) with N being the number of elements in the sorted set and M the number of elements to be removed. - _since_: 1.2.0
method zremrangebylex
zremrangebylex: ( key: RedisKey, min: string | Buffer | number, max: string | Buffer | number, callback?: Callback<number>) => Result<number, Context>;Removes members in a sorted set within a lexicographical range. Deletes the sorted set if all members were removed. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation. - _since_: 2.8.9
method zremrangebyrank
zremrangebyrank: ( key: RedisKey, start: number | string, stop: number | string, callback?: Callback<number>) => Result<number, Context>;Removes members in a sorted set within a range of indexes. Deletes the sorted set if all members were removed. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation. - _since_: 2.0.0
method zremrangebyscore
zremrangebyscore: ( key: RedisKey, min: number | string, max: number | string, callback?: Callback<number>) => Result<number, Context>;Removes members in a sorted set within a range of scores. Deletes the sorted set if all members were removed. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements removed by the operation. - _since_: 1.2.0
method zrevrange
zrevrange: { ( key: RedisKey, start: number | string, stop: number | string, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; ( key: any, start: string | number, stop: string | number, callback?: Callback<string[]> ): Result<string[], Context>;};Returns members in a sorted set within a range of indexes in reverse order. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements returned. - _since_: 1.2.0
method zrevrangeBuffer
zrevrangeBuffer: { ( key: RedisKey, start: number | string, stop: number | string, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; ( key: any, start: string | number, stop: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>;};method zrevrangebylex
zrevrangebylex: { ( key: RedisKey, max: string | Buffer | number, min: string | Buffer | number, limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback<string[]> ): Result<string[], Context>; (key: any, max: any, min: any, callback?: Callback<string[]>): Result< string[], Context >;};Returns members in a sorted set within a lexicographical range in reverse order. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)). - _since_: 2.8.9
method zrevrangebylexBuffer
zrevrangebylexBuffer: { ( key: RedisKey, max: string | Buffer | number, min: string | Buffer | number, limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; (key: any, max: any, min: any, callback?: Callback<Buffer[]>): Result< Buffer[], Context >;};method zrevrangebyscore
zrevrangebyscore: { ( key: RedisKey, max: number | string, min: number | string, withscores: 'WITHSCORES', limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; ( key: any, max: string | number, min: string | number, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<string[]> ): Result<string[], Context>; ( key: any, max: string | number, min: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( key: any, max: string | number, min: string | number, callback?: Callback<string[]> ): Result<string[], Context>;};Returns members in a sorted set within a range of scores in reverse order. - _group_: sorted-set - _complexity_: O(log(N)+M) with N being the number of elements in the sorted set and M the number of elements being returned. If M is constant (e.g. always asking for the first 10 elements with LIMIT), you can consider it O(log(N)). - _since_: 2.2.0
method zrevrangebyscoreBuffer
zrevrangebyscoreBuffer: { ( key: RedisKey, max: number | string, min: number | string, withscores: 'WITHSCORES', limitToken: 'LIMIT', offset: number | string, count: number | string, callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; ( key: any, max: string | number, min: string | number, limitToken: 'LIMIT', offset: string | number, count: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>; ( key: any, max: string | number, min: string | number, withscores: 'WITHSCORES', callback?: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( key: any, max: string | number, min: string | number, callback?: Callback<Buffer[]> ): Result<Buffer[], Context>;};method zrevrank
zrevrank: { ( key: RedisKey, member: string | Buffer | number, withscore: 'WITHSCORE', callback?: Callback< RespShape< Resp2<[rank: number, score: string] | null>, Resp3<[rank: number, score: Resp3Double<string>] | null>, Context > > ): Result< RespShape< Resp2<[rank: number, score: string] | null>, Resp3<[rank: number, score: Resp3Double<string>] | null>, Context >, Context >; (key: any, member: any, callback?: Callback<number>): Result< number, Context >;};Returns the index of a member in a sorted set ordered by descending scores. - _group_: sorted-set - _complexity_: O(log(N)) - _since_: 2.0.0
method zrevrankBuffer
zrevrankBuffer: ( key: RedisKey, member: string | Buffer | number, withscore: 'WITHSCORE', callback?: Callback< RespShape< Resp2<[rank: number, score: Buffer] | null>, Resp3<[rank: number, score: Resp3Double<Buffer>] | null>, Context > >) => Result< RespShape< Resp2<[rank: number, score: Buffer] | null>, Resp3<[rank: number, score: Resp3Double<Buffer>] | null>, Context >, Context>;method zscan
zscan: { ( key: RedisKey, cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>; ( key: any, cursor: string | number, callback?: Callback<[cursor: string, elements: string[]]> ): Result<[cursor: string, elements: string[]], Context>;};Iterates over members and scores of a sorted set. - _group_: sorted-set - _complexity_: O(1) for every call. O(N) for a complete iteration, including enough command calls for the cursor to return back to 0. N is the number of elements inside the collection. - _since_: 2.8.0
method zscanBuffer
zscanBuffer: { ( key: RedisKey, cursor: number | string, patternToken: 'MATCH', pattern: string, countToken: 'COUNT', count: number | string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, countToken: 'COUNT', count: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, patternToken: 'MATCH', pattern: string, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>; ( key: any, cursor: string | number, callback?: Callback<[cursor: Buffer, elements: Buffer[]]> ): Result<[cursor: Buffer, elements: Buffer[]], Context>;};method zscore
zscore: ( key: RedisKey, member: string | Buffer | number, callback?: Callback< RespShape< Resp2<string | null>, Resp3<Resp3Double<string> | null>, Context > >) => Result< RespShape<Resp2<string | null>, Resp3<Resp3Double<string> | null>, Context>, Context>;Returns the score of a member in a sorted set. - _group_: sorted-set - _complexity_: O(1) - _since_: 1.2.0
method zscoreBuffer
zscoreBuffer: ( key: RedisKey, member: string | Buffer | number, callback?: Callback< RespShape< Resp2<Buffer | null>, Resp3<Resp3Double<Buffer> | null>, Context > >) => Result< RespShape<Resp2<Buffer | null>, Resp3<Resp3Double<Buffer> | null>, Context>, Context>;method zunion
zunion: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: Resp3Double<string>][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<string[]> ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<string[]> ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; (numkeys: string | number, keys: any[], withscores: 'WITHSCORES'): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context > > ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<string[]>, Resp3<[member: string, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<string[]> ] ): Result<string[], Context>; ( numkeys: string | number, keys: any[], callback: Callback<string[]> ): Result<string[], Context>; (numkeys: string | number, ...keys: any[]): Result<string[], Context>; (numkeys: string | number, keys: any[]): Result<string[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], callback: Callback<string[]> ] ): Result<string[], Context>; (numkeys: string | number, ...args: any[]): Result<string[], Context>;};Returns the union of multiple sorted sets. - _group_: sorted-set - _complexity_: O(N)+O(M*log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set. - _since_: 6.2.0
method zunionBuffer
zunionBuffer: { ( ...args: [ numkeys: number | string, ...keys: RedisKey[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: Resp3Double<Buffer>][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<Buffer[]> ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( numkeys: string | number, keys: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; (numkeys: string | number, keys: any[], withscores: 'WITHSCORES'): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES', callback: Callback< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context > > ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...args: any[], withscores: 'WITHSCORES' ] ): Result< RespShape< Resp2<Buffer[]>, Resp3<[member: Buffer, score: number][]>, Context >, Context >; ( ...args: [ numkeys: string | number, ...keys: any[], callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; ( numkeys: string | number, keys: any[], callback: Callback<Buffer[]> ): Result<Buffer[], Context>; (numkeys: string | number, ...keys: any[]): Result<Buffer[], Context>; (numkeys: string | number, keys: any[]): Result<Buffer[], Context>; ( ...args: [ numkeys: string | number, ...args: any[], callback: Callback<Buffer[]> ] ): Result<Buffer[], Context>; (numkeys: string | number, ...args: any[]): Result<Buffer[], Context>;};method zunionstore
zunionstore: { ( ...args: [ destination: RedisKey, numkeys: number | string, ...keys: RedisKey[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', sum: 'SUM' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', min: 'MIN' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', max: 'MAX' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<number> ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], aggregate: 'AGGREGATE', count: 'COUNT' ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', sum: 'SUM' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', min: 'MIN' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', max: 'MAX' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT', callback: Callback<number> ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], aggregate: 'AGGREGATE', count: 'COUNT' ] ): Result<number, Context>; ( ...args: [ destination: any, numkeys: string | number, ...keys: any[], callback: Callback<number> ] ): Result<number, Context>; ( destination: any, numkeys: string | number, keys: any[], callback: Callback<number> ): Result<number, Context>; (destination: any, numkeys: string | number, ...keys: any[]): Result< number, Context >; (destination: any, numkeys: string | number, keys: any[]): Result< number, Context >; ( ...args: [ destination: any, numkeys: string | number, ...args: any[], callback: Callback<number> ] ): Result<number, Context>; (destination: any, numkeys: string | number, ...args: any[]): Result< number, Context >;};Stores the union of multiple sorted sets in a key. - _group_: sorted-set - _complexity_: O(N)+O(M log(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set. - _since_: 2.0.0
interface ScanStreamOptions
interface ScanStreamOptions {}interface SentinelAddress
interface SentinelAddress {}interface SentinelConnectionOptions
interface SentinelConnectionOptions {}property connectTimeout
connectTimeout?: number | undefined;property disconnectTimeout
disconnectTimeout?: number | undefined;property enableTLSForSentinelMode
enableTLSForSentinelMode?: boolean | undefined;property failoverDetector
failoverDetector?: boolean | undefined;property family
family?: number | undefined;property name
name?: string | undefined;Master group name of the Sentinel
property natMap
natMap?: NatMap | undefined;property path
path?: string | undefined;property preferredSlaves
preferredSlaves?: PreferredSlaves | undefined;property protocol
protocol?: ProtocolVersion | undefined;property replyMapping
replyMapping?: ReplyMappingMode | undefined;property role
role?: 'master' | 'slave' | undefined;"master"
property sentinelCommandTimeout
sentinelCommandTimeout?: number | undefined;property sentinelMaxConnections
sentinelMaxConnections?: number | undefined;10
property sentinelPassword
sentinelPassword?: string | undefined;property sentinelReconnectStrategy
sentinelReconnectStrategy?: | ((retryAttempts: number) => number | void | null) | undefined;property sentinelRetryStrategy
sentinelRetryStrategy?: | ((retryAttempts: number) => number | void | null) | undefined;property sentinels
sentinels?: Array<Partial<SentinelAddress>> | undefined;property sentinelTLS
sentinelTLS?: ConnectionOptions | undefined;property sentinelUsername
sentinelUsername?: string | undefined;property tls
tls?: ConnectionOptions | undefined;property updateSentinels
updateSentinels?: boolean | undefined;Type Aliases
type Callback
type Callback<T = any> = (err?: Error | null, result?: T) => void;type ClientContext
type ClientContext = { type: keyof ResultTypes<unknown, unknown>; mapping?: 'resp2' | 'resp3';};type ClusterNode
type ClusterNode = | string | number | { host?: string | undefined; port?: number | undefined; };type ClusterStatus
type ClusterStatus = | 'end' | 'close' | 'wait' | 'connecting' | 'connect' | 'ready' | 'reconnecting' | 'disconnecting';type DNSLookupFunction
type DNSLookupFunction = ( hostname: string, callback: ( err: NodeJS.ErrnoException | null | undefined, address: string, family?: number ) => void) => void;type DNSResolveSrvFunction
type DNSResolveSrvFunction = ( hostname: string, callback: ( err: NodeJS.ErrnoException | null | undefined, records?: SrvRecord[] ) => void) => void;type NatMap
type NatMap = | { [key: string]: { host: string; port: number; }; } | NatMapFunction;type NodeRole
type NodeRole = 'master' | 'slave' | 'all';type RedisKey
type RedisKey = string | Buffer;type RedisOptions
type RedisOptions = CommonRedisOptions & SentinelConnectionOptions & StandaloneConnectionOptions;type RedisStatus
type RedisStatus = | 'wait' | 'reconnecting' | 'connecting' | 'connect' | 'ready' | 'close' | 'end';type RedisValue
type RedisValue = string | Buffer | number;type Result
type Result<T, Context extends ClientContext> = ResultTypes< T, Context>[Context['type']];type StandaloneConnectionOptions
type StandaloneConnectionOptions = Partial<TcpOptions & IpcOptions> & { disconnectTimeout?: number | undefined; tls?: ConnectionOptions | undefined;};Package Files (18)
- built/Command.d.ts
- built/Pipeline.d.ts
- built/Redis.d.ts
- built/ScanStream.d.ts
- built/cluster/ClusterOptions.d.ts
- built/cluster/index.d.ts
- built/cluster/util.d.ts
- built/connectors/AbstractConnector.d.ts
- built/connectors/SentinelConnector/SentinelIterator.d.ts
- built/connectors/SentinelConnector/index.d.ts
- built/connectors/SentinelConnector/types.d.ts
- built/connectors/StandaloneConnector.d.ts
- built/himport/types.d.ts
- built/index.d.ts
- built/redis/RedisOptions.d.ts
- built/tracing.d.ts
- built/types.d.ts
- built/utils/RedisCommander.d.ts
Dependencies (6)
Dev Dependencies (29)
- @ioredis/interface-generator
- @semantic-release/changelog
- @semantic-release/commit-analyzer
- @semantic-release/exec
- @semantic-release/git
- @types/chai
- @types/chai-as-promised
- @types/debug
- @types/mocha
- @types/node
- @types/redis-errors
- @types/sinon
- @typescript-eslint/eslint-plugin
- @typescript-eslint/parser
- chai
- chai-as-promised
- eslint
- eslint-config-prettier
- mocha
- nyc
- prettier
- semantic-release
- server-destroy
- sinon
- ts-node
- tsd
- typedoc
- typescript
- uuid
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/ioredis.
- Markdown[](https://www.jsdocs.io/package/ioredis)
- HTML<a href="https://www.jsdocs.io/package/ioredis"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 25831 ms. - Missing or incorrect documentation? Open an issue for this package.
