KeyscopeClient class
The main client implementation for communicating with a Redis/Valkey server.
- Implemented types
- Mixed-in types
- Available extensions
- AppendCommand
- AuthCommand
- BfAddCommand
- BfCardCommand
- BfExistsCommand
- BfInfoCommand
- BfInsertCommand
- BfLoadChunkCommand
- BfLoadCommand
- BfMAddCommand
- BfMExistsCommand
- BfReserveCommand
- BfScandumpCommand
- BitCountCommand
- BitFieldCommand
- BitFieldRoCommand
- BitOpCommand
- BitPosCommand
- BLMoveCommand
- BLMPopCommand
- BLPopCommand
- BRPopCommand
- BRPopLPushCommand
- BzMPopCommand
- BzPopMaxCommand
- BzPopMinCommand
- CfAddCommand
- CfAddNxCommand
- CfCountCommand
- CfDelCommand
- CfExistsCommand
- CfInfoCommand
- CfInsertCommand
- CfInsertNxCommand
- CfLoadChunkCommand
- CfMExistsCommand
- CfReserveCommand
- CfScanDumpCommand
- ClientCachingCommand
- ClientCapaCommand
- ClientCommand
- ClientGetNameCommand
- ClientGetRedirCommand
- ClientHelpCommand
- ClientIdCommand
- ClientImportSourceCommand
- ClientInfoCommand
- ClientKillCommand
- ClientListCommand
- ClientNoEvictCommand
- ClientNoTouchCommand
- ClientPauseCommand
- ClientReplyCommand
- ClientSetInfoCommand
- ClientSetNameCommand
- ClientTrackingCommand
- ClientTrackingInfoCommand
- ClientUnblockCommand
- ClientUnpauseCommand
- ClusterTemplateCommand
- CmsIncrByCommand
- CmsInfoCommand
- CmsInitByDimCommand
- CmsInitByProbCommand
- CmsMergeCommand
- CmsQueryCommand
- ConfigGetCommand
- ConfigRewriteCommand
- ConfigSetCommand
- CopyCommand
- DecrByCommand
- DecrCommand
- DelCommand
- DelExCommand
- DelIfEqCommand
- DigestCommand
- DiscardCommand
- DumpCommand
- EchoCommand
- ExecCommand
- ExistsCommand
- ExpireAtCommand
- ExpireCommand
- ExpireTimeCommand
- FlushAllCommand
- FlushDbCommand
- FtAggregateCommand
- FtAliasAddCommand
- FtAliasDelCommand
- FtAliasUpdateCommand
- FtAlterCommand
- FtConfigGetCommand
- FtConfigSetCommand
- FtCreateCommand
- FtCursorDelCommand
- FtCursorReadCommand
- FtDictAddCommand
- FtDictDelCommand
- FtDictDumpCommand
- FtDropIndexCommand
- FtExplainCliCommand
- FtExplainCommand
- FtHybridCommand
- FtInfoCommand
- FtListCommand
- FtProfileCommand
- FtSearchCommand
- FtSpellCheckCommand
- FtSynDumpCommand
- FtSynUpdateCommand
- FtTagValsCommand
- GeoAddCommand
- GeoDistCommand
- GeoHashCommand
- GeoPosCommand
- GeoRadiusByMemberCommand
- GeoRadiusByMemberRoCommand
- GeoRadiusCommand
- GeoRadiusRoCommand
- GeoSearchCommand
- GeoSearchStoreCommand
- GetBitCommand
- GetCommand
- GetDelCommand
- GetExCommand
- GetRangeCommand
- GetSetCommand
- HDelCommand
- HelloCommand
- HExistsCommand
- HExpireAtCommand
- HExpireCommand
- HExpireTimeCommand
- HGetAllCommand
- HGetCommand
- HGetDelCommand
- HGetExCommand
- HIncrByCommand
- HIncrByFloatCommand
- HKeysCommand
- HLenCommand
- HMGetCommand
- HMSetCommand
- HPersistCommand
- HPExpireAtCommand
- HPExpireCommand
- HPExpireTimeCommand
- HPTtlCommand
- HRandFieldCommand
- HScanCommand
- HSetCommand
- HSetExCommand
- HSetNxCommand
- HStrLenCommand
- HTtlCommand
- HValsCommand
- IncrByCommand
- IncrByFloatCommand
- IncrCommand
- InfoCommand
- InfoServerMetadataCommand
- JsonArrAppendCommand
- JsonArrAppendEnhancedCommand
- JsonArrIndexCommand
- JsonArrIndexEnhancedCommand
- JsonArrInsertCommand
- JsonArrInsertEnhancedCommand
- JsonArrLenCommand
- JsonArrLenEnhancedCommand
- JsonArrPopCommand
- JsonArrPopEnhancedCommand
- JsonArrTrimCommand
- JsonArrTrimEnhancedCommand
- JsonClearCommand
- JsonDebugCommand
- JsonDebugDepthCommand
- JsonDebugFieldsCommand
- JsonDebugHelpCommand
- JsonDebugKeyTableCheckCommand
- JsonDebugKeyTableCorruptCommand
- JsonDebugKeyTableDistributionCommand
- JsonDebugMaxDepthKeyCommand
- JsonDebugMaxSizeKeyCommand
- JsonDebugMemoryCommand
- JsonDebugTestSharedApiCommand
- JsonDelCommand
- JsonForgetCommand
- JsonGetCommand
- JsonMergeCommand
- JsonMergeForceCommand
- JsonMGetCommand
- JsonMSetCommand
- JsonNumIncrByCommand
- JsonNumMultByCommand
- JsonObjKeysCommand
- JsonObjKeysEnhancedCommand
- JsonObjLenCommand
- JsonRespCommand
- JsonSetCommand
- JsonStrAppendCommand
- JsonStrAppendEnhancedCommand
- JsonStrLenCommand
- JsonStrLenEnhancedCommand
- JsonToggleCommand
- JsonTypeCommand
- KeysCommand
- LcsCommand
- LIndexCommand
- LInsertCommand
- LLenCommand
- LMoveCommand
- LMPopCommand
- LPopCommand
- LPosCommand
- LPushCommand
- LPushXCommand
- LRangeCommand
- LRemCommand
- LSetCommand
- LTrimCommand
- MGetCommand
- MigrateCommand
- MoveCommand
- MSetCommand
- MSetExCommand
- MSetNxCommand
- MultiCommand
- ObjectEncodingCommand
- ObjectFreqCommand
- ObjectHelpCommand
- ObjectIdleTimeCommand
- ObjectRefCountCommand
- PersistCommand
- PExpireAtCommand
- PExpireCommand
- PExpireTimeCommand
- PfAddCommand
- PfCountCommand
- PfDebugCommand
- PfMergeCommand
- PfSelfTestCommand
- PSetExCommand
- PTtlCommand
- PubsubTemplateCommand
- QuitCommand
- RandomKeyCommand
- RenameCommand
- RenameNxCommand
- ResetCommand
- RestoreCommand
- RPopCommand
- RPopLPushCommand
- RPushCommand
- RPushXCommand
- SAddCommand
- SAFTemplateCommand
- ScanCliCommand
- ScanCommand
- SCardCommand
- SDiffCommand
- SDiffStoreCommand
- SelectCommand
- ServerVersionCheck
- SetBitCommand
- SetCommand
- SetExCommand
- SetNxCommand
- SetRangeCommand
- SInterCardCommand
- SInterCommand
- SInterStoreCommand
- SIsMemberCommand
- SMembersCommand
- SMIsMemberCommand
- SMoveCommand
- SortCommand
- SortRoCommand
- SPopCommand
- SRandMemberCommand
- SRemCommand
- SScanCommand
- StrLenCommand
- SubStrCommand
- SUnionCommand
- SUnionStoreCommand
- TDigestAddCommand
- TDigestByRankCommand
- TDigestByRevRankCommand
- TDigestCdfCommand
- TDigestCreateCommand
- TDigestInfoCommand
- TDigestMaxCommand
- TDigestMergeCommand
- TDigestMinCommand
- TDigestQuantileCommand
- TDigestRankCommand
- TDigestResetCommand
- TDigestRevRankCommand
- TDigestTrimmedMeanCommand
- TopKAddCommand
- TopKCountCommand
- TopKIncrByCommand
- TopKInfoCommand
- TopKListCommand
- TopKQueryCommand
- TopKReserveCommand
- TouchCommand
- TsAddCommand
- TsAlterCommand
- TsCreateCommand
- TsCreateRuleCommand
- TsDecrByCommand
- TsDelCommand
- TsDeleteRuleCommand
- TsGetCommand
- TsIncrByCommand
- TsInfoCommand
- TsMAddCommand
- TsMGetCommand
- TsMRangeCommand
- TsMRevRangeCommand
- TsQueryIndexCommand
- TsRangeCommand
- TsRevRangeCommand
- TtlCommand
- TypeCommand
- UnlinkCommand
- UnwatchCommand
- VAddCommand
- VCardCommand
- VDimCommand
- VEmbCommand
- VGetAttrCommand
- VInfoCommand
- VIsMemberCommand
- VLinksCommand
- VRandMemberCommand
- VRangeCommand
- VRemCommand
- VSetAttrCommand
- VSimCommand
- WaitAofCommand
- WaitCommand
- WatchCommand
- XAckCommand
- XAddCommand
- XAutoClaimCommand
- XClaimCommand
- XDelCommand
- XGroupCommand
- XGroupCreateCommand
- XGroupCreateConsumerCommand
- XGroupDelConsumerCommand
- XGroupDestroyCommand
- XGroupHelpCommand
- XGroupSetIdCommand
- XInfoCommand
- XInfoConsumersCommand
- XInfoGroupsCommand
- XInfoHelpCommand
- XInfoStreamCommand
- XLenCommand
- XPendingCommand
- XRangeCommand
- XReadCommand
- XReadGroupCommand
- XRevRangeCommand
- XSetIdCommand
- XTrimCommand
- ZAddCommand
- ZCardCommand
- ZCountCommand
- ZDiffCommand
- ZDiffStoreCommand
- ZIncrByCommand
- ZInterCardCommand
- ZInterCommand
- ZInterStoreCommand
- ZLexCountCommand
- ZMPopCommand
- ZMScoreCommand
- ZPopMaxCommand
- ZPopMinCommand
- ZRandMemberCommand
- ZRangeByLexCommand
- ZRangeByScoreCommand
- ZRangeCommand
- ZRangeStoreCommand
- ZRankCommand
- ZRemCommand
- ZRemRangeByLexCommand
- ZRemRangeByRankCommand
- ZRemRangeByScoreCommand
- ZRevRangeByLexCommand
- ZRevRangeByScoreCommand
- ZRevRangeCommand
- ZRevRankCommand
- ZScanCommand
- ZScoreCommand
- ZUnionCommand
- ZUnionStoreCommand
Constructors
-
KeyscopeClient({String host = '127.0.0.1', int port = 6379, String? username, String? password, Duration commandTimeout = const Duration(seconds: 10), Duration connectTimeout = const Duration(seconds: 10), bool useSsl = false, SecurityContext? sslContext, bool onBadCertificate(X509Certificate)?, int database = 0, ReadPreference readPreference = ReadPreference.master, LoadBalancingStrategy loadBalancingStrategy = LoadBalancingStrategy.roundRobin, List<
KeyscopeConnectionSettings> ? explicitReplicas, AddressMapper? addressMapper}) - Creates a new TR client instance.
- KeyscopeClient.fromSettings(KeyscopeConnectionSettings settings)
-
Creates a client using a KeyscopeConnectionSettings object.
factory
Properties
- allowRedisOnlyJsonMerge → bool
-
Implementation of JsonCommands InterfaceExposes the private variable to the Mixin via a getter.no setteroverride - currentConnectionConfig → KeyscopeConnectionSettings?
-
no setter
-
getServerName
→ Future<
String> -
Available on Commands, provided by the ServerVersionCheck extension
no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isConnected → bool
-
Returns true if the client has an active socket connection.
no setter
-
isDragonfly
→ Future<
bool> -
Available on Commands, provided by the ServerVersionCheck extension
no setter - isInTransaction → bool
-
no setterinherited
-
isRedis
→ Future<
bool> -
Available on Commands, provided by the ServerVersionCheck extension
no setter - isStateful → bool
-
Returns true if the client is in a stateful mode that makes it
unsuitable for reuse without a reset (e.g., Pub/Sub, Transaction).
no setter
-
isValkey
→ Future<
bool> -
Available on Commands, provided by the ServerVersionCheck extension
no setter - lastUsedConnectionConfig → KeyscopeConnectionSettings?
-
Returns the configuration of the connection used for the last command.
Useful for debugging load balancing strategies.
no setter
- metadata → ServerMetadata?
-
Returns the metadata of the connected server.
no setter
-
onConnected
→ Future<
void> -
A Future that completes once the connection and authentication are
successful.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setAllowRedisOnlyJsonMerge ← bool
-
no getteroverride
Methods
-
append(
String key, String value) → Future< int> -
Available on StringCommands, provided by the AppendCommand extension
APPEND key value -
auth(
String password, {String? username, bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the AuthCommand extension
AUTHusernamepassword Authenticates the connection. -
bfAdd(
String key, String item, {bool forceRun = false}) → Future< bool> -
Available on BloomFilterCommands, provided by the BfAddCommand extension
BF.ADD key item -
bfCard(
String key, {bool forceRun = false}) → Future< int> -
Available on BloomFilterCommands, provided by the BfCardCommand extension
BF.CARD key -
bfExists(
String key, String item, {bool forceRun = false}) → Future< bool> -
Available on BloomFilterCommands, provided by the BfExistsCommand extension
BF.EXISTS key item -
bfInfo(
String key, {String? option, bool forceRun = false}) → Future -
Available on BloomFilterCommands, provided by the BfInfoCommand extension
BF.INFO keyCAPACITY | SIZE | FILTERS | ITEMS | EXPANSION -
bfInsert(
String key, List< String> items, {int? capacity, double? error, int? expansion, bool noCreate = false, bool nonScaling = false, bool forceRun = false}) → Future<List< bool> > -
Available on BloomFilterCommands, provided by the BfInsertCommand extension
BF.INSERT keyCAPACITY capacityERROR errorEXPANSION expansion[NOCREATE][NONSCALING]ITEMS itemitem ... -
bfLoad(
String key, int iterator, Object data, {bool forceRun = false}) → Future -
Available on BloomFilterCommands, provided by the BfLoadCommand extension
BF.LOAD key iterator data -
bfLoadChunk(
String key, int iterator, Object data, {bool forceRun = false}) → Future -
Available on BloomFilterCommands, provided by the BfLoadChunkCommand extension
BF.LOADCHUNK key iterator data -
bfMAdd(
String key, List< String> items, {bool forceRun = false}) → Future<List< bool> > -
Available on BloomFilterCommands, provided by the BfMAddCommand extension
BF.MADD key itemitem ... -
bfMExists(
String key, List< String> items, {bool forceRun = false}) → Future<List< bool> > -
Available on BloomFilterCommands, provided by the BfMExistsCommand extension
BF.MEXISTS key itemitem ... -
bfReserve(
String key, double errorRate, int capacity, {int? expansion, bool nonScaling = false, bool forceRun = false}) → Future -
Available on BloomFilterCommands, provided by the BfReserveCommand extension
BF.RESERVE key error_rate capacityEXPANSION expansion[NONSCALING] -
bfScandump(
String key, int iterator, {bool forceRun = false}) → Future< List> -
Available on BloomFilterCommands, provided by the BfScandumpCommand extension
BF.SCANDUMP key iterator -
bitCount(
String key, {int? start, int? end, bool useBit = false}) → Future< int> -
Available on BitmapCommands, provided by the BitCountCommand extension
BITCOUNT key [start endBYTE | BIT] -
bitField(
String key, List< BitFieldOp> operations) → Future<List< int?> > -
Available on BitmapCommands, provided by the BitFieldCommand extension
BITFIELD keyGET type offsetSET type offset valueINCRBY type offset incrementOVERFLOW WRAP|SAT|FAIL -
bitFieldRo(
String key, List< BitFieldOp> operations) → Future<List< int?> > -
Available on BitmapCommands, provided by the BitFieldRoCommand extension
BITFIELD_RO keyGET type offset -
bitOp(
String operation, String destKey, List< String> keys) → Future<int> -
Available on BitmapCommands, provided by the BitOpCommand extension
BITOP operation destkey keykey ... -
bitPos(
String key, int bit, {int? start, int? end, bool useBit = false}) → Future< int> -
Available on BitmapCommands, provided by the BitPosCommand extension
BITPOS key bit [start [endBYTE | BIT]] -
bLMove(
String source, String destination, String whereFrom, String whereTo, double timeout) → Future< String?> -
Available on ListCommands, provided by the BLMoveCommand extension
BLMOVE source destination<LEFT | RIGHT><LEFT | RIGHT>timeout -
bLMPop(
double timeout, List< String> keys, String direction, {int? count}) → Future -
Available on ListCommands, provided by the BLMPopCommand extension
BLMPOP timeout numkeys keykey ...<LEFT | RIGHT>COUNT count -
bLPop(
List< String> keys, double timeout) → Future<List< String> ?> -
Available on ListCommands, provided by the BLPopCommand extension
BLPOP keykey ...timeout -
bRPop(
List< String> keys, double timeout) → Future<List< String> ?> -
Available on ListCommands, provided by the BRPopCommand extension
BRPOP keykey ...timeout -
bRPopLPush(
String source, String destination, double timeout) → Future< String?> -
Available on ListCommands, provided by the BRPopLPushCommand extension
BRPOPLPUSH source destination timeout -
bzMPop(
double timeout, List< String> keys, String modifier, {int? count}) → Future -
Available on SortedSetCommands, provided by the BzMPopCommand extension
BZMPOP timeout numkeys keykey ...<MIN | MAX>COUNT count -
bzPopMax(
List< String> keys, double timeout) → Future -
Available on SortedSetCommands, provided by the BzPopMaxCommand extension
BZPOPMAX keykey ...timeout -
bzPopMin(
List< String> keys, double timeout) → Future -
Available on SortedSetCommands, provided by the BzPopMinCommand extension
BZPOPMIN keykey ...timeout -
cfAdd(
String key, String item, {bool forceRun = false}) → Future< bool> -
Available on CuckooFilterCommands, provided by the CfAddCommand extension
CF.ADD key item -
cfAddNx(
String key, String item, {bool forceRun = false}) → Future< bool> -
Available on CuckooFilterCommands, provided by the CfAddNxCommand extension
CF.ADDNX key item -
cfCount(
String key, String item, {bool forceRun = false}) → Future< int> -
Available on CuckooFilterCommands, provided by the CfCountCommand extension
CF.COUNT key item -
cfDel(
String key, String item, {bool forceRun = false}) → Future< bool> -
Available on CuckooFilterCommands, provided by the CfDelCommand extension
CF.DEL key item -
cfExists(
String key, String item, {bool forceRun = false}) → Future< bool> -
Available on CuckooFilterCommands, provided by the CfExistsCommand extension
CF.EXISTS key item -
cfInfo(
String key, {bool forceRun = false}) → Future -
Available on CuckooFilterCommands, provided by the CfInfoCommand extension
CF.INFO key -
cfInsert(
String key, List< String> items, {int? capacity, bool noCreate = false, bool forceRun = false}) → Future<List< bool> > -
Available on CuckooFilterCommands, provided by the CfInsertCommand extension
CF.INSERT keyCAPACITY capacity[NOCREATE]ITEMS itemitem ... -
cfInsertNx(
String key, List< String> items, {int? capacity, bool noCreate = false, bool forceRun = false}) → Future<List< bool> > -
Available on CuckooFilterCommands, provided by the CfInsertNxCommand extension
CF.INSERTNX keyCAPACITY capacity[NOCREATE]ITEMS itemitem ... -
cfLoadChunk(
String key, int iterator, Object data, {bool forceRun = false}) → Future -
Available on CuckooFilterCommands, provided by the CfLoadChunkCommand extension
CF.LOADCHUNK key iterator data (Acceptsdataas an Object to prevent binary corruption, identical to Bloom Filter approach) -
cfMExists(
String key, List< String> items, {bool forceRun = false}) → Future<List< bool> > -
Available on CuckooFilterCommands, provided by the CfMExistsCommand extension
CF.MEXISTS key itemitem ... -
cfReserve(
String key, int capacity, {int? bucketSize, int? maxIterations, int? expansion, bool forceRun = false}) → Future -
Available on CuckooFilterCommands, provided by the CfReserveCommand extension
CF.RESERVE key capacityBUCKETSIZE bucketsizeMAXITERATIONS maxiterationsEXPANSION expansion -
cfScanDump(
String key, int iterator, {bool forceRun = false}) → Future< List> -
Available on CuckooFilterCommands, provided by the CfScanDumpCommand extension
CF.SCANDUMP key iterator -
checkValkeySupport(
String commandName, {bool forceRun = false}) → Future< void> -
Available on Commands, provided by the ServerVersionCheck extension
Helper to check if the command is supported in Valkey. -
checkValkeySupportExtended(
String commandName, String subCommandName, {bool forceRun = false}) → Future< void> -
Available on Commands, provided by the ServerVersionCheck extension
Helper to check if the command is supported in Valkey. -
clearTransactionQueueInternal(
) → void -
inherited
-
client(
List< String> args, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientCommand extension
CLIENT ... Raw entry point for generic CLIENT commands if not covered by specific extensions. -
clientCaching(
bool enable, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientCachingCommand extension
CLIENT CACHING YES|NO Controls whether the client will receive tracking notifications for the next keys fetched. -
clientCapa(
List< String> capabilities, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientCapaCommand extension
CLIENT CAPA capabilitycapability ...Notifies the Redis server of the client's capabilities. -
clientGetName(
{bool forceRun = false}) → Future< String?> -
Available on ConnectionCommands, provided by the ClientGetNameCommand extension
CLIENT GETNAME Returns the name of the current connection. Returns null if no name is set. -
clientGetRedir(
{bool forceRun = false}) → Future< int> -
Available on ConnectionCommands, provided by the ClientGetRedirCommand extension
CLIENT GETREDIR Returns the client ID we are redirecting our tracking notifications to. -
clientHelp(
{bool forceRun = false}) → Future< List< String> > -
Available on ConnectionCommands, provided by the ClientHelpCommand extension
CLIENT HELP Returns a summary of CLIENT subcommands. -
clientId(
{bool forceRun = false}) → Future< int> -
Available on ConnectionCommands, provided by the ClientIdCommand extension
CLIENT ID Returns the client ID for the current connection. -
clientImportSource(
List< String> args, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientImportSourceCommand extension
CLIENT IMPORT-SOURCE (Available in some Valkey/Redis environments for replication/import flows). We expose it generically as it often takes varying arguments depending on the context. -
clientInfo(
{bool forceRun = false}) → Future< String> -
Available on ConnectionCommands, provided by the ClientInfoCommand extension
CLIENT INFO Returns information and statistics about the current client connection. -
clientKill(
{String? address, int? id, String? type, String? user, String? addr, String? laddr, String? skipMe, bool forceRun = false}) → Future< int> -
Available on ConnectionCommands, provided by the ClientKillCommand extension
CLIENT KILLip:portID client-idTYPE normal|master|replica|pubsubUSER usernameADDR ip:portLADDR ip:portSKIPME yes/noCloses a given client connection. Returns the number of clients killed. -
clientList(
{String? type, List< int> ? ids, bool forceRun = false}) → Future<String> -
Available on ConnectionCommands, provided by the ClientListCommand extension
CLIENT LISTTYPE type[ID client-idclient-id ...] Returns information and statistics about the client connections server. -
clientNoEvict(
bool enable, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientNoEvictCommand extension
CLIENT NO-EVICT ON|OFF Sets the client eviction mode for the current connection. -
clientNoTouch(
bool enable, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientNoTouchCommand extension
CLIENT NO-TOUCH ON|OFF Controls whether commands sent by the client affect the LRU/LFU of accessed keys. -
clientPause(
int timeout, {String? mode, bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientPauseCommand extension
CLIENT PAUSE timeoutWRITE|ALLSuspends all the Redis clients for the specified amount of milliseconds.modecan be 'WRITE' or 'ALL' (default). -
clientReply(
String mode, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientReplyCommand extension
CLIENT REPLY ON|OFF|SKIP Instructs the server whether to reply to commands. -
clientSetInfo(
String attr, String value, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientSetInfoCommand extension
CLIENT SETINFO attr value Assigns various info attributes to the current connection (e.g., lib-name, lib-ver). -
clientSetName(
String connectionName, {bool forceRun = false}) → Future< bool> -
Available on ConnectionCommands, provided by the ClientSetNameCommand extension
CLIENT SETNAME connection-name Assigns a name to the current connection. -
clientTracking(
bool enable, {int? redirect, List< String> ? prefixes, bool bcast = false, bool optIn = false, bool optOut = false, bool noLoop = false, bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientTrackingCommand extension
CLIENT TRACKING ON|OFFREDIRECT client-idPREFIX prefix ...[BCAST][OPTIN][OPTOUT][NOLOOP]Enables or disables the tracking feature of the Redis server. -
clientTrackingInfo(
{bool forceRun = false}) → Future< List> -
Available on ConnectionCommands, provided by the ClientTrackingInfoCommand extension
CLIENT TRACKINGINFO Returns information about the current client's tracking state. -
clientUnblock(
int clientId, {String? type, bool forceRun = false}) → Future< int> -
Available on ConnectionCommands, provided by the ClientUnblockCommand extension
CLIENT UNBLOCK client-idTIMEOUT|ERRORUnblocks a client blocked in a blocking command from a different connection. -
clientUnpause(
{bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ClientUnpauseCommand extension
CLIENT UNPAUSE Resumes processing of clients that were paused by CLIENT PAUSE. -
close(
) → Future< void> -
Closes the connection to the server.
override
-
clusterSlots(
) → Future< List< ClusterSlotRange> > -
Fetches the cluster topology information from the server.
override
-
cmsIncrBy(
String key, Map< String, int> increments, {bool forceRun = false}) → Future<List< int> > -
Available on CountMinSketchCommands, provided by the CmsIncrByCommand extension
CMS.INCRBY key item incrementitem increment ...Increases the count of one or more items by increment. -
cmsInfo(
String key, {bool forceRun = false}) → Future -
Available on CountMinSketchCommands, provided by the CmsInfoCommand extension
CMS.INFO key Returns information about a sketch. -
cmsInitByDim(
String key, int width, int depth, {bool forceRun = false}) → Future -
Available on CountMinSketchCommands, provided by the CmsInitByDimCommand extension
CMS.INITBYDIM key width depth Initializes a Count-Min Sketch to dimensions specified by width and depth. -
cmsInitByProb(
String key, double error, double probability, {bool forceRun = false}) → Future -
Available on CountMinSketchCommands, provided by the CmsInitByProbCommand extension
CMS.INITBYPROB key error probability Initializes a Count-Min Sketch to accommodate requested error and probability. -
cmsMerge(
String dest, List< String> sources, {List<int> ? weights, bool forceRun = false}) → Future -
Available on CountMinSketchCommands, provided by the CmsMergeCommand extension
CMS.MERGE dest numKeys srcsrc ...[WEIGHTS weightweight ...] Merges several sketches into one sketch. -
cmsQuery(
String key, List< String> items, {bool forceRun = false}) → Future<List< int> > -
Available on CountMinSketchCommands, provided by the CmsQueryCommand extension
CMS.QUERY key itemitem ...Returns count for one or more items in a sketch. -
configGet(
String parameter) → Future< String?> -
Available on ServerCommands, provided by the ConfigGetCommand extension
-
configSet(
String parameter, String value) → Future< String> -
Available on ServerCommands, provided by the ConfigSetCommand extension
CONFIG SET parameter value -
connect(
{String? host, int? port, String? username, String? password}) → Future< void> -
Connects to the Redis/Valkey server.
override
-
copy(
String source, String destination, {int? destinationDb, bool replace = false}) → Future< bool> -
Available on GenericCommands, provided by the CopyCommand extension
COPY source destinationDB destination-db[REPLACE] -
decr(
String key) → Future< int> -
Available on StringCommands, provided by the DecrCommand extension
DECR key -
decr(
String key) → Future< int> -
Decrements the number stored at
keyby one.override -
decrBy(
String key, int decrement) → Future< int> -
Available on StringCommands, provided by the DecrByCommand extension
DECRBY key decrement -
decrBy(
String key, int amount) → Future< int> -
Decrements the number stored at
keybyamount.override -
del(
List< String> keys) → Future<int> -
Available on GenericCommands, provided by the DelCommand extension
DEL keykey ... -
del(
List< String> keys) → Future<int> -
Deletes the specified
keys.override -
delEx(
String key, {String? ifEq, String? ifNe, String? ifDeq, String? ifDne, bool forceRun = false}) → Future< int> -
Available on StringCommands, provided by the DelExCommand extension
DELEX keyIFEQ ifeq-value | IFNE ifne-value | IFDEQ ifdeq-digest | IFDNE ifdne-digest -
delIfEq(
String key, String value, {bool forceRun = false}) → Future< int> -
Available on StringCommands, provided by the DelIfEqCommand extension
DELIFEQ key value -
deprecatedIsJsonModuleLoaded(
) → Future< bool> -
Checks if the JSON module is loaded on the server.
inherited
-
deprecatedJsonGet(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonGetCommand extension
JSON.GET keypath ... -
deprecatedJsonSet(
{required String key, required String path, required dynamic data, bool nx = false, bool xx = false}) → Future< void> -
Available on JsonCommands, provided by the JsonSetCommand extension
JSON.SET key path valueNX | XX -
digest(
String key, {bool forceRun = false}) → Future< String?> -
Available on StringCommands, provided by the DigestCommand extension
DIGEST key -
discard(
) → Future< String> -
Discards all commands queued after
multi().override -
discard(
) → Future< String> -
Available on TransactionsCommands, provided by the DiscardCommand extension
-
disconnect(
) → Future< void> -
Provides a alternative name for
close(). Internally callsclose().override -
doIntegratedCommandChecker(
String commandName, String? subCommandName, {bool useThrow = true}) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
-
dump(
String key) → Future< List< int> ?> -
Available on GenericCommands, provided by the DumpCommand extension
DUMP key -
echo(
String message) → Future< String> -
Echoes the given
messageback from the server.override -
echo(
String message, {bool forceRun = false}) → Future< String> -
Available on ConnectionCommands, provided by the EchoCommand extension
ECHO message Echoes the given string. -
exec(
) → Future< List?> -
Executes all commands queued after
multi().override -
exec(
) → Future< List?> -
Available on TransactionsCommands, provided by the ExecCommand extension
-
execute(
List command) → Future -
v2.2.0Routing Logicoverride -
executeInt(
List< String> command) → Future<int> -
Helper to execute a command that is expected to return an Integer.
inherited
-
executeString(
List< String> command) → Future<String> -
Helper: Execute command and expect a String result.
inherited
-
exists(
dynamic keys) → Future< int> -
Checks if
keysexists.override -
exists(
dynamic keys) → Future< int> -
Available on GenericCommands, provided by the ExistsCommand extension
EXISTS keykey ... -
expire(
String key, int seconds, {bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future< int> -
Sets a timeout on
keyin seconds.override -
expire(
String key, int seconds, {bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future< int> -
Available on GenericCommands, provided by the ExpireCommand extension
EXPIRE key secondsNX|XX|GT|LT -
expireAt(
String key, int timestamp, {bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future< bool> -
Available on GenericCommands, provided by the ExpireAtCommand extension
EXPIREAT key timestampNX|XX|GT|LT -
expireTime(
String key) → Future< int> -
Available on GenericCommands, provided by the ExpireTimeCommand extension
EXPIRETIME key -
fetchServerMetadata(
) → Future< ServerMetadata> - Abstract method to fetch metadata from the server (e.g., using INFO command). If not connected, this should throw an exception.
-
flushAll(
{bool async = false}) → Future< String> -
Available on ServerCommands, provided by the FlushAllCommand extension
FLUSHALLASYNC | SYNC -
flushDb(
{bool async = false}) → Future< String> -
Available on ServerCommands, provided by the FlushDbCommand extension
FLUSHDBASYNC | SYNC -
ftAggregate(
String index, String query, {List options = const [], bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtAggregateCommand extension
FT.AGGREGATE index queryoptions ... -
ftAliasAdd(
String alias, String index, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtAliasAddCommand extension
FT.ALIASADD alias index -
ftAliasDel(
String alias, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtAliasDelCommand extension
FT.ALIASDEL alias -
ftAliasUpdate(
String alias, String index, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtAliasUpdateCommand extension
FT.ALIASUPDATE alias index -
ftAlter(
String index, List options, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtAlterCommand extension
FT.ALTER indexoptions ...SCHEMA ADD field options ... -
ftConfigGet(
String option, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtConfigGetCommand extension
FT.CONFIG GET option -
ftConfigSet(
String option, String value, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtConfigSetCommand extension
FT.CONFIG SET option value -
ftCreate(
String index, {List options = const [], required List schema}) → Future -
Available on SearchCommands, provided by the FtCreateCommand extension
FT.CREATE indexON HASH|JSON[PREFIX count prefixprefix ...]LANGUAGE default_lang... schema -
ftCursorDel(
String index, int cursorId, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtCursorDelCommand extension
FT.CURSOR DEL index cursor_id -
ftCursorRead(
String index, int cursorId, {int? count, bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtCursorReadCommand extension
FT.CURSOR READ index cursor_idCOUNT read_size -
ftDictAdd(
String dict, List< String> terms, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtDictAddCommand extension
FT.DICTADD dict termterm ... -
ftDictDel(
String dict, List< String> terms, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtDictDelCommand extension
FT.DICTDEL dict termterm ... -
ftDictDump(
String dict, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtDictDumpCommand extension
FT.DICTDUMP dict -
ftDropIndex(
String index, {bool dd = false}) → Future -
Available on SearchCommands, provided by the FtDropIndexCommand extension
FT.DROPINDEX index[DD] -
ftExplain(
String index, String query, {int? dialect, bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtExplainCommand extension
FT.EXPLAIN index queryDIALECT dialect -
ftExplainCli(
String index, String query, {int? dialect, bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtExplainCliCommand extension
FT.EXPLAINCLI index queryDIALECT dialect -
ftHybrid(
String index, List args, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtHybridCommand extension
FT.HYBRID ... -
ftInfo(
String index) → Future< Map< String, dynamic> > -
Available on SearchCommands, provided by the FtInfoCommand extension
FT.INFO index -
ftList(
) → Future< List< String> > -
Available on SearchCommands, provided by the FtListCommand extension
FT._LIST -
ftProfile(
String index, {required String type, required String query, bool limited = false, bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtProfileCommand extension
FT.PROFILE indexSEARCH|AGGREGATE[LIMITED]QUERY query -
ftSearch(
String index, String query, {List options = const []}) → Future -
Available on SearchCommands, provided by the FtSearchCommand extension
FT.SEARCH index queryoptions ...FT.SEARCH index query[NOCONTENT][VERBATIM][NOSTOPWORDS]WITHSCORESWITHPAYLOADSSORBY ...LIMIT ... -
ftSpellCheck(
String index, String query, {List options = const [], bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtSpellCheckCommand extension
FT.SPELLCHECK index queryDISTANCE distTERMS ... -
ftSynDump(
String index, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtSynDumpCommand extension
FT.SYNDUMP index -
ftSynUpdate(
String index, String groupId, List< String> terms, {bool skipInitialScan = false, bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtSynUpdateCommand extension
FT.SYNUPDATE index synonym_group_id[SKIPINITIALSCAN]termterm ... -
ftTagVals(
String index, String fieldName, {bool forceRun = false}) → Future -
Available on SearchCommands, provided by the FtTagValsCommand extension
FT.TAGVALS index field_name -
geoAdd(
String key, List< GeoLocation> items, {bool nx = false, bool xx = false, bool ch = false}) → Future<int> -
Available on GeospatialIndicesCommands, provided by the GeoAddCommand extension
GEOADD keyNX | XX[CH]longitude latitude memberlongitude latitude member ... -
geoDist(
String key, String member1, String member2, [String unit = 'm']) → Future< double?> -
Available on GeospatialIndicesCommands, provided by the GeoDistCommand extension
GEODIST key member1 member2m|km|ft|mi -
geoHash(
String key, List< String> members) → Future<List< String?> > -
Available on GeospatialIndicesCommands, provided by the GeoHashCommand extension
GEOHASH key membermember ... -
geoPos(
String key, List< String> members) → Future<List< List< >double> ?> -
Available on GeospatialIndicesCommands, provided by the GeoPosCommand extension
GEOPOS key membermember ... -
geoRadius(
String key, double longitude, double latitude, double radius, String unit, {GeoRadiusOptions? options, String? store, String? storeDist}) → Future -
Available on GeospatialIndicesCommands, provided by the GeoRadiusCommand extension
GEORADIUS key longitude latitude radius m|km|ft|miWITHCOORDWITHDISTWITHHASH[COUNT countANY]ASC|DESCSTORE keySTOREDIST key -
geoRadiusByMember(
String key, String member, double radius, String unit, {GeoRadiusOptions? options, String? store, String? storeDist}) → Future -
Available on GeospatialIndicesCommands, provided by the GeoRadiusByMemberCommand extension
GEORADIUSBYMEMBER key member radius m|km|ft|miWITHCOORDWITHDISTWITHHASH[COUNT countANY]ASC|DESCSTORE keySTOREDIST key -
geoRadiusByMemberRo(
String key, String member, double radius, String unit, {GeoRadiusOptions? options}) → Future -
Available on GeospatialIndicesCommands, provided by the GeoRadiusByMemberRoCommand extension
GEORADIUSBYMEMBER_RO key member radius m|km|ft|miWITHCOORDWITHDISTWITHHASH[COUNT countANY]ASC|DESC -
geoRadiusRo(
String key, double longitude, double latitude, double radius, String unit, {GeoRadiusOptions? options}) → Future -
Available on GeospatialIndicesCommands, provided by the GeoRadiusRoCommand extension
GEORADIUS_RO key longitude latitude radius m|km|ft|miWITHCOORDWITHDISTWITHHASH[COUNT countANY]ASC|DESC -
geoSearch(
String key, {String? fromMember, List< double> ? fromLonLat, List? byRadius, List? byBox, GeoRadiusOptions? options}) → Future -
Available on GeospatialIndicesCommands, provided by the GeoSearchCommand extension
GEOSEARCH keyFROMMEMBER memberFROMLONLAT longitude latitudeBYRADIUS radius m|km|ft|miBYBOX width height m|km|ft|miASC|DESC[COUNT countANY][WITHCOORD][WITHDIST][WITHHASH] -
geoSearchStore(
String destination, String source, {String? fromMember, List< double> ? fromLonLat, List? byRadius, List? byBox, String? sort, int? count, bool any = false, bool storeDist = false}) → Future<int> -
Available on GeospatialIndicesCommands, provided by the GeoSearchStoreCommand extension
GEOSEARCHSTORE destination sourceFROMMEMBER memberFROMLONLAT longitude latitudeBYRADIUS radius m|km|ft|miBYBOX width height m|km|ft|miASC|DESC[COUNT countANY][STOREDIST] -
get(
String key) → Future< String?> -
Gets the value of
key.override -
get(
String key) → Future< String?> -
Available on StringCommands, provided by the GetCommand extension
GET key -
getBit(
String key, int offset) → Future< int> -
Available on BitmapCommands, provided by the GetBitCommand extension
GETBIT key offset -
getDel(
String key) → Future< String?> -
Available on StringCommands, provided by the GetDelCommand extension
GETDEL key -
getEx(
String key, {int? ex, int? px, int? exAt, int? pxAt, bool persist = false}) → Future< String?> -
Available on StringCommands, provided by the GetExCommand extension
GETEX keyEX seconds | PX milliseconds | EXAT timestamp | PXAT timestamp | PERSIST -
getModuleList(
) → Future< List< Map< >String, dynamic> > -
Returns a list of loaded modules and their details.
inherited
-
getOrFetchMetadata(
) → Future< ServerMetadata> -
Returns the cached metadata if available.
If not, triggers
fetchServerMetadatato load it on-demand.inherited -
getRange(
String key, int start, int end) → Future< String> -
Available on StringCommands, provided by the GetRangeCommand extension
GETRANGE key start end -
getServerName(
) → Future< String?> -
getServerVersion(
) → Future< String?> -
getSet(
String key, String value) → Future< String?> -
Available on StringCommands, provided by the GetSetCommand extension
GETSET key value -
getTransactionQueueInternal(
) → List< List< String> > -
inherited
-
hDel(
String key, List< String> fields) → Future<int> -
Available on HashCommands, provided by the HDelCommand extension
HDEL key fieldfield ... -
hello(
int protover, {String? authUsername, String? authPassword, String? clientName, bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the HelloCommand extension
HELLO protoverAUTH username passwordSETNAME clientnameSwitches the protocol to the specified version (e.g., RESP2 or RESP3). -
hExists(
String key, String field) → Future< bool> -
Available on HashCommands, provided by the HExistsCommand extension
HEXISTS key field -
hExpire(
String key, int seconds, {required List< String> fields, bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future<List< int> > -
Available on HashCommands, provided by the HExpireCommand extension
HEXPIRE key secondsNX | XX | GT | LTFIELDS numfields fieldfield ... -
hExpireAt(
String key, int timestamp, {required List< String> fields, bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future<List< int> > -
Available on HashCommands, provided by the HExpireAtCommand extension
HEXPIREAT key timestampNX | XX | GT | LTFIELDS numfields fieldfield ... -
hExpireTime(
String key, List< String> fields) → Future<List< int> > -
Available on HashCommands, provided by the HExpireTimeCommand extension
HEXPIRETIME key FIELDS numfields fieldfield ... -
hGet(
String key, String field) → Future -
Available on HashCommands, provided by the HGetCommand extension
HGET key field -
hGet(
String key, String field) → Future -
Gets the value of
fieldin the hash stored atkey.override -
hget(
String key, String field) → Future -
override
-
hGetAll(
String key) → Future< Map< String, String> > -
Gets all fields and values of the hash stored at
key.override -
hGetAll(
String key) → Future< Map< String, String> > -
Available on HashCommands, provided by the HGetAllCommand extension
HGETALL key -
hgetall(
String key) → Future< Map< String, String> > -
override
-
hGetDel(
String key, List< String> fields) → Future<List< String?> > -
Available on HashCommands, provided by the HGetDelCommand extension
HGETDEL key FIELDS numfields fieldfield ... -
hGetEx(
String key, List< String> fields, {int? ex, int? px, int? exAt, int? pxAt, bool persist = false}) → Future<List< String?> > -
Available on HashCommands, provided by the HGetExCommand extension
HGETEX keyEX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | PERSISTFIELDS numfields fieldfield ... -
hIncrBy(
String key, String field, int increment) → Future< int> -
Available on HashCommands, provided by the HIncrByCommand extension
HINCRBY key field increment -
hIncrByFloat(
String key, String field, double increment) → Future< double> -
Available on HashCommands, provided by the HIncrByFloatCommand extension
HINCRBYFLOAT key field increment -
hKeys(
String key) → Future< List< String> > -
Available on HashCommands, provided by the HKeysCommand extension
HKEYS key -
hLen(
String key) → Future< int> -
Available on HashCommands, provided by the HLenCommand extension
HLEN key -
hMGet(
String key, List< String> fields) → Future<List< String?> > -
Available on HashCommands, provided by the HMGetCommand extension
HMGET key fieldfield ... -
hMSet(
String key, Map< String, dynamic> data) → Future<int> -
Available on HashCommands, provided by the HMSetCommand extension
HMSET key field valuefield value ... -
hPersist(
String key, List< String> fields) → Future<List< int> > -
Available on HashCommands, provided by the HPersistCommand extension
HPERSIST key FIELDS numfields fieldfield ... -
hPExpire(
String key, int milliseconds, {required List< String> fields, bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future<List< int> > -
Available on HashCommands, provided by the HPExpireCommand extension
HPEXPIRE key millisecondsNX | XX | GT | LTFIELDS numfields fieldfield ... -
hPExpireAt(
String key, int millisecondsTimestamp, {required List< String> fields, bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future<List< int> > -
Available on HashCommands, provided by the HPExpireAtCommand extension
HPEXPIREAT key milliseconds-timestampNX | XX | GT | LTFIELDS numfields fieldfield ... -
hPExpireTime(
String key, List< String> fields) → Future<List< int> > -
Available on HashCommands, provided by the HPExpireTimeCommand extension
HPEXPIRETIME key FIELDS numfields fieldfield ... -
hPTtl(
String key, List< String> fields) → Future<List< int> > -
Available on HashCommands, provided by the HPTtlCommand extension
HPTTL key FIELDS numfields fieldfield ... -
hRandField(
String key, {int? count, bool withValues = false}) → Future -
Available on HashCommands, provided by the HRandFieldCommand extension
HRANDFIELD key [countWITHVALUES] -
hScan(
String key, String cursor, {String? match, int? count}) → Future< List> -
Available on HashCommands, provided by the HScanCommand extension
HSCAN key cursorMATCH patternCOUNT count -
hSet(
String key, Map< String, dynamic> data) → Future<int> -
Sets field in the hash stored at
keyto value.override -
hSet(
String key, Map< String, dynamic> data) → Future<int> -
Available on HashCommands, provided by the HSetCommand extension
HSET key field valuefield value ... -
hset(
String key, String field, String value) → Future< int> -
Sets multiple field-value pairs in the hash stored at key.
Returns the number of fields that were added.
Usage:
override
-
hSetEx(
String key, int seconds, String field, String value) → Future< bool> -
Available on HashCommands, provided by the HSetExCommand extension
HSETEX key seconds field value -
hSetNx(
String key, String field, String value) → Future< bool> -
Available on HashCommands, provided by the HSetNxCommand extension
HSETNX key field value -
hStrLen(
String key, String field) → Future< int> -
Available on HashCommands, provided by the HStrLenCommand extension
HSTRLEN key field -
hTtl(
String key, List< String> fields) → Future<List< int> > -
Available on HashCommands, provided by the HTtlCommand extension
HTTL key FIELDS numfields fieldfield ... -
hVals(
String key) → Future< List< String> > -
Available on HashCommands, provided by the HValsCommand extension
HVALS key -
incr(
String key) → Future< int> -
Available on StringCommands, provided by the IncrCommand extension
INCR key -
incr(
String key) → Future< int> -
Increments the number stored at
keyby one.override -
incrBy(
String key, int increment) → Future< int> -
Available on StringCommands, provided by the IncrByCommand extension
INCRBY key increment -
incrBy(
String key, int amount) → Future< int> -
Increments the number stored at
keybyamount.override -
incrByFloat(
String key, double increment) → Future< double> -
Available on StringCommands, provided by the IncrByFloatCommand extension
INCRBYFLOAT key increment -
info(
{List< String> ? section}) → Future<String> -
Available on ServerCommands, provided by the InfoCommand extension
INFO [sectionsection ...] -
info(
{List< String> ? section}) → Future<String> -
inherited
-
infoServerMetadata(
) → Future< ServerMetadata> -
Available on ServerCommands, provided by the InfoServerMetadataCommand extension
Executes 'INFO SERVER' and parses the result into ServerMetadata. -
isDragonfly136OrLater(
) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
Check if Dragonfly version is at least 1.36.0 -
isDragonflyAtLeast(
String dfVersion) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
Check if Dragonfly version is at least a mapped version -
isJsonModuleLoaded(
) → Future< bool> -
Checks if the JSON module is loaded on the server.
inherited
-
isRedis70OrLater(
) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
Returns true if the server is Redis and version is 7.0.0 or later. -
isRedis80OrLater(
) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
-
isRedis82OrLater(
) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
-
isRedisServer(
) → Future< bool> - Helper to check server type based on metadata.
-
isValkey70OrLater(
) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
Returns true if the server is Valkey and version is 7.0.0 or later. -
isValkey70To80(
) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
Returns true if the server is Valkey and version is between 7.0.0 (inclusive) and 8.0.0 (exclusive). -
isValkey80OrLater(
) → Future< bool> -
Available on Commands, provided by the ServerVersionCheck extension
Returns true if the server is Valkey and version is 8.0.0 or later. -
isValkeyServer(
) → Future< bool> - Checks if the connected server is Valkey.
-
jsonArrAppend(
{required String key, String path = r'$', required List values}) → Future -
Available on JsonCommands, provided by the JsonArrAppendCommand extension
JSON.ARRAPPEND keypathvaluevalue ... -
jsonArrAppendEnhanced(
{required String key, required List< String> paths, required dynamic value}) → Future<List< int?> ?> -
Available on JsonCommands, provided by the JsonArrAppendEnhancedCommand extension
JSON.ARRAPPEND (Enhanced) -
jsonArrIndex(
{required String key, required String path, required dynamic value, int? start, int? stop}) → Future -
Available on JsonCommands, provided by the JsonArrIndexCommand extension
JSON.ARRINDEX key path value [startstop] -
jsonArrIndexEnhanced(
{required String key, required List< String> paths, required dynamic value, int? start, int? stop}) → Future<List< int?> ?> -
Available on JsonCommands, provided by the JsonArrIndexEnhancedCommand extension
JSON.ARRINDEX (Enhanced) -
jsonArrInsert(
{required String key, required String path, required int index, required List values}) → Future -
Available on JsonCommands, provided by the JsonArrInsertCommand extension
JSON.ARRINSERT key path index valuevalue ... -
jsonArrInsertEnhanced(
{required String key, required List< String> paths, required int index, required List values}) → Future<List< int?> ?> -
Available on JsonCommands, provided by the JsonArrInsertEnhancedCommand extension
JSON.ARRINSERT (Enhanced) -
jsonArrLen(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonArrLenCommand extension
JSON.ARRLEN keypath -
jsonArrLenEnhanced(
{required String key, required List< String> paths}) → Future<List< int?> ?> -
Available on JsonCommands, provided by the JsonArrLenEnhancedCommand extension
JSON.ARRLEN (Enhanced) -
jsonArrPop(
{required String key, String path = r'$', int? index}) → Future -
Available on JsonCommands, provided by the JsonArrPopCommand extension
JSON.ARRPOP key [pathindex] -
jsonArrPopEnhanced(
{required String key, required List< String> paths, int? index}) → Future<List?> -
Available on JsonCommands, provided by the JsonArrPopEnhancedCommand extension
JSON.ARRPOP (Enhanced) -
jsonArrTrim(
{required String key, required String path, required int start, required int stop}) → Future -
Available on JsonCommands, provided by the JsonArrTrimCommand extension
JSON.ARRTRIM key path start stop -
jsonArrTrimEnhanced(
{required String key, required List< String> paths, required int start, required int stop}) → Future<List< int?> ?> -
Available on JsonCommands, provided by the JsonArrTrimEnhancedCommand extension
JSON.ARRTRIM (Enhanced) -
jsonClear(
{required String key, String path = r'$'}) → Future< int> -
Available on JsonCommands, provided by the JsonClearCommand extension
JSON.CLEAR keypath -
jsonDebug(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonDebugCommand extension
JSON.DEBUG MEMORY keypath -
jsonDebugDepth(
{required String key, bool forceRun = false}) → Future< int> -
Available on JsonCommands, provided by the JsonDebugDepthCommand extension
JSON.DEBUG DEPTH key -
jsonDebugFields(
{required String key, String? path, bool forceRun = false}) → Future -
Available on JsonCommands, provided by the JsonDebugFieldsCommand extension
JSON.DEBUG FIELDS<key>path -
jsonDebugHelp(
) → Future< List< String> > -
Available on JsonCommands, provided by the JsonDebugHelpCommand extension
JSON.DEBUG HELP -
jsonDebugKeyTableCheck(
{bool forceRun = false}) → Future -
Available on JsonCommands, provided by the JsonDebugKeyTableCheckCommand extension
JSON.DEBUG KEYTABLE-CHECK -
jsonDebugKeyTableCorrupt(
String name, {bool forceRun = false}) → Future -
Available on JsonCommands, provided by the JsonDebugKeyTableCorruptCommand extension
JSON.DEBUG KEYTABLE-CORRUPT<name> -
jsonDebugKeyTableDistribution(
int topN, {bool forceRun = false}) → Future -
Available on JsonCommands, provided by the JsonDebugKeyTableDistributionCommand extension
JSON.DEBUG KEYTABLE-DISTRIBUTION<topN> -
jsonDebugMaxDepthKey(
{bool forceRun = false}) → Future -
Available on JsonCommands, provided by the JsonDebugMaxDepthKeyCommand extension
JSON.DEBUG MAX-DEPTH-KEY -
jsonDebugMaxSizeKey(
{bool forceRun = false}) → Future -
Available on JsonCommands, provided by the JsonDebugMaxSizeKeyCommand extension
JSON.DEBUG MAX-SIZE-KEY -
jsonDebugMemory(
{required String key, String? path}) → Future -
Available on JsonCommands, provided by the JsonDebugMemoryCommand extension
JSON.DEBUG MEMORY<key>path -
Available on JsonCommands, provided by the JsonDebugTestSharedApiCommand extension
JSON.DEBUG TEST-SHARED-API key path -
jsonDel(
{required String key, String path = r'$'}) → Future< int?> -
Available on JsonCommands, provided by the JsonDelCommand extension
JSON.DEL keypath -
jsonForget(
{required String key, String path = r'$'}) → Future< int> -
Available on JsonCommands, provided by the JsonForgetCommand extension
JSON.FORGET keypath -
jsonGet(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonGetCommand extension
JSON.GET keypath ... -
jsonMerge(
{required String key, required String path, required dynamic data, bool forceRun = false}) → Future< void> -
Available on JsonCommands, provided by the JsonMergeCommand extension
JSON.MERGE key path value -
jsonMergeForce(
{required String key, required String path, required dynamic data, bool forceRun = false}) → Future< void> -
Available on JsonCommands, provided by the JsonMergeForceCommand extension
-
jsonMGet(
{required List< String> keys, required String path}) → Future<List> -
Available on JsonCommands, provided by the JsonMGetCommand extension
JSON.MGET keykey ...path -
jsonMSet(
{required List< JsonMSetEntry> entries}) → Future<void> -
Available on JsonCommands, provided by the JsonMSetCommand extension
JSON.MSET key path valuekey path value ... -
jsonNumIncrBy(
{required String key, required String path, required num value}) → Future -
Available on JsonCommands, provided by the JsonNumIncrByCommand extension
JSON.NUMINCRBY key path value -
jsonNumMultBy(
{required String key, required String path, required num value}) → Future -
Available on JsonCommands, provided by the JsonNumMultByCommand extension
JSON.NUMMULTBY key path value -
jsonObjKeys(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonObjKeysCommand extension
JSON.OBJKEYS keypath -
jsonObjKeysEnhanced(
{required String key, required List< String> paths}) → Future<List< List?> ?> -
Available on JsonCommands, provided by the JsonObjKeysEnhancedCommand extension
JSON.OBJKEYS (Enhanced) -
jsonObjLen(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonObjLenCommand extension
JSON.OBJLEN keypath -
jsonResp(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonRespCommand extension
JSON.RESP keypath -
jsonSet(
{required String key, required String path, required dynamic data, bool nx = false, bool xx = false}) → Future< void> -
Available on JsonCommands, provided by the JsonSetCommand extension
JSON.SET key path valueNX | XX -
jsonStrAppend(
{required String key, String path = r'$', required String value}) → Future -
Available on JsonCommands, provided by the JsonStrAppendCommand extension
JSON.STRAPPEND keypathvalue -
jsonStrAppendEnhanced(
{required String key, required List< String> paths, required String value}) → Future<List< int?> ?> -
Available on JsonCommands, provided by the JsonStrAppendEnhancedCommand extension
JSON.STRAPPEND (Enhanced) -
jsonStrLen(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonStrLenCommand extension
JSON.STRLEN keypath -
jsonStrLenEnhanced(
{required String key, required List< String> paths}) → Future<List< int?> ?> -
Available on JsonCommands, provided by the JsonStrLenEnhancedCommand extension
JSON.STRLEN (Enhanced) -
jsonToggle(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonToggleCommand extension
JSON.TOGGLE keypath -
jsonType(
{required String key, String path = r'$'}) → Future -
Available on JsonCommands, provided by the JsonTypeCommand extension
JSON.TYPE keypath -
keys(
String pattern) → Future< List< String> > -
Available on GenericCommands, provided by the KeysCommand extension
KEYS pattern -
lcs(
String key1, String key2, {bool len = false, bool idx = false, int? minMatchLen, bool withMatchLen = false}) → Future -
Available on StringCommands, provided by the LcsCommand extension
LCS key1 key2LENIDXMINMATCHLEN len`WITHMATCHLEN` -
lIndex(
String key, int index) → Future< String?> -
Available on ListCommands, provided by the LIndexCommand extension
LINDEX key index -
lInsert(
String key, String position, String pivot, String element) → Future< int> -
Available on ListCommands, provided by the LInsertCommand extension
LINSERT key<BEFORE | AFTER>pivot element -
lLen(
String key) → Future< int> -
Available on ListCommands, provided by the LLenCommand extension
LLEN key -
lMove(
String source, String destination, String whereFrom, String whereTo) → Future< String?> -
Available on ListCommands, provided by the LMoveCommand extension
LMOVE source destination<LEFT | RIGHT><LEFT | RIGHT> -
lMPop(
List< String> keys, String direction, {int? count}) → Future -
Available on ListCommands, provided by the LMPopCommand extension
LMPOP numkeys keykey ...<LEFT | RIGHT>COUNT count -
lPop(
String key, {int? count}) → Future -
Available on ListCommands, provided by the LPopCommand extension
LPOP keycount -
lpop(
String key) → Future< String?> -
Removes and returns the first element of the list stored at
key.override -
lPos(
String key, String element, {int? rank, int? count, int? maxLen}) → Future -
Available on ListCommands, provided by the LPosCommand extension
LPOS key elementRANK rankCOUNT num-matchesMAXLEN len -
lPush(
String key, List< String> elements) → Future<int> -
Available on ListCommands, provided by the LPushCommand extension
LPUSH key elementelement ... -
lpush(
String key, String value) → Future< int> -
Prepends
valueto the list stored atkey.override -
lPushX(
String key, List< String> elements) → Future<int> -
Available on ListCommands, provided by the LPushXCommand extension
LPUSHX key elementelement ... -
lRange(
String key, int start, int stop) → Future< List< String> > -
Available on ListCommands, provided by the LRangeCommand extension
LRANGE key start stop -
lrange(
String key, int start, int stop) → Future< List< String?> > -
Returns the specified elements of the list stored at
key.override -
lRem(
String key, int count, String element) → Future< int> -
Available on ListCommands, provided by the LRemCommand extension
LREM key count element -
lSet(
String key, int index, String element) → Future< String> -
Available on ListCommands, provided by the LSetCommand extension
LSET key index element -
lTrim(
String key, int start, int stop) → Future< String> -
Available on ListCommands, provided by the LTrimCommand extension
LTRIM key start stop -
mGet(
List< String> keys) → Future<List< String?> > -
Available on StringCommands, provided by the MGetCommand extension
MGET keykey ... -
mget(
List< String> keys) → Future<List< String?> > -
Gets the values of all specified
keys.override -
migrate(
String host, int port, String key, int destinationDb, int timeout, {bool copy = false, bool replace = false, String? authPassword, String? auth2Username, List< String> ? keys}) → Future<String> -
Available on GenericCommands, provided by the MigrateCommand extension
MIGRATE host port key|"" destination-db timeout[COPY][REPLACE]AUTH passwordAUTH2 username password[KEYS keykey ...] -
move(
String key, int db) → Future< bool> -
Available on GenericCommands, provided by the MoveCommand extension
MOVE key db -
mSet(
Map< String, String> data) → Future<String> -
Available on StringCommands, provided by the MSetCommand extension
MSET key valuekey value ... -
mSetEx(
Map< String, String> data, {bool nx = false, bool xx = false, int? ex, int? px, int? exAt, int? pxAt, bool keepTtl = false, bool forceRun = false}) → Future<int> -
Available on StringCommands, provided by the MSetExCommand extension
MSETEX numkeys key valuekey value ...NX | XXEX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL -
mSetNx(
Map< String, String> data) → Future<int> -
Available on StringCommands, provided by the MSetNxCommand extension
MSETNX key valuekey value ... -
multi(
) → Future< String> -
Marks the start of a transaction block.
override
-
multi(
) → Future< String> -
Available on TransactionsCommands, provided by the MultiCommand extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
objectEncoding(
String key) → Future< String?> -
Available on GenericCommands, provided by the ObjectEncodingCommand extension
OBJECT ENCODING key -
objectFreq(
String key) → Future< int?> -
Available on GenericCommands, provided by the ObjectFreqCommand extension
OBJECT FREQ key -
objectHelp(
) → Future< List< String> > -
Available on GenericCommands, provided by the ObjectHelpCommand extension
OBJECT HELP -
objectIdleTime(
String key) → Future< int?> -
Available on GenericCommands, provided by the ObjectIdleTimeCommand extension
OBJECT IDLETIME key -
objectRefCount(
String key) → Future< int?> -
Available on GenericCommands, provided by the ObjectRefCountCommand extension
OBJECT REFCOUNT key -
packVector(
List< num> vector) → Uint8List -
Converts a
List<num>to a Float32 Little Endian Byte Array (Blob).inherited -
persist(
String key) → Future< bool> -
Available on GenericCommands, provided by the PersistCommand extension
PERSIST key -
pExpire(
String key, int milliseconds, {bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future< bool> -
Available on GenericCommands, provided by the PExpireCommand extension
PEXPIRE key millisecondsNX|XX|GT|LT -
pExpireAt(
String key, int millisecondsTimestamp, {bool nx = false, bool xx = false, bool gt = false, bool lt = false}) → Future< bool> -
Available on GenericCommands, provided by the PExpireAtCommand extension
PEXPIREAT key milliseconds-timestampNX|XX|GT|LT -
pExpireTime(
String key) → Future< int> -
Available on GenericCommands, provided by the PExpireTimeCommand extension
PEXPIRETIME key -
pfAdd(
String key, List< String> elements) → Future<int> -
Available on HyperLogLogCommands, provided by the PfAddCommand extension
PFADD key elementelement ... -
pfCount(
List< String> keys) → Future<int> -
Available on HyperLogLogCommands, provided by the PfCountCommand extension
PFCOUNT keykey ... -
pfDebug(
String subcommand, String key) → Future -
Available on HyperLogLogCommands, provided by the PfDebugCommand extension
PFDEBUG<subcommand> <key> -
pfMerge(
String destKey, List< String> sourceKeys) → Future<String> -
Available on HyperLogLogCommands, provided by the PfMergeCommand extension
PFMERGE destkey sourcekeysourcekey ... -
pfSelfTest(
) → Future< String> -
Available on HyperLogLogCommands, provided by the PfSelfTestCommand extension
PFSELFTEST -
ping(
[String? message]) → Future< String> -
PINGs the server.
override
-
printDebugWarning(
) → void -
inherited
-
pSetEx(
String key, int milliseconds, String value) → Future< String> -
Available on StringCommands, provided by the PSetExCommand extension
PSETEX key milliseconds value -
psubscribe(
List< String> patterns) → Subscription -
Subscribes the client to the given
patterns(e.g., "log:*").override -
pTtl(
String key) → Future< int> -
Available on GenericCommands, provided by the PTtlCommand extension
PTTL key -
publish(
String channel, String message) → Future< int> -
Posts a
messageto the givenchannel.override -
pubsubChannels(
[String? pattern]) → Future< List< String?> > -
Lists the currently active channels.
override
-
pubsubNumPat(
) → Future< int> -
Returns the number of subscriptions to patterns.
override
-
pubsubNumSub(
List< String> channels) → Future<Map< String, int> > -
Returns the number of subscribers for the specified
channels.override -
punsubscribe(
[List< String> patterns = const []]) → Future<void> -
Unsubscribes the client from the given
patterns, or all patterns if none are given.override -
queueCommandInternal(
List< String> command) → void -
inherited
-
quit(
{bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the QuitCommand extension
QUIT Closes the connection. -
randomKey(
) → Future< String?> -
Available on GenericCommands, provided by the RandomKeyCommand extension
RANDOMKEY -
rename(
String key, String newKey) → Future< String> -
Available on GenericCommands, provided by the RenameCommand extension
RENAME key newkey -
renameNx(
String key, String newKey) → Future< bool> -
Available on GenericCommands, provided by the RenameNxCommand extension
RENAMENX key newkey -
reset(
{bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the ResetCommand extension
RESET Resets the connection state. -
restore(
String key, int ttl, List< int> serializedValue, {bool replace = false, bool absttl = false, int? idleTime, int? freq}) → Future<String> -
Available on GenericCommands, provided by the RestoreCommand extension
RESTORE key ttl serialized-valueREPLACEABSTTLIDLETIME secondsFREQ frequency -
rPop(
String key, {int? count}) → Future -
Available on ListCommands, provided by the RPopCommand extension
RPOP keycount -
rpop(
String key) → Future< String?> -
Removes and returns the last element of the list stored at
key.override -
rPopLPush(
String source, String destination) → Future< String?> -
Available on ListCommands, provided by the RPopLPushCommand extension
RPOPLPUSH source destination -
rPush(
String key, List< String> elements) → Future<int> -
Available on ListCommands, provided by the RPushCommand extension
RPUSH key elementelement ... -
rpush(
String key, String value) → Future< int> -
Appends
valueto the list stored atkey.override -
rPushX(
String key, List< String> elements) → Future<int> -
Available on ListCommands, provided by the RPushXCommand extension
RPUSHX key elementelement ... -
sAdd(
String key, List< String> members) → Future<int> -
Available on SetCommands, provided by the SAddCommand extension
SADD key membermember ... -
sadd(
String key, String member) → Future< int> -
Adds
memberto the set stored atkey.override -
scan(
String cursor, {String? match, int? count, String? type}) → Future< List> -
Available on GenericCommands, provided by the ScanCommand extension
SCAN cursorMATCH patternCOUNT countTYPE type -
scanCli(
{required String cursor, String match = '*', int count = 100}) → Future< ScanResult> -
Available on GenericCommands, provided by the ScanCliCommand extension
from @Keyscope -
sCard(
String key) → Future< int> -
Available on SetCommands, provided by the SCardCommand extension
SCARD key -
sDiff(
String key, [List< String> otherKeys = const []]) → Future<List< String> > -
Available on SetCommands, provided by the SDiffCommand extension
SDIFF keykey ... -
sDiffStore(
String destination, String key, [List< String> otherKeys = const []]) → Future<int> -
Available on SetCommands, provided by the SDiffStoreCommand extension
SDIFFSTORE destination keykey ... -
select(
int index, {bool forceRun = false}) → Future -
Available on ConnectionCommands, provided by the SelectCommand extension
SELECT index Changes the logical database for the current connection. -
send(
List< String> command) → Future -
Provides a shorter name for
execute(). Internally callsexecute().override -
set(
String key, String value, {bool nx = false, bool xx = false, bool get = false, int? ex, int? px, int? exAt, int? pxAt, bool keepTtl = false}) → Future< String?> -
Sets
keytovalue.override -
set(
String key, String value, {bool nx = false, bool xx = false, bool get = false, int? ex, int? px, int? exAt, int? pxAt, bool keepTtl = false}) → Future< String?> -
Available on StringCommands, provided by the SetCommand extension
SET key valueNX | XXGETEX seconds | PX milliseconds | EXAT timestamp | PXAT timestamp | KEEPTTL -
setBit(
String key, int offset, int value) → Future< int> -
Available on BitmapCommands, provided by the SetBitCommand extension
SETBIT key offset value -
setEx(
String key, int seconds, String value) → Future< String> -
Available on StringCommands, provided by the SetExCommand extension
SETEX key seconds value -
setNx(
String key, String value) → Future< int> -
Available on StringCommands, provided by the SetNxCommand extension
SETNX key value -
setRange(
String key, int offset, String value) → Future< int> -
Available on StringCommands, provided by the SetRangeCommand extension
SETRANGE key offset value -
setTransactionStateInternal(
bool isStarted) → void -
inherited
-
sInter(
List< String> keys) → Future<List< String> > -
Available on SetCommands, provided by the SInterCommand extension
SINTER keykey ... -
sInterCard(
List< String> keys, {int? limit}) → Future<int> -
Available on SetCommands, provided by the SInterCardCommand extension
SINTERCARD numkeys keykey ...LIMIT limit -
sInterStore(
String destination, List< String> keys) → Future<int> -
Available on SetCommands, provided by the SInterStoreCommand extension
SINTERSTORE destination keykey ... -
sIsMember(
String key, String member) → Future< bool> -
Available on SetCommands, provided by the SIsMemberCommand extension
SISMEMBER key member -
sMembers(
String key) → Future< List< String> > -
Available on SetCommands, provided by the SMembersCommand extension
SMEMBERS key -
smembers(
String key) → Future< List< String?> > -
Returns all members of the set stored at
key.override -
sMIsMember(
String key, List< String> members) → Future<List< int> > -
Available on SetCommands, provided by the SMIsMemberCommand extension
SMISMEMBER key membermember ... -
sMove(
String source, String destination, String member) → Future< bool> -
Available on SetCommands, provided by the SMoveCommand extension
SMOVE source destination member -
sort(
String key, {String? by, int? limitOffset, int? limitCount, List< String> ? getPatterns, bool asc = false, bool desc = false, bool alpha = false, String? store}) → Future -
Available on GenericCommands, provided by the SortCommand extension
SORT keyBY patternLIMIT offset count[GET patternGET pattern ...]ASC|DESCALPHASTORE destination -
sortRo(
String key, {String? by, int? limitOffset, int? limitCount, List< String> ? getPatterns, bool asc = false, bool desc = false, bool alpha = false}) → Future<List< String> > -
Available on GenericCommands, provided by the SortRoCommand extension
SORT_RO keyBY patternLIMIT offset count[GET patternGET pattern ...]ASC|DESC[ALPHA] -
sPop(
String key, [int? count]) → Future -
Available on SetCommands, provided by the SPopCommand extension
SPOP keycount -
spublish(
String channel, String message) → Future< int> -
Posts a
messageto the givenchannelusing Sharded Pub/Sub. Returns the number of clients that received the message. Note: In Cluster mode, this command is routed to the specific node that owns the slot forchannel.override -
sRandMember(
String key, [int? count]) → Future -
Available on SetCommands, provided by the SRandMemberCommand extension
SRANDMEMBER keycount -
sRem(
String key, List< String> members) → Future<int> -
Available on SetCommands, provided by the SRemCommand extension
SREM key membermember ... -
srem(
String key, String member) → Future< int> -
Removes
memberfrom the set stored atkey.override -
sScan(
String key, int cursor, {String? match, int? count}) → Future< List> -
Available on SetCommands, provided by the SScanCommand extension
SSCAN key cursorMATCH patternCOUNT count -
ssubscribe(
List< String> channels) → Subscription -
Subscribes the client to the specified
channelsusing Sharded Pub/Sub.override -
strLen(
String key) → Future< int> -
Available on StringCommands, provided by the StrLenCommand extension
STRLEN key -
subscribe(
List< String> channels) → Subscription -
Subscribes the client to the specified
channels.override -
subStr(
String key, int start, int end) → Future< String> -
Available on StringCommands, provided by the SubStrCommand extension
SUBSTR key start end -
sUnion(
List< String> keys) → Future<List< String> > -
Available on SetCommands, provided by the SUnionCommand extension
SUNION keykey ... -
sUnionStore(
String destination, List< String> keys) → Future<int> -
Available on SetCommands, provided by the SUnionStoreCommand extension
SUNIONSTORE destination keykey ... -
sunsubscribe(
[List< String> channels = const []]) → Future<void> -
Unsubscribes from the given
channelsusing Sharded Pub/Sub.override -
tDigestAdd(
String key, List< double> values, {bool forceRun = false}) → Future -
Available on TDigestSketchCommands, provided by the TDigestAddCommand extension
TDIGEST.ADD key valuevalue ...Adds one or more observations to a t-digest sketch. -
tDigestByRank(
String key, List< int> ranks, {bool forceRun = false}) → Future<List< double> > -
Available on TDigestSketchCommands, provided by the TDigestByRankCommand extension
TDIGEST.BYRANK key rankrank ...Returns the value(s) associated with the specified rank(s). -
tDigestByRevRank(
String key, List< int> revRanks, {bool forceRun = false}) → Future<List< double> > -
Available on TDigestSketchCommands, provided by the TDigestByRevRankCommand extension
TDIGEST.BYREVRANK key rev_rankrev_rank ...Returns the value(s) associated with the specified reverse rank(s). -
tDigestCdf(
String key, List< double> values, {bool forceRun = false}) → Future<List< double> > -
Available on TDigestSketchCommands, provided by the TDigestCdfCommand extension
TDIGEST.CDF key valuevalue ...Returns the fraction of all points added which are <= value. -
tDigestCreate(
String key, {int? compression, bool forceRun = false}) → Future -
Available on TDigestSketchCommands, provided by the TDigestCreateCommand extension
TDIGEST.CREATE keyCOMPRESSION compressionAllocates memory and initializes a new t-digest. -
tDigestInfo(
String key, {bool forceRun = false}) → Future -
Available on TDigestSketchCommands, provided by the TDigestInfoCommand extension
TDIGEST.INFO key Returns information and statistics about a t-digest sketch. -
tDigestMax(
String key, {bool forceRun = false}) → Future< double> -
Available on TDigestSketchCommands, provided by the TDigestMaxCommand extension
TDIGEST.MAX key Returns the maximum observation value from a t-digest sketch. -
tDigestMerge(
String destinationKey, List< String> sourceKeys, {int? compression, bool override = false, bool forceRun = false}) → Future -
Available on TDigestSketchCommands, provided by the TDigestMergeCommand extension
TDIGEST.MERGE destination_key numKeys source_keysource_key ...COMPRESSION compression[OVERRIDE]Merges multiple t-digest sketches into a single sketch. -
tDigestMin(
String key, {bool forceRun = false}) → Future< double> -
Available on TDigestSketchCommands, provided by the TDigestMinCommand extension
TDIGEST.MIN key Returns the minimum observation value from a t-digest sketch. -
tDigestQuantile(
String key, List< double> quantiles, {bool forceRun = false}) → Future<List< double> > -
Available on TDigestSketchCommands, provided by the TDigestQuantileCommand extension
TDIGEST.QUANTILE key quantilequantile ...Returns estimates of one or more cutoffs such that a specified fraction of the observations added to this t-digest would be less than or equal to each of the specified cutoffs. -
tDigestRank(
String key, List< double> values, {bool forceRun = false}) → Future<List< int> > -
Available on TDigestSketchCommands, provided by the TDigestRankCommand extension
TDIGEST.RANK key valuevalue ...Returns the number of observations less than or equal to the specified value(s). -
tDigestReset(
String key, {bool forceRun = false}) → Future -
Available on TDigestSketchCommands, provided by the TDigestResetCommand extension
TDIGEST.RESET key Resets a t-digest sketch: empty the sketch and re-initialize it. -
tDigestRevRank(
String key, List< double> values, {bool forceRun = false}) → Future<List< int> > -
Available on TDigestSketchCommands, provided by the TDigestRevRankCommand extension
TDIGEST.REVRANK key valuevalue ...Returns the number of observations greater than or equal to the specified value(s). -
tDigestTrimmedMean(
String key, double lowCutQuantile, double highCutQuantile, {bool forceRun = false}) → Future< double> -
Available on TDigestSketchCommands, provided by the TDigestTrimmedMeanCommand extension
TDIGEST.TRIMMED_MEAN key low_cut_quantile high_cut_quantile Returns the mean of all values in the sketch, excluding values outside the specified cutoffs. -
topkAdd(
String key, List< String> items, {bool forceRun = false}) → Future<List< String?> > -
Available on TopKSketchCommands, provided by the TopKAddCommand extension
TOPK.ADD key itemitem ...Adds one or more items to the TopK data structure. Returns a list of elements dropped from the TopK list. Null indicates no drop. -
topkCount(
String key, List< String> items, {bool forceRun = false}) → Future<List< int> > -
Available on TopKSketchCommands, provided by the TopKCountCommand extension
TOPK.COUNT key itemitem ...Returns the approximate count for one or more items. -
topkIncrBy(
String key, Map< String, int> increments, {bool forceRun = false}) → Future<List< String?> > -
Available on TopKSketchCommands, provided by the TopKIncrByCommand extension
TOPK.INCRBY key item incrementitem increment ...Increases the score of an item. Returns a list of elements dropped from the TopK list. Null indicates no drop. -
topkInfo(
String key, {bool forceRun = false}) → Future -
Available on TopKSketchCommands, provided by the TopKInfoCommand extension
TOPK.INFO key Returns statistics about a TopK key. -
topkList(
String key, {bool withCount = false, bool forceRun = false}) → Future< List> -
Available on TopKSketchCommands, provided by the TopKListCommand extension
TOPK.LIST key[WITHCOUNT]Returns the full list of items in the TopK list. IfwithCountis true, the result will interleave items and their counts. -
topkQuery(
String key, List< String> items, {bool forceRun = false}) → Future<List< bool> > -
Available on TopKSketchCommands, provided by the TopKQueryCommand extension
TOPK.QUERY key itemitem ...Checks whether one or more items are in the TopK list. Returns a list of booleans indicating membership. -
topkReserve(
String key, int topk, {int? width, int? depth, double? decay, bool forceRun = false}) → Future -
Available on TopKSketchCommands, provided by the TopKReserveCommand extension
TOPK.RESERVE key topkwidth depth decayInitializes a TopK with specified parameters. -
toString(
) → String -
A string representation of this object.
inherited
-
touch(
List< String> keys) → Future<int> -
Available on GenericCommands, provided by the TouchCommand extension
TOUCH keykey ... -
tsAdd(
String key, Object timestamp, num value, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsAddCommand extension
TS.ADD key timestamp valueRETENTION retentionPeriodENCODING uncompressed|compressedCHUNK_SIZE sizeON_DUPLICATE policyLABELS field value.. -
tsAdd2(
String key, Object timestamp, num value, {int? retention, String? encoding, int? chunkSize, String? onDuplicate, Map< String, String> ? labels, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsAddCommand extension
TS.ADD key timestamp valueRETENTION retentionPeriodENCODING uncompressed|compressedCHUNK_SIZE sizeON_DUPLICATE policyLABELS field value.. -
tsAlter(
String key, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsAlterCommand extension
TS.ALTER keyRETENTION retentionPeriodCHUNK_SIZE sizeDUPLICATE_POLICY policyLABELS field value.. -
tsAlter2(
String key, {int? retention, int? chunkSize, String? duplicatePolicy, Map< String, String> ? labels, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsAlterCommand extension
TS.ALTER keyRETENTION retentionPeriodCHUNK_SIZE sizeDUPLICATE_POLICY policyLABELS field value.. -
tsCreate(
String key, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsCreateCommand extension
TS.CREATE keyRETENTION retentionPeriodENCODING encodingCHUNK_SIZE sizeDUPLICATE_POLICY policyLABELS field value.. -
tsCreate2(
String key, {int? retention, String? encoding, int? chunkSize, String? duplicatePolicy, Map< String, String> ? labels, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsCreateCommand extension
TS.CREATE keyRETENTION retentionPeriodENCODING uncompressed|compressedCHUNK_SIZE sizeDUPLICATE_POLICY policyLABELS field value.. -
tsCreateRule(
String sourceKey, String destKey, String aggregator, int bucketDuration, {int? alignTimestamp, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsCreateRuleCommand extension
TS.CREATERULE sourceKey destKey AGGREGATION aggregator bucketDurationalignTimestamp -
tsDecrBy(
String key, num value, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsDecrByCommand extension
TS.DECRBY key valueTIMESTAMP timestampRETENTION retentionPeriodUNCOMPRESSEDCHUNK_SIZE sizeLABELS field value.. -
tsDecrBy2(
String key, num value, {Object? timestamp, int? retention, bool uncompressed = false, int? chunkSize, Map< String, String> ? labels, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsDecrByCommand extension
TS.DECRBY key valueTIMESTAMP timestampRETENTION retentionPeriodUNCOMPRESSEDCHUNK_SIZE sizeLABELS field value.. -
tsDel(
String key, int fromTimestamp, int toTimestamp, {bool forceRun = false}) → Future< int> -
Available on TimeSeriesCommands, provided by the TsDelCommand extension
TS.DEL key fromTimestamp toTimestamp -
tsDeleteRule(
String sourceKey, String destKey, {bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsDeleteRuleCommand extension
TS.DELETERULE sourceKey destKey -
tsGet(
String key, {bool latest = false, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsGetCommand extension
TS.GET key[LATEST] -
tsIncrBy(
String key, num value, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsIncrByCommand extension
TS.INCRBY key valueTIMESTAMP timestampRETENTION retentionPeriodUNCOMPRESSEDCHUNK_SIZE sizeLABELS field value.. -
tsIncrBy2(
String key, num value, {Object? timestamp, int? retention, bool uncompressed = false, int? chunkSize, Map< String, String> ? labels, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsIncrByCommand extension
TS.INCRBY key valueTIMESTAMP timestampRETENTION retentionPeriodUNCOMPRESSEDCHUNK_SIZE sizeLABELS field value.. -
tsInfo(
String key, {bool debug = false, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsInfoCommand extension
TS.INFO key[DEBUG] -
tsMAdd(
List< List> samples, {bool forceRun = false}) → Future<List> -
Available on TimeSeriesCommands, provided by the TsMAddCommand extension
TS.MADD key timestamp valuekey timestamp value ... -
tsMGet(
List< String> filters, {bool latest = false, List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsMGetCommand extension
TS.MGETLATESTWITHLABELS | SELECTED_LABELS label...FILTER filter... -
tsMGet2(
List< String> filters, {bool latest = false, bool withLabels = false, List<String> ? selectedLabels, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsMGetCommand extension
TS.MGETLATESTWITHLABELS | SELECTED_LABELS label...FILTER filter... -
tsMRange(
Object fromTimestamp, Object toTimestamp, List< String> filters, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsMRangeCommand extension
TS.MRANGE fromTimestamp toTimestampLATESTFILTER_BY_TS ...FILTER_BY_VALUE ...WITHLABELSCOUNT countALIGN alignAGGREGATION aggregator bucketDurationBUCKETTIMESTAMP ...[EMPTY]FILTER filter... -
tsMRange2(
{Object? fromTimestamp, Object? toTimestamp, List< String> filters = const [], bool latest = false, List<int> ? filterByTs, num? filterByValueMin, num? filterByValueMax, bool withLabels = false, List<String> ? selectedLabels, int? count, Object? align, String? aggregator, int? bucketDuration, List? bucketTimestamp, bool empty = false, String? groupByLabel, String? reduceReducer, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsMRangeCommand extension
TS.MRANGE fromTimestamp toTimestampLATESTFILTER_BY_TS ...FILTER_BY_VALUE ...WITHLABELS | SELECTED_LABELS label...COUNT countALIGN alignAGGREGATION aggregator bucketDurationBUCKETTIMESTAMP ...EMPTYGROUPBY label REDUCE reducerFILTER filter... -
tsMRevRange(
Object fromTimestamp, Object toTimestamp, List< String> filters, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsMRevRangeCommand extension
TS.MREVRANGE fromTimestamp toTimestampLATESTFILTER_BY_TS ...FILTER_BY_VALUE ...WITHLABELSCOUNT countALIGN alignAGGREGATION aggregator bucketDurationBUCKETTIMESTAMP ...[EMPTY]FILTER filter... -
tsMRevRange2(
{Object? fromTimestamp, Object? toTimestamp, List< String> filters = const [], bool latest = false, List<int> ? filterByTs, num? filterByValueMin, num? filterByValueMax, bool withLabels = false, List<String> ? selectedLabels, int? count, Object? align, String? aggregator, int? bucketDuration, List? bucketTimestamp, bool empty = false, String? groupByLabel, String? reduceReducer, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsMRevRangeCommand extension
TS.MREVRANGE fromTimestamp toTimestamp ... -
tsQueryIndex(
List< String> filters, {bool forceRun = false}) → Future<List< String> > -
Available on TimeSeriesCommands, provided by the TsQueryIndexCommand extension
TS.QUERYINDEX filter... -
tsRange(
String key, Object fromTimestamp, Object toTimestamp, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsRangeCommand extension
TS.RANGE key fromTimestamp toTimestampLATESTFILTER_BY_TS ...FILTER_BY_VALUE ...COUNT countALIGN alignAGGREGATION aggregator bucketDurationBUCKETTIMESTAMP ...[EMPTY] -
tsRange2(
String key, Object fromTimestamp, Object toTimestamp, {bool latest = false, List< int> ? filterByTs, num? filterByValueMin, num? filterByValueMax, int? count, Object? align, String? aggregator, int? bucketDuration, List? bucketTimestamp, bool empty = false, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsRangeCommand extension
TS.RANGE key fromTimestamp toTimestampLATESTFILTER_BY_TS ...FILTER_BY_VALUE ...COUNT countALIGN alignAGGREGATION aggregator bucketDurationBUCKETTIMESTAMP ...[EMPTY] -
tsRevRange(
String key, Object fromTimestamp, Object toTimestamp, {List options = const [], bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsRevRangeCommand extension
TS.REVRANGE key fromTimestamp toTimestampLATESTFILTER_BY_TS ...FILTER_BY_VALUE ...COUNT countALIGN alignAGGREGATION aggregator bucketDurationBUCKETTIMESTAMP ...[EMPTY] -
tsRevRange2(
String key, Object fromTimestamp, Object toTimestamp, {bool latest = false, List< int> ? filterByTs, num? filterByValueMin, num? filterByValueMax, int? count, Object? align, String? aggregator, int? bucketDuration, List? bucketTimestamp, bool empty = false, bool forceRun = false}) → Future -
Available on TimeSeriesCommands, provided by the TsRevRangeCommand extension
TS.REVRANGE key fromTimestamp toTimestamp[LATEST]... Note:fromTimestampis still Min,toTimestampis still Max. -
ttl(
String key) → Future< int> -
Gets the remaining time to live of a
keyin seconds.override -
ttl(
String key) → Future< int> -
Available on GenericCommands, provided by the TtlCommand extension
TTL key -
type(
String key) → Future< String> -
Available on GenericCommands, provided by the TypeCommand extension
TYPE key -
unlink(
List< String> keys) → Future<int> -
Available on GenericCommands, provided by the UnlinkCommand extension
UNLINK keykey ... -
unpackVector(
List< int> bytes) → List<double> -
Converts a Byte Array (or
List<int>) back toList<double>.inherited -
unsubscribe(
[List< String> channels = const []]) → Future<void> -
Unsubscribes the client from the given
channels, or all channels if none are given.override -
unwatch(
) → Future< String> -
Available on TransactionsCommands, provided by the UnwatchCommand extension
UNWATCH -
vAdd(
String key, List< num> vector, String element, {int? reduce, bool cas = false, bool noQuant = false, bool q8 = false, bool bin = false, int? ef, String? setAttr, int? m, bool forceRun = false}) → Future -
Available on VectorSetCommands, provided by the VAddCommand extension
VADD keyREDUCE dim(FP32 | VALUES num) vector element[CAS]NOQUANT | Q8 | BINEF efSETATTR attributesM numlinks -
vCard(
String key, {bool forceRun = false}) → Future< int> -
Available on VectorSetCommands, provided by the VCardCommand extension
VCARD key -
vDim(
String key, {bool forceRun = false}) → Future< int> -
Available on VectorSetCommands, provided by the VDimCommand extension
VDIM key -
vEmb(
String key, String id, {bool forceRun = false}) → Future< List< double> > -
Available on VectorSetCommands, provided by the VEmbCommand extension
VEMB key id -
vGetAttr(
String key, String element, {bool forceRun = false}) → Future -
Available on VectorSetCommands, provided by the VGetAttrCommand extension
VGETATTR key element -
vInfo(
String key, {bool forceRun = false}) → Future -
Available on VectorSetCommands, provided by the VInfoCommand extension
VINFO key -
vIsMember(
String key, String id, {bool forceRun = false}) → Future< bool> -
Available on VectorSetCommands, provided by the VIsMemberCommand extension
VISMEMBER key id -
vLinks(
String key, String id, {bool forceRun = false}) → Future -
Available on VectorSetCommands, provided by the VLinksCommand extension
VLINKS key id -
vRandMember(
String key, {int? count, bool forceRun = false}) → Future -
Available on VectorSetCommands, provided by the VRandMemberCommand extension
VRANDMEMBER keycount -
vRange(
String key, String start, String end, {int? count, bool forceRun = false}) → Future -
Available on VectorSetCommands, provided by the VRangeCommand extension
VRANGE key start endcount -
vRem(
String key, String id, {bool forceRun = false}) → Future< int> -
Available on VectorSetCommands, provided by the VRemCommand extension
VREM key id -
vSetAttr(
String key, String id, Map< String, dynamic> attributes, {bool forceRun = false}) → Future -
Available on VectorSetCommands, provided by the VSetAttrCommand extension
VSETATTR key id attributes -
vSim(
String key, {String? queryElement, List< num> ? queryVector, bool withScores = false, bool withAttribs = false, int? count, double? epsilon, int? ef, String? filter, int? filterEf, bool truth = false, bool noThread = false, bool forceRun = false}) → Future<List> -
Available on VectorSetCommands, provided by the VSimCommand extension
VSIM key (ELE | VALUES num) (element | vector)[WITHSCORES]WITHATTRIBSCOUNT numEPSILON deltaEF efFILTER expressionFILTER-EF max-effort[TRUTH][NOTHREAD] -
wait(
int numReplicas, int timeout) → Future< int> -
Available on GenericCommands, provided by the WaitCommand extension
WAIT numreplicas timeout -
waitAof(
int numLocal, int numReplicas, int timeout) → Future< List< int> > -
Available on GenericCommands, provided by the WaitAofCommand extension
WAITAOF numLocal numReplicas timeout -
watch(
List< String> keys) → Future<String> -
Available on TransactionsCommands, provided by the WatchCommand extension
WATCH keykey ... -
xAck(
String key, String group, List< String> ids) → Future<int> -
Available on StreamCommands, provided by the XAckCommand extension
XACK key group idid ... -
xAdd(
String key, Map< String, String> fields, {String id = '*', int? maxLen, bool approximate = false, bool noMkStream = false}) → Future<String> -
Available on StreamCommands, provided by the XAddCommand extension
XADD keyNOMKSTREAM[MAXLEN|MINID=|~thresholdLIMIT count] ID field valuefield value ... -
xAutoClaim(
String key, String group, String consumer, int minIdleTime, String start, {int? count, bool justId = false}) → Future< List> -
Available on StreamCommands, provided by the XAutoClaimCommand extension
XAUTOCLAIM key group consumer min-idle-time startCOUNT count[JUSTID] -
xClaim(
String key, String group, String consumer, int minIdleTime, List< String> ids, {int? idle, int? time, int? retryCount, bool force = false, bool justId = false}) → Future<List< StreamEntry> > -
Available on StreamCommands, provided by the XClaimCommand extension
XCLAIM key group consumer min-idle-time idid ...IDLE msTIME ms-unix-timeRETRYCOUNT count[FORCE][JUSTID] -
xDel(
String key, List< String> ids) → Future<int> -
Available on StreamCommands, provided by the XDelCommand extension
XDEL key idid ... -
xGroup(
List< String> args) → Future -
Available on StreamCommands, provided by the XGroupCommand extension
General XGROUP command entry. Use specific extensions like xGroupCreate, xGroupDestroy etc. -
xGroupCreate(
String key, String group, String id, {bool mkStream = false}) → Future< String> -
Available on StreamCommands, provided by the XGroupCreateCommand extension
XGROUP CREATE key groupname id|$MKSTREAMENTRIESREAD entries_read -
xGroupCreateConsumer(
String key, String group, String consumer) → Future< int> -
Available on StreamCommands, provided by the XGroupCreateConsumerCommand extension
XGROUP CREATECONSUMER key group consumer -
xGroupDelConsumer(
String key, String group, String consumer) → Future< int> -
Available on StreamCommands, provided by the XGroupDelConsumerCommand extension
XGROUP DELCONSUMER key group consumer -
xGroupDestroy(
String key, String group) → Future< int> -
Available on StreamCommands, provided by the XGroupDestroyCommand extension
XGROUP DESTROY key group -
xGroupHelp(
) → Future< List< String> > -
Available on StreamCommands, provided by the XGroupHelpCommand extension
XGROUP HELP -
xGroupSetId(
String key, String group, String id) → Future< String> -
Available on StreamCommands, provided by the XGroupSetIdCommand extension
XGROUP SETID key group id -
xInfo(
List< String> args) → Future -
Available on StreamCommands, provided by the XInfoCommand extension
General XINFO command entry. Use specific extensions like xInfoStream, xInfoGroups etc. -
xInfoConsumers(
String key, String group) → Future< List> -
Available on StreamCommands, provided by the XInfoConsumersCommand extension
XINFO CONSUMERS key group -
xInfoGroups(
String key) → Future< List> -
Available on StreamCommands, provided by the XInfoGroupsCommand extension
XINFO GROUPS key -
xInfoHelp(
) → Future< List< String> > -
Available on StreamCommands, provided by the XInfoHelpCommand extension
XINFO HELP -
xInfoStream(
String key, {bool full = false, int? count}) → Future -
Available on StreamCommands, provided by the XInfoStreamCommand extension
XINFO STREAM key [FULLCOUNT count] -
xLen(
String key) → Future< int> -
Available on StreamCommands, provided by the XLenCommand extension
XLEN key -
xPending(
String key, String group, {int? idle, String? start, String? end, int? count, String? consumer}) → Future -
Available on StreamCommands, provided by the XPendingCommand extension
XPENDING key group [IDLE min-idle-timestart end countconsumer] -
xRange(
String key, {String start = '-', String end = '+', int? count}) → Future< List< StreamEntry> > -
Available on StreamCommands, provided by the XRangeCommand extension
XRANGE key start endCOUNT count -
xRead(
List< String> keys, List<String> ids, {int? count, int? block}) → Future<Map< String, List< >StreamEntry> > -
Available on StreamCommands, provided by the XReadCommand extension
XREADCOUNT countBLOCK millisecondsSTREAMS keykey ...idid ... -
xReadGroup(
String group, String consumer, List< String> keys, List<String> ids, {int? count, int? block, bool noAck = false}) → Future<Map< String, List< >StreamEntry> > -
Available on StreamCommands, provided by the XReadGroupCommand extension
XREADGROUP GROUP group consumerCOUNT countBLOCK milliseconds[NOACK]STREAMS keykey ...idid ... -
xRevRange(
String key, {String end = '+', String start = '-', int? count}) → Future< List< StreamEntry> > -
Available on StreamCommands, provided by the XRevRangeCommand extension
XREVRANGE key end startCOUNT count -
xSetId(
String key, String lastId, {int? entriesAdded}) → Future< String> -
Available on StreamCommands, provided by the XSetIdCommand extension
XSETID key last-idENTRIESADDED entries-added -
xTrim(
String key, {int? maxLen, String? minId, bool approximate = false, int? limit}) → Future< int> -
Available on StreamCommands, provided by the XTrimCommand extension
XTRIM key MAXLEN|MINID=|~thresholdLIMIT count -
zAdd(
String key, Map< String, num> items, {bool nx = false, bool xx = false, bool gt = false, bool lt = false, bool ch = false, bool incr = false}) → Future -
Available on SortedSetCommands, provided by the ZAddCommand extension
ZADD keyNX | XXGT | LT[CH][INCR]score memberscore member ... -
zadd(
String key, double score, String member) → Future< int> -
Adds
memberwith the specifiedscoreto the sorted set stored atkey.override -
zCard(
String key) → Future< int> -
Available on SortedSetCommands, provided by the ZCardCommand extension
ZCARD key -
zCount(
String key, Object min, Object max) → Future< int> -
Available on SortedSetCommands, provided by the ZCountCommand extension
ZCOUNT key min max -
zDiff(
List< String> keys, {bool withScores = false}) → Future<List< String> > -
Available on SortedSetCommands, provided by the ZDiffCommand extension
ZDIFF numkeys keykey ...[WITHSCORES] -
zDiffStore(
String destination, List< String> keys) → Future<int> -
Available on SortedSetCommands, provided by the ZDiffStoreCommand extension
ZDIFFSTORE destination numkeys keykey ... -
zIncrBy(
String key, num increment, String member) → Future< double> -
Available on SortedSetCommands, provided by the ZIncrByCommand extension
ZINCRBY key increment member -
zInter(
List< String> keys, {List<num> ? weights, String? aggregate, bool withScores = false}) → Future<List< String> > -
Available on SortedSetCommands, provided by the ZInterCommand extension
ZINTER numkeys keykey ...[WEIGHTS weightweight ...]AGGREGATE <SUM | MIN | MAX>[WITHSCORES] -
zInterCard(
List< String> keys, {int? limit}) → Future<int> -
Available on SortedSetCommands, provided by the ZInterCardCommand extension
ZINTERCARD numkeys keykey ...LIMIT limit -
zInterStore(
String destination, List< String> keys, {List<num> ? weights, String? aggregate}) → Future<int> -
Available on SortedSetCommands, provided by the ZInterStoreCommand extension
ZINTERSTORE destination numkeys keykey ...[WEIGHTS weightweight ...]AGGREGATE <SUM | MIN | MAX> -
zLexCount(
String key, String min, String max) → Future< int> -
Available on SortedSetCommands, provided by the ZLexCountCommand extension
ZLEXCOUNT key min max -
zMPop(
List< String> keys, String modifier, {int? count}) → Future -
Available on SortedSetCommands, provided by the ZMPopCommand extension
ZMPOP numkeys keykey ...<MIN | MAX>COUNT count -
zMScore(
String key, List< String> members) → Future<List< double?> > -
Available on SortedSetCommands, provided by the ZMScoreCommand extension
ZMSCORE key membermember ... -
zPopMax(
String key, [int? count]) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZPopMaxCommand extension
ZPOPMAX keycount -
zPopMin(
String key, [int? count]) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZPopMinCommand extension
ZPOPMIN keycount -
zRandMember(
String key, {int? count, bool withScores = false}) → Future -
Available on SortedSetCommands, provided by the ZRandMemberCommand extension
ZRANDMEMBER key [countWITHSCORES] -
zRange(
String key, Object start, Object stop, {bool byScore = false, bool byLex = false, bool rev = false, int? offset, int? count, bool withScores = false}) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZRangeCommand extension
ZRANGE key start stopBYSCORE | BYLEXREVLIMIT offset count[WITHSCORES] -
zrange(
String key, int start, int stop) → Future< List< String?> > -
Returns the specified range of members in the sorted set stored at
key, ordered from lowest to highest score.override -
zRangeByLex(
String key, String min, String max, {int? offset, int? count}) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZRangeByLexCommand extension
ZRANGEBYLEX key min maxLIMIT offset count -
zRangeByScore(
String key, Object min, Object max, {bool withScores = false, int? offset, int? count}) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZRangeByScoreCommand extension
ZRANGEBYSCORE key min maxWITHSCORESLIMIT offset count -
zRangeStore(
String dst, String src, Object min, Object max, {bool byScore = false, bool byLex = false, bool rev = false, int? offset, int? count}) → Future< int> -
Available on SortedSetCommands, provided by the ZRangeStoreCommand extension
ZRANGESTORE dst src min maxBYSCORE | BYLEXREVLIMIT offset count -
zRank(
String key, String member, {bool withScore = false}) → Future -
Available on SortedSetCommands, provided by the ZRankCommand extension
ZRANK key member[WITHSCORE] -
zRem(
String key, List< String> members) → Future<int> -
Available on SortedSetCommands, provided by the ZRemCommand extension
ZREM key membermember ... -
zrem(
String key, String member) → Future< int> -
Removes
memberfrom the sorted set stored atkey.override -
zRemRangeByLex(
String key, String min, String max) → Future< int> -
Available on SortedSetCommands, provided by the ZRemRangeByLexCommand extension
ZREMRANGEBYLEX key min max -
zRemRangeByRank(
String key, int start, int stop) → Future< int> -
Available on SortedSetCommands, provided by the ZRemRangeByRankCommand extension
ZREMRANGEBYRANK key start stop -
zRemRangeByScore(
String key, Object min, Object max) → Future< int> -
Available on SortedSetCommands, provided by the ZRemRangeByScoreCommand extension
ZREMRANGEBYSCORE key min max -
zRevRange(
String key, int start, int stop, {bool withScores = false}) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZRevRangeCommand extension
ZREVRANGE key start stop[WITHSCORES] -
zRevRangeByLex(
String key, String max, String min, {int? offset, int? count}) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZRevRangeByLexCommand extension
ZREVRANGEBYLEX key max minLIMIT offset count -
zRevRangeByScore(
String key, Object max, Object min, {bool withScores = false, int? offset, int? count}) → Future< List< String> > -
Available on SortedSetCommands, provided by the ZRevRangeByScoreCommand extension
ZREVRANGEBYSCORE key max minWITHSCORESLIMIT offset count -
zRevRank(
String key, String member, {bool withScore = false}) → Future -
Available on SortedSetCommands, provided by the ZRevRankCommand extension
ZREVRANK key member[WITHSCORE] -
zScan(
String key, int cursor, {String? match, int? count}) → Future< List> -
Available on SortedSetCommands, provided by the ZScanCommand extension
ZSCAN key cursorMATCH patternCOUNT count -
zScore(
String key, String member) → Future< double?> -
Available on SortedSetCommands, provided by the ZScoreCommand extension
ZSCORE key member -
zUnion(
List< String> keys, {List<num> ? weights, String? aggregate, bool withScores = false}) → Future<List< String> > -
Available on SortedSetCommands, provided by the ZUnionCommand extension
ZUNION numkeys keykey ...[WEIGHTS weightweight ...]AGGREGATE <SUM | MIN | MAX>[WITHSCORES] -
zUnionStore(
String destination, List< String> keys, {List<num> ? weights, String? aggregate}) → Future<int> -
Available on SortedSetCommands, provided by the ZUnionStoreCommand extension
ZUNIONSTORE destination numkeys keykey ...[WEIGHTS weightweight ...]AGGREGATE <SUM | MIN | MAX>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
setLogLevel(
KeyscopeLogLevel level) → void - Sets the logging level for all KeyscopeClient instances.