O(N) where N is the number of passwords defined for the user.
Authenticates client to the server.
:: a typeCtrl KGHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11
Modulehedis-0.16.4Haskell2010
Authenticate to the server (http://redis.io/commands/auth). Since Redis 1.0.0
O(N) where N is the number of passwords defined for the user.
Authenticates client to the server.
O(N) where N is the number of passwords defined for the user.
Authenticates client to the server.
This method allows passing additional options.
Additional parameters for the auth command.
AuthOptsauthOptsUsername :: Maybe ByteStringUsername.
Since Redis 6.0: fails on earlier
Default options for AuthOpts
defaultAuthOptsAuthOpts {authOptsUsername = Nothing}
Echo the given string (http://redis.io/commands/echo). Since Redis 1.0.0
Ping the server (http://redis.io/commands/ping). Since Redis 1.0.0
Close the connection (http://redis.io/commands/quit). Since Redis 1.0.0
Change the selected database for the current connection (http://redis.io/commands/select). Since Redis 1.0.0
Copies the value of a key to a new key (https://redis.io/commands/copy).
O(N) worst case for collections, where N is the number of nested items. O(1) for string values.
Since Redis 6.2.0
copyOpts :: RedisCtx m f=> ByteStringSource key
-> ByteStringDestination key
-> CopyOptsCopy options
-> m (f Bool)Copies the value of a key to a new key (https://redis.io/commands/copy).
O(N) worst case for collections, where N is the number of nested items. O(1) for string values.
Since Redis 6.2.0
Options for the copy command.
CopyOptscopyDestinationDb :: Maybe IntegerDestination database number.
copyReplace :: BoolReplace the destination key if it already exists.
Redis default CopyOpts. Equivalent to omitting all optional parameters.
Delete a key (http://redis.io/commands/del). Returns a number of keys that were removed. Since Redis 1.0.0
Return a serialized version of the value stored at the specified key (http://redis.io/commands/dump). Since Redis 2.6.0
Determine if a key exists (http://redis.io/commands/exists). Since Redis 1.0.0
Set a key's time to live in seconds (http://redis.io/commands/expire). Since Redis 1.0.0
RedisArg ExpireOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsSet the expiration for a key as a UNIX timestamp (http://redis.io/commands/expireat). Since Redis 1.2.0
Set the expiration for a key as a UNIX timestamp (http://redis.io/commands/expireat). Since Redis 1.2.0
Find all keys matching the given pattern (http://redis.io/commands/keys). Since Redis 1.0.0
Options for the migrate command.
Eq MigrateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow MigrateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default MigrateOpts. Equivalent to omitting all optional parameters.
MigrateOpts
{ migrateCopy = False -- remove the key from the local instance
, migrateReplace = False -- don't replace existing key on the remote instance
, migrateAuth = Nothing
}
migrate :: RedisCtx m f=> ByteStringhost
-> ByteStringport
-> ByteStringkey
-> IntegerdestinationDb
-> Integertimeout
-> m (f Status)Atomically transfer a key from a Redis instance to another one (http://redis.io/commands/migrate). The Redis command MIGRATE is split up into migrate, migrateMultiple. Since Redis 2.6.0
migrateMultiple :: RedisCtx m f=> ByteStringhost
-> ByteStringport
-> IntegerdestinationDb
-> Integertimeout
-> MigrateOpts-> [ByteString]keys
-> m (f Status)Atomically transfer a key from a Redis instance to another one (http://redis.io/commands/migrate). The Redis command MIGRATE is split up into migrate, migrateMultiple. Since Redis 2.6.0
Move a key to another database (http://redis.io/commands/move). Since Redis 1.0.0
Inspect the internals of Redis objects (http://redis.io/commands/object). The Redis command OBJECT is split up into objectRefcount, objectEncoding, objectIdletime. Since Redis 2.2.3
Inspect the internals of Redis objects (http://redis.io/commands/object). The Redis command OBJECT is split up into objectRefcount, objectEncoding, objectIdletime. Since Redis 2.2.3
Inspect the internals of Redis objects (http://redis.io/commands/object). The Redis command OBJECT is split up into objectRefcount, objectEncoding, objectIdletime. Since Redis 2.2.3
Remove the expiration from a key (http://redis.io/commands/persist). Since Redis 2.2.0
Returns the expiration time of a key as a Unix timestamp (https://redis.io/commands/expiretime).
Returns -2 if the key does not exist; -1 if the key exists but has no associated expiration.
O(1). Since Redis 7.0.0
Set a key's time to live in milliseconds (http://redis.io/commands/pexpire). Since Redis 2.6.0
Returns the expiration time of a key as a Unix timestamp in milliseconds (https://redis.io/commands/pexpiretime).
Returns -2 if the key does not exist; -1 if the key exists but has no associated expiration.
O(1). Since Redis 7.0.0
Set the expiration for a key as a UNIX timestamp specified in milliseconds (http://redis.io/commands/pexpireat). Since Redis 2.6.0
pexpireatOpts :: RedisCtx m f=> ByteStringkey
-> IntegermillisecondsTimestamp
-> ExpireOpts-> m (f Bool)Set the expiration for a key as a UNIX timestamp specified in milliseconds (http://redis.io/commands/pexpireat). Since Redis 7.0
O(1) Get the time to live for a key in milliseconds (http://redis.io/commands/pttl). Since Redis 2.6.0
This command returns -2 if the key does not exist.
This command returns -1 if the key exists but has no associated value
Return a random key from the keyspace (http://redis.io/commands/randomkey). Since Redis 1.0.0
Rename a key (http://redis.io/commands/rename). Since Redis 1.0.0
Does not return a error even if newkey existed.
Rename a key, only if the new key does not exist (http://redis.io/commands/renamenx). Since Redis 1.0.0
restore :: RedisCtx m f=> ByteStringkey
-> IntegertimeToLive
-> ByteStringserializedValue
-> m (f Status)Create a key using the provided serialized value, previously obtained using DUMP (http://redis.io/commands/restore). The Redis command RESTORE is split up into restore, restoreReplace. Since Redis 2.6.0
restoreReplace :: RedisCtx m f=> ByteStringkey
-> IntegertimeToLive
-> ByteStringserializedValue
-> m (f Status)Create a key using the provided serialized value, previously obtained using DUMP (http://redis.io/commands/restore). The Redis command RESTORE is split up into restore, restoreReplace. Since Redis 2.6.0
Redis default ScanOpts. Equivalent to omitting all optional parameters.
ScanOpts
{ scanMatch = Nothing -- don't match any pattern
, scanCount = Nothing -- don't set any requirements on number elements returned (works like value COUNT 10)
}
Incrementally iterate the keys space (http://redis.io/commands/scan). The Redis command SCAN is split up into scan, scanOpts. Since Redis 2.8.0
scanOpts :: RedisCtx m f=> Cursor-> ScanOpts-> Maybe ByteStringtypes of the object to scan
-> m (f (Cursor, [ByteString]))next cursor and values
Incrementally iterate the keys space (http://redis.io/commands/scan). The Redis command SCAN is split up into scan, scanOpts. Since Redis 2.8.0
Options for the sort command.
Redis default SortOpts. Equivalent to omitting all optional parameters.
SortOpts
{ sortBy = Nothing -- omit the BY option
, sortLimit = (0,-1) -- return entire collection
, sortGet = [] -- omit the GET option
, sortOrder = Asc -- sort in ascending order
, sortAlpha = False -- sort numerically, not lexicographically
}
Sort the elements in a list, set or sorted set (http://redis.io/commands/sort). The Redis command SORT is split up into sort, sortStore. Since Redis 1.0.0
Sort the elements in a list, set or sorted set (http://redis.io/commands/sort). The Redis command SORT is split up into sort, sortStore. Since Redis 1.0.0
O(1) Get the time to live for a key (http://redis.io/commands/ttl). Since Redis 1.0.0
This command returns: * -2 if the key does not exist * -1 if the key exists but has no associated value
Determine the type stored at key (http://redis.io/commands/type). Since Redis 1.0.0
Delete one or more hash fields (http://redis.io/commands/hdel). Since Redis 2.0.0
Eq HashFieldExpirationStatusDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HashFieldExpirationStatusDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult HashFieldExpirationStatusDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq HashFieldExpirationInfoDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HashFieldExpirationInfoDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult HashFieldExpirationInfoDefined in hedis-0.16.4 · Database.Redis.ManualCommandsDetermine if a hash field exists (http://redis.io/commands/hexists). Since Redis 2.0.0
hexpire :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerSeconds until expiration.
-> NonEmpty ByteStringList of fields to set expiration for.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using relative time to expire in seconds (https://redis.io/commands/hexpire).
O(N) where N is the number of specified fields.
Set an expiration (TTL or time to live) on one or more fields of a given hash key. You must specify at least one field. Field(s) will automatically be deleted from the hash key when their TTLs expire.
Field expirations will only be cleared by commands that delete or overwrite the contents of the hash fields, including HDEL and HSET commands. This means that all the operations that conceptually alter the value stored at a hash key's field without replacing it with a new one will leave the TTL untouched.
You can clear the TTL using the hpersist command, which turns the hash field back into a persistent field.
Note that calling hexpirehpexpire with a zero TTL or hexpireathpexpireat with a time in the past will result in the hash field being deleted.
Since Redis 7.4.0
hexpireOpts :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerSeconds until expiration.
-> NonEmpty ByteStringList of fields to set expiration for.
-> ExpireOptsExpiration options.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using relative time to expire in seconds (https://redis.io/commands/hexpire).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
hexpireat :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerAbsolute Unix timestamp in seconds at which the hash fields will expire.
-> NonEmpty ByteStringList of fields to set expiration for.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using an absolute Unix timestamp in seconds (https://redis.io/commands/hexpireat).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
hexpireatOpts :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerAbsolute Unix timestamp in seconds at which the hash fields will expire.
-> NonEmpty ByteStringList of fields to set expiration for.
-> ExpireOptsExpiration options.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using an absolute Unix timestamp in seconds (https://redis.io/commands/hexpireat).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
Returns the expiration time of hash fields as a Unix timestamp in seconds (https://redis.io/commands/hexpiretime).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
Get the value of a hash field (http://redis.io/commands/hget). Since Redis 2.0.0
Returns the values associated with the specified fields in a hash and deletes those fields (https://redis.io/commands/hgetdel).
O(N) where N is the number of specified fields.
Since Redis 8.0.0
Returns the values associated with the specified fields in a hash and optionally updates the key expiration (https://redis.io/commands/hgetex).
O(N) where N is the number of specified fields.
Since Redis 8.0.0
Eq HGetExOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HGetExOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsReturns the values associated with the specified fields in a hash and optionally updates the key expiration (https://redis.io/commands/hgetex).
O(N) where N is the number of specified fields.
Since Redis 8.0.0
Get all the fields and values in a hash (http://redis.io/commands/hgetall).
Since Redis 2.0.0.
Increment the integer value of a hash field by the given number (http://redis.io/commands/hincrby). Since Redis 2.0.0
hincrbyfloat :: RedisCtx m f=> ByteStringkey
-> ByteStringfield
-> Doubleincrement
-> m (f Double)Increment the float value of a hash field by the given amount (http://redis.io/commands/hincrbyfloat). Since Redis 2.6.0
O(N) where N is size of the hash.
Get all the fields in a hash (http://redis.io/commands/hkeys).
Since Redis 2.0.0
O(1) Get the number of fields in a hash (http://redis.io/commands/hlen).
Since Redis 2.0.0
Get the values of all the given hash fields (http://redis.io/commands/hmget). Since Redis 2.0.0
hmset :: RedisCtx m f=> ByteStringkey
-> NonEmpty (ByteString, ByteString)fieldValue
-> m (f Status)Set multiple hash fields to multiple values (http://redis.io/commands/hmset).
Deprecated by Redis, consider using hset with multiple field-value pairs.
Since Redis 2.0.0
Returns one or more random fields from a hash (https://redis.io/commands/hrandfield).
O(N) where N is the number of fields returned.
If the provided count argument is positive, return an array of distinct fields. The array's length is either count or the hash's number of fields (HLEN), whichever is lower.
If called with a negative count, the behavior changes and the command is allowed to return the same field multiple times. In this case, the number of returned fields is the absolute value of the specified count.
Since Redis 6.2.0
Returns one or more random fields and their values from a hash (https://redis.io/commands/hrandfield).
O(N) where N is the number of fields returned.
If the provided count argument is positive, return an array of distinct fields. The array's length is either count or the hash's number of fields (HLEN), whichever is lower.
If called with a negative count, the behavior changes and the command is allowed to return the same field multiple times. In this case, the number of returned fields is the absolute value of the specified count.
Since Redis 6.2.0
hscan :: RedisCtx m f=> ByteStringkey
-> Cursor-> m (f (Cursor, [(ByteString, ByteString)]))next cursor and values
Incrementally iterate hash fields and associated values (http://redis.io/commands/hscan). The Redis command HSCAN is split up into hscan, hscanOpts. Since Redis 2.8.0
hscanOpts :: RedisCtx m f=> ByteStringkey
-> Cursor-> ScanOpts-> m (f (Cursor, [(ByteString, ByteString)]))next cursor and values
Incrementally iterate hash fields and associated values (http://redis.io/commands/hscan). The Redis command HSCAN is split up into hscan, hscanOpts. Since Redis 2.8.0
hpexpire :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerMilliseconds until expiration.
-> NonEmpty ByteStringList of fields to set expiration for.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using relative time to expire in milliseconds (https://redis.io/commands/hpexpire).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
hpexpireOpts :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerMilliseconds until expiration.
-> NonEmpty ByteStringList of fields to set expiration for.
-> ExpireOptsExpiration options.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using relative time to expire in milliseconds (https://redis.io/commands/hpexpire).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
hpexpireat :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerAbsolute Unix timestamp in milliseconds at which the hash fields will expire.
-> NonEmpty ByteStringList of fields to set expiration for.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using an absolute Unix timestamp in milliseconds (https://redis.io/commands/hpexpireat).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
hpexpireatOpts :: RedisCtx m f=> ByteStringKey of the hash.
-> IntegerAbsolute Unix timestamp in milliseconds at which the hash fields will expire.
-> NonEmpty ByteStringList of fields to set expiration for.
-> ExpireOptsExpiration options.
-> m (f [HashFieldExpirationStatus])Sets expiration for hash fields using an absolute Unix timestamp in milliseconds (https://redis.io/commands/hpexpireat).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
Returns the expiration time of hash fields as a Unix timestamp in milliseconds (https://redis.io/commands/hpexpiretime).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
Returns the TTL in milliseconds of hash fields (https://redis.io/commands/hpttl).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
hset :: RedisCtx m f=> ByteStringkey
-> NonEmpty (ByteString, ByteString)Values.
-> m (f Integer)Set the string value of a hash field (http://redis.io/commands/hset).
This command oveerides keys if they exist in the hash.
Since Redis 2.0.0
Sets fields in a hash and optionally updates the key expiration (https://redis.io/commands/hsetex).
O(N) where N is the number of fields set.
Since Redis 8.0.0
Eq HSetExConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HSetExConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg HSetExConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq HSetExOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HSetExOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsSets fields in a hash and optionally updates the key expiration (https://redis.io/commands/hsetex).
O(N) where N is the number of fields set.
Since Redis 8.0.0
Set the value of a hash field, only if the field does not exist (http://redis.io/commands/hsetnx). Since Redis 2.0.0
Get the length of the value of a hash field (http://redis.io/commands/hstrlen). Since Redis 3.2.0
httl :: RedisCtx m f=> ByteStringKey of the hash.
-> NonEmpty ByteStringList of fields to get TTL for.
-> m (f [HashFieldExpirationInfo])Returns the TTL in seconds of hash fields (https://redis.io/commands/httl).
O(N) where N is the number of specified fields.
Since Redis 7.4.0
Get all the values in a hash (http://redis.io/commands/hvals). Since Redis 2.0.0
O(1) Adds all the elements arguments to the HyperLogLog data structure stored at the variable name specified as first argument (http://redis.io/commands/pfadd). Since Redis 2.8.9
Return the approximated cardinality of the set(s) observed by the HyperLogLog at key(s) (http://redis.io/commands/pfcount). Since Redis 2.8.9
Merge N different HyperLogLogs into a single one (http://redis.io/commands/pfmerge). Since Redis 2.8.9
blpop :: RedisCtx m f=> [ByteString]key
-> Integertimeout
-> m (f (Maybe (ByteString, ByteString)))Remove and get the first element in a list, or block until one is available (http://redis.io/commands/blpop). Since Redis 2.0.0
blpopFloat :: RedisCtx m f=> [ByteString]key
-> Integertimeout
-> m (f (Maybe (ByteString, ByteString)))Remove and get the first element in a list, or block until one is available (http://redis.io/commands/blpop). Since Redis 6.0.0
Pops one or more elements from the first non-empty list from a list of keys, or blocks until one is available (https://redis.io/commands/blmpop).
O(N+M) where N is the number of provided keys and M is the number of elements returned.
Since Redis 7.0.0
Pops one or more elements from the first non-empty list from a list of keys, or blocks until one is available (https://redis.io/commands/blmpop).
O(N+M) where N is the number of provided keys and M is the number of elements returned.
Since Redis 7.0.0
blmove :: RedisCtx m f=> ByteStringSource
-> ByteStringDestination
-> ListDirectionDirection where to get the element from in the source list
-> ListDirectionDirection where to push the element to in the destination list
-> Integer-> m (f (Maybe ByteString))Move an element after taking it from one list and pushing it to another, or blocks until one is available (https://redis.io/commands/blmove).
In clustered environments source and destination keys must be in the same hash slot, which can be ensured by using hash tags (e.g. {tag}source and {tag}destination).
O(1)
Since Redis 6.2.0
Eq ListDirectionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ListDirectionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg ListDirectionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsbrpop :: RedisCtx m f=> NonEmpty ByteStringkey
-> Integertimeout
-> m (f (Maybe (ByteString, ByteString)))O(N) Remove and get the last element in a list, or block until one is available (http://redis.io/commands/brpop).
Since Redis 2.0.0
brpopFloat :: RedisCtx m f=> [ByteString]key
-> Doubletimeout
-> m (f (Maybe (ByteString, ByteString)))O(N) Remove and get the last element in a list, or block until one is available (http://redis.io/commands/brpop).
Since Redis 2.0.0
brpoplpush :: RedisCtx m f=> ByteStringsource
-> ByteStringdestination
-> Integertimeout
-> m (f (Maybe ByteString))Pop a value from a list, push it to another list and return it; or block until one is available (http://redis.io/commands/brpoplpush).
Since Redis 6.0 this command considered deprecated: it can be replaced by BLMOVE with the RIGHT and LEFT arguments when migrating or writing new code.
Since Redis 2.2.0
Get an element from a list by its index (http://redis.io/commands/lindex). Since Redis 1.0.0
linsertBefore :: RedisCtx m f=> ByteStringkey
-> ByteStringpivot
-> ByteStringvalue
-> m (f Integer)Insert an element before or after another element in a list (http://redis.io/commands/linsert). The Redis command LINSERT is split up into linsertBefore, linsertAfter. Since Redis 2.2.0
linsertAfter :: RedisCtx m f=> ByteStringkey
-> ByteStringpivot
-> ByteStringvalue
-> m (f Integer)Insert an element before or after another element in a list (http://redis.io/commands/linsert). The Redis command LINSERT is split up into linsertBefore, linsertAfter. Since Redis 2.2.0
Get the length of a list (http://redis.io/commands/llen). Since Redis 1.0.0
Pops one or more elements from the first non-empty list from a list of keys (https://redis.io/commands/lmpop).
O(N+M) where N is the number of provided keys and M is the number of elements returned.
Since Redis 7.0.0
Pops one or more elements from the first non-empty list from a list of keys (https://redis.io/commands/lmpop).
O(N+M) where N is the number of provided keys and M is the number of elements returned.
Since Redis 7.0.0
Returns the index of the first matching element in a list (https://redis.io/commands/lpos).
O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time.
Since Redis 6.0.6
Returns the index of the first matching element in a list (https://redis.io/commands/lpos).
O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time.
Since Redis 6.0.6
Returns the indexes of matching elements in a list (https://redis.io/commands/lpos).
O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time.
Since Redis 6.0.6
Returns the indexes of matching elements in a list (https://redis.io/commands/lpos).
O(N) where N is the number of elements in the list, for the average case. When searching for elements near the head or the tail of the list, or when the MAXLEN option is provided, the command may run in constant time.
Since Redis 6.0.6
Remove and get the first element in a list (http://redis.io/commands/lpop). Since Redis 1.0.0
Remove and get the first element in a list (http://redis.io/commands/lpop). The reply will consist of up to count elements, depending on the list's length. Since Redis 1.0.0
lmove :: RedisCtx m f=> ByteStringSource
-> ByteStringDestination
-> ListDirectionDirection where to get the element from in the source list
-> ListDirectionDirection where to push the element to in the destination list
-> m (f (Maybe ByteString))Move an element after taking it from one list and pushing it to another (https://redis.io/commands/lmove).
In clustered environments source and destination keys must be in the same hash slot, which can be ensured by using hash tags (e.g. {tag}source and {tag}destination).
O(1)
Since Redis 6.2.0
Prepend one or multiple values to a list (http://redis.io/commands/lpush). Since Redis 1.0.0
Prepend a value to a list, only if the list exists (http://redis.io/commands/lpushx). Since Redis 2.2.0
Get a range of elements from a list (http://redis.io/commands/lrange). Since Redis 1.0.0
Remove elements from a list (http://redis.io/commands/lrem). Since Redis 1.0.0
Set the value of an element in a list by its index (http://redis.io/commands/lset). Since Redis 1.0.0
Trim a list to the specified range (http://redis.io/commands/ltrim). Since Redis 1.0.0
Remove and get the last element in a list (http://redis.io/commands/rpop). Since Redis 1.0.0
Remove and get the last element in a list (http://redis.io/commands/rpop).
The reply will consist of up to count elements, depending on the list's length.
Result will have no more than N arguments.
Since Redis 1.0.0
rpoplpush :: RedisCtx m f=> ByteStringsource
-> ByteStringdestination
-> m (f (Maybe ByteString))Remove the last element in a list, prepend it to another list and return that element f it existed (http://redis.io/commands/rpoplpush). Since Redis 1.2.0
Append one or multiple values to a list (http://redis.io/commands/rpush). Since Redis 1.0.0
O(1) for each element added. Append a value to a list, only if the list exists (http://redis.io/commands/rpushx). Since Redis 2.2.0
eval :: (RedisCtx m f, RedisResult a)=> ByteStringscript
-> [ByteString]keys
-> [ByteString]args
-> m (f a)Execute a Lua script server side (http://redis.io/commands/eval). Since Redis 2.6.0
evalsha :: (RedisCtx m f, RedisResult a)=> ByteStringbase16-encoded sha1 hash of the script
-> [ByteString]keys
-> [ByteString]args
-> m (f a)Invokes a function (https://redis.io/commands/fcall).
Complexity depends on the function that is executed.
Since Redis 7.0.0
Invokes a read-only function (https://redis.io/commands/fcall_ro).
Complexity depends on the function that is executed.
Since Redis 7.0.0
Returns helpful text about FUNCTION subcommands (https://redis.io/commands/function-help).
O(1)
Since Redis 7.0.0
Returns information about all libraries (https://redis.io/commands/function-list).
O(N) where N is the number of functions.
Since Redis 7.0.0
Eq FunctionListOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow FunctionListOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsReturns information about all libraries (https://redis.io/commands/function-list).
O(N) where N is the number of functions.
Since Redis 7.0.0
Set the debug mode for executed scripts (http://redis.io/commands/script-debug). Since Redis 3.2.0
Check existence of scripts in the script cache (http://redis.io/commands/script-exists). Since Redis 2.6.0
Remove all the scripts from the script cache (http://redis.io/commands/script-flush). Since Redis 2.6.0
Kill the script currently in execution (http://redis.io/commands/script-kill). Since Redis 2.6.0
Load the specified Lua script into the script cache (http://redis.io/commands/script-load). Since Redis 2.6.0
Asynchronously rewrite the append-only file (http://redis.io/commands/bgrewriteaof). Since Redis 1.0.0
Asynchronously save the dataset to disk (http://redis.io/commands/bgsave).
Since Redis 1.0.0
Asynchronously save the dataset to disk (http://redis.io/commands/bgsave).
Immediately returns OK when an AOF rewrite is in progress and schedule the background save to run at the next opportunity.
A client may bee able to check if the operation succeeded using the lastsave command
Since Redis 3.2.2
Get the current connection name (http://redis.io/commands/client-getname). Since Redis 2.6.9
Get the current connection ID (http://redis.io/commands/client-id). Since Redis 5.0.0
Get the list of client connections (http://redis.io/commands/client-list). Since Redis 2.4.0
Stop processing commands from clients for some time (http://redis.io/commands/client-pause). Since Redis 2.9.50
Instruct the server whether to reply to commands (http://redis.io/commands/client-reply). Since Redis 3.2
Resumes processing commands from paused clients (https://redis.io/commands/client-unpause).
O(N) where N is the number of paused clients.
Since Redis 6.2.0
Set the current connection name (http://redis.io/commands/client-setname). Since Redis 2.6.9
The CLIENT NO-TOUCH command controls whether commands sent by the client will alter the LRULFU of the keys they access (<https:redis.iocommands/client-notouch>).
When turned on, the current client will not change LFU/LRU stats, unless it sends the TOUCH command.
When turned off, the client touches LFU/LRU stats just as a normal client.
O(1)
Since Redis 7.2.0
The CLIENT SETINFO command assigns various info attributes to the current connection which are displayed in the output of CLIENT LIST and CLIENT INFO (https://redis.io/commands/client-setinfo).
O(1)
Since Redis 7.2.0
O(1) Get total number of Redis commands (http://redis.io/commands/command-count). Since Redis 2.8.13
Get array of specific Redis command details (http://redis.io/commands/command-info). Since Redis 2.8.13
Returns a list of command names (https://redis.io/commands/command-list).
O(N) where N is the total number of Redis commands.
Since Redis 7.0.0
Eq CommandListFilterDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow CommandListFilterDefined in hedis-0.16.4 · Database.Redis.ManualCommandscommandListOpts :: RedisCtx m f=> Maybe CommandListFilterOptional filtering mode.
CommandListFilterByModule keeps only commands that belong to the given module. CommandListFilterByAclCat keeps only commands from the given ACL category. CommandListFilterByPattern keeps only commands whose names match the specified glob-style pattern.
-> m (f [ByteString])Returns a list of command names (https://redis.io/commands/command-list).
O(N) where N is the total number of Redis commands.
Since Redis 7.0.0
Eq HotkeysMetricDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HotkeysMetricDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg HotkeysMetricDefined in hedis-0.16.4 · Database.Redis.ManualCommandsHotkeysStartOptshotkeysStartTopKCount :: Maybe IntegerThe value of K for the top-K hotkeys tracking.
hotkeysStartDurationSeconds :: Maybe IntegerThe number of seconds to keep tracking before it stops automatically.
hotkeysStartSampleRatio :: Maybe IntegerThe probabilistic sampling ratio. Each key is sampled with probability 1/ratio.
hotkeysStartSlots :: Maybe (NonEmpty Integer)The hash slots to track in cluster mode.
Eq HotkeysStartOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HotkeysStartOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default HotkeysStartOpts. Equivalent to omitting all optional parameters.
Eq HotkeysSlotRangeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HotkeysSlotRangeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult HotkeysSlotRangeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsHotkeysGetResponsehotkeysGetTrackingActive :: BoolhotkeysGetSampleRatio :: IntegerhotkeysGetSelectedSlots :: [HotkeysSlotRange]hotkeysGetAllCommandsAllSlotsUs :: IntegerhotkeysGetNetBytesAllCommandsAllSlots :: IntegerhotkeysGetCollectionStartTimeUnixMs :: IntegerhotkeysGetCollectionDurationMs :: IntegerhotkeysGetTotalCpuTimeUserMs :: Maybe IntegerhotkeysGetTotalCpuTimeSysMs :: Maybe IntegerhotkeysGetTotalNetBytes :: Maybe IntegerhotkeysGetByCpuTimeUs :: Maybe [(ByteString, Integer)]hotkeysGetByNetBytes :: Maybe [(ByteString, Integer)]hotkeysGetSampledCommandsSelectedSlotsUs :: Maybe IntegerhotkeysGetAllCommandsSelectedSlotsUs :: Maybe IntegerhotkeysGetNetBytesSampledCommandsSelectedSlots :: Maybe IntegerhotkeysGetNetBytesAllCommandsSelectedSlots :: Maybe IntegerEq HotkeysGetResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow HotkeysGetResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult HotkeysGetResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsReturns tracking results and metadata from the current or most recent hotkeys tracking session (https://redis.io/commands/hotkeys-get).
O(K) where K is the number of hotkeys returned.
Since Redis 8.6.0
hotkeysStart :: RedisCtx m f=> NonEmpty HotkeysMetricThe metrics to track.
The command automatically derives the `METRICS count` argument from the number of provided metrics. At least one metric must be specified.
-> m (f Status)hotkeysStartOpts :: RedisCtx m f=> NonEmpty HotkeysMetricThe metrics to track.
-> HotkeysStartOptsAdditional tracking options.
-> m (f Status)Release the resources used for hotkey tracking (https://redis.io/commands/hotkeys-reset).
O(1)
Since Redis 8.6.0
Get the value of a configuration parameter (http://redis.io/commands/config-get). Since Redis 2.0.0
Reset the stats returned by INFO (http://redis.io/commands/config-resetstat). Since Redis 2.0.0
Rewrite the configuration file with the in memory configuration (http://redis.io/commands/config-rewrite). Since Redis 2.8.0
Set a configuration parameter to the given value (http://redis.io/commands/config-set). Since Redis 2.0.0
Return the number of keys in the selected database (http://redis.io/commands/dbsize). Since Redis 1.0.0
Get debugging information about a key (http://redis.io/commands/debug-object). Since Redis 1.0.0
Remove all keys from all databases (http://redis.io/commands/flushall). Since Redis 1.0.0
Remove all keys from the current database (http://redis.io/commands/flushdb). Since Redis 6.2
Remove all keys from the current database (http://redis.io/commands/flushdb). Since Redis 1.0.0
Remove all keys from the current database (http://redis.io/commands/flushdb). Since Redis 6.2
Get information and statistics about the server (http://redis.io/commands/info). The Redis command INFO is split up into info, infoSection. Since Redis 1.0.0
Get information and statistics about the server (http://redis.io/commands/info). The Redis command INFO is split up into info, infoSection. Since Redis 1.0.0
Get the UNIX time stamp of the last successful save to disk (http://redis.io/commands/lastsave). Since Redis 1.0.0
Synchronously save the dataset to disk (http://redis.io/commands/save). Since Redis 1.0.0
Make the server a slave of another instance, or promote it as master (http://redis.io/commands/slaveof). Deprecated in Redis, can be replaced by replicaif since redis 5.0 Since Redis 1.0.0
A single entry from the slowlog.
SlowlogslowlogId :: IntegerA unique progressive identifier for every slow log entry.
slowlogTimestamp :: IntegerThe unix timestamp at which the logged command was processed.
slowlogMicros :: IntegerThe amount of time needed for its execution, in microseconds.
slowlogCmd :: [ByteString]The command and it's arguments.
slowlogClientIpAndPort :: Maybe ByteStringslowlogClientName :: Maybe ByteStringManages the Redis slow queries log (http://redis.io/commands/slowlog). The Redis command SLOWLOG is split up into slowlogGet, slowlogLen, slowlogReset. Since Redis 2.2.12
Manages the Redis slow queries log (http://redis.io/commands/slowlog). The Redis command SLOWLOG is split up into slowlogGet, slowlogLen, slowlogReset. Since Redis 2.2.12
Manages the Redis slow queries log (http://redis.io/commands/slowlog). The Redis command SLOWLOG is split up into slowlogGet, slowlogLen, slowlogReset. Since Redis 2.2.12
Return the current server time (http://redis.io/commands/time). Since Redis 2.6.0
sadd :: RedisCtx m f=> ByteStringKey where set is stored.
-> NonEmpty ByteStringMember to add to the set.
-> m (f Integer)O(1) for each element added. Add one or more members to a set (http://redis.io/commands/sadd). Since Redis 1.0.0
Get the number of members in a set (http://redis.io/commands/scard). Since Redis 1.0.0
Subtract multiple sets (http://redis.io/commands/sdiff). Since Redis 1.0.0
Subtract multiple sets and store the resulting set in a key (http://redis.io/commands/sdiffstore). Since Redis 1.0.0
Intersect multiple sets (http://redis.io/commands/sinter). Since Redis 1.0.0
Returns the cardinality of the intersection of multiple sets (https://redis.io/commands/sintercard).
O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 7.0.0
Eq SintercardOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow SintercardOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsReturns the cardinality of the intersection of multiple sets (https://redis.io/commands/sintercard).
O(N*M) worst case where N is the cardinality of the smallest set and M is the number of sets.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 7.0.0
Intersect multiple sets and store the resulting set in a key (http://redis.io/commands/sinterstore). Since Redis 1.0.0
Determine if a given value is a member of a set (http://redis.io/commands/sismember). Since Redis 1.0.0
Get all the members in a set (http://redis.io/commands/smembers). Since Redis 1.0.0
Determines whether multiple members belong to a set (https://redis.io/commands/smismember).
O(N) where N is the number of elements being checked for membership.
Since Redis 6.2.0
smove :: RedisCtx m f=> ByteStringsource
-> ByteStringdestination
-> ByteStringmember
-> m (f Bool)Move a member from one set to another (http://redis.io/commands/smove). Since Redis 1.0.0
Remove and return one or multiple random members from a set (http://redis.io/commands/spop). The Redis command SPOP is split up into spop, spopN. Since Redis 1.0.0
Remove and return one or multiple random members from a set (http://redis.io/commands/spop). The Redis command SPOP is split up into spop, spopN. Since Redis 1.0.0
Get one or multiple random members from a set (http://redis.io/commands/srandmember). The Redis command SRANDMEMBER is split up into srandmember, srandmemberN. Since Redis 1.0.0
Get one or multiple random members from a set (http://redis.io/commands/srandmember). The Redis command SRANDMEMBER is split up into srandmember, srandmemberN. Since Redis 1.0.0
srem :: RedisCtx m f=> ByteStringKey of the set.
-> NonEmpty ByteStringList of members to be removed.
-> m (f Integer)O(N) where N is the number of members to be removed.
Remove one or more members from a set (http://redis.io/commands/srem).
Returns the number of members that were removed from the seet, not including non existing elements.
Since Redis 1.0.0
sscan :: RedisCtx m f=> ByteStringkey
-> Cursor-> m (f (Cursor, [ByteString]))next cursor and values
Incrementally iterate Set elements (http://redis.io/commands/sscan). The Redis command SSCAN is split up into sscan, sscanOpts. Since Redis 2.8.0
sscanOpts :: RedisCtx m f=> ByteStringkey
-> Cursor-> ScanOpts-> m (f (Cursor, [ByteString]))next cursor and values
Incrementally iterate Set elements (http://redis.io/commands/sscan). The Redis command SSCAN is split up into sscan, sscanOpts. Since Redis 2.8.0
Add multiple sets (http://redis.io/commands/sunion). Since Redis 1.0.0
Add multiple sets and store the resulting set in a key (http://redis.io/commands/sunionstore). Since Redis 1.0.0
bzpopmax :: RedisCtx m f=> NonEmpty ByteStringkeys
-> Doubletimeout
-> m (f (Maybe (ByteString, ByteString, Double)))Remove and return the member with the highest score from one or more sorted sets, or block until one is available (http://redis.io/commands/bzpopmax).
Since Redis 5.0.0
bzpopmin :: RedisCtx m f=> NonEmpty ByteStringkeys
-> Doubletimeout
-> m (f (Maybe (ByteString, ByteString, Double)))Remove and return the member with the lowest score from one or more sorted sets, or block until one is available (http://redis.io/commands/bzpopmin).
Since Redis 5.0.0
Add one or more members to a sorted set, or update its score if it already exists (http://redis.io/commands/zadd). The Redis command ZADD is split up into zadd, zaddOpts. Since Redis 1.2.0
ZaddOptszaddCondition :: Maybe ConditionAdd on condition
zaddSizeCondition :: Maybe SizeConditionOnly update existing elements on condition
Since Redis 6.2
zaddChange :: BoolModify the return value from the number of new elements added, to the total number of elements changed
zaddIncrement :: BoolWhen this option is specified ZADD acts like ZINCRBY. Only one score-element pair can be specified in this mode.
Redis default ZaddOpts. Equivalent to omitting all optional parameters.
ZaddOpts
{ zaddCondition = Nothing -- omit NX and XX options
, zaddChange = False -- don't modify the return value from the number of new elements added, to the total number of elements changed
, zaddIncrement = False -- don't add like ZINCRBY
, zaddSizeCondition = Nothing -- omit GT and LT options
}
Add one or more members to a sorted set, or update its score if it already exists (http://redis.io/commands/zadd). The Redis command ZADD is split up into zadd, zaddOpts. Since Redis 1.2.0
zaddOpts :: RedisCtx m f=> ByteStringkey
-> [(Double, ByteString)]scoreMember
-> ZaddOptsoptions
-> m (f Integer)O(1) Get the number of members in a sorted set (http://redis.io/commands/zcard). Since Redis 1.2.0
Count the members in a sorted set with scores within the given values (http://redis.io/commands/zcount). Since Redis 2.0.0
Returns the difference between multiple sorted sets (https://redis.io/commands/zdiff).
O(L + (N - K)log(N)) worst case where $L$ is the total number of elements in all the sorted sets, N is the size of the first sorted set, and K is the size of the result set.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 6.2.0
zdiffWithscores :: RedisCtx m f=> NonEmpty ByteStringSorted set keys.
-> m (f [(ByteString, Double)])Returns the difference between multiple sorted sets with scores (https://redis.io/commands/zdiff).
O(L + (N - K)log(N)) worst case where $L$ is the total number of elements in all the sorted sets, N is the size of the first sorted set, and K is the size of the result set.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 6.2.0
zdiffstore :: RedisCtx m f=> ByteStringDestination key.
-> NonEmpty ByteStringSorted set keys.
-> m (f Integer)Stores the difference of multiple sorted sets in a key (https://redis.io/commands/zdiffstore).
O(L + (N - K)log(N)) worst case where $L$ is the total number of elements in all the sorted sets, N is the size of the first sorted set, and K is the size of the result set.
In clustered environment, commands must operate on keys within the same hash slot.
Keys that do not exist are considered to be empty sets.
If destination already exists, it is overwritten.
Since Redis 6.2.0
Eq SizeConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow SizeConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg SizeConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsO(log(N))
Increment the score of a member in a sorted set (http://redis.io/commands/zincrby).
Returns new score of the element.
Since Redis 1.2.0
Eq ZPopMinMaxDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ZPopMinMaxDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg ZPopMinMaxDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ZPopResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ZPopResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ZPopResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRemoves and returns member-score pairs from the first non-empty sorted set from a list of keys (https://redis.io/commands/zmpop).
O(K) + O(Mlog(N)) where K is the number of provided keys, N is the number of elements in the sorted set, and M is the number of elements popped.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 7.0.0
Removes and returns member-score pairs from the first non-empty sorted set from a list of keys (https://redis.io/commands/zmpop).
O(K) + O(Mlog(N)) where K is the number of provided keys, N is the number of elements in the sorted set, and M is the number of elements popped.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 7.0.0
Removes and returns member-score pairs from the first non-empty sorted set from a list of keys, or blocks until one is available (https://redis.io/commands/bzmpop).
O(K) + O(Mlog(N)) where K is the number of provided keys, N is the number of elements in the sorted set, and M is the number of elements popped.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 7.0.0
Removes and returns member-score pairs from the first non-empty sorted set from a list of keys, or blocks until one is available (https://redis.io/commands/bzmpop).
O(K) + O(Mlog(N)) where K is the number of provided keys, N is the number of elements in the sorted set, and M is the number of elements popped.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 7.0.0
ZAggregateOptszAggregateWeights :: [Double]WEIGHTS option, it is possible to specify a multiplication factor for each input sorted set. Each element's score is multiplied by its corresponding weight before aggregation. When WEIGHTS is not given, the multiplication factors default to 1.
zAggregateAggregate :: AggregateAGGREGATE option, it is possible to specify how the results of the union are aggregated
Eq ZAggregateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ZAggregateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsReturns the intersection of multiple sorted sets (https://redis.io/commands/zinter).
O(NK) + O(Mlog(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 6.2.0
zinterWithscores :: RedisCtx m f=> NonEmpty ByteStringSorted set keys.
-> m (f [(ByteString, Double)])Returns the intersection of multiple sorted sets with scores (https://redis.io/commands/zinter).
O(NK) + O(Mlog(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 6.2.0
zinterOpts :: RedisCtx m f=> NonEmpty ByteStringSorted set keys.
-> ZAggregateOpts-> m (f [ByteString])Returns the intersection of multiple sorted sets (https://redis.io/commands/zinter).
O(NK) + O(Mlog(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 6.2.0
zinterWithscoresOpts :: RedisCtx m f=> NonEmpty ByteStringSorted set keys.
-> ZAggregateOpts-> m (f [(ByteString, Double)])Returns the intersection of multiple sorted sets with scores (https://redis.io/commands/zinter).
O(NK) + O(Mlog(M)) worst case with N being the smallest input sorted set, K being the number of input sorted sets and M being the number of elements in the resulting sorted set.
In clustered environment, commands must operate on keys within the same hash slot.
Since Redis 6.2.0
zinterstore :: RedisCtx m f=> ByteStringdestination
-> NonEmpty ByteStringkeys
-> Aggregate-> m (f Integer)Intersect multiple sorted sets and store the resulting sorted set in a new key (http://redis.io/commands/zinterstore). The Redis command ZINTERSTORE is split up into zinterstore, zinterstoreWeights. Since Redis 2.0.0
zinterstoreWeights :: RedisCtx m f=> ByteStringdestination
-> NonEmpty (ByteString, Double)weighted keys
-> Aggregate-> m (f Integer)Intersect multiple sorted sets and store the resulting sorted set in a new key (http://redis.io/commands/zinterstore). The Redis command ZINTERSTORE is split up into zinterstore, zinterstoreWeights. Since Redis 2.0.0
Count the number of members in a sorted set between a given lexicographical range (http://redis.io/commands/zlexcount). Since Redis 2.8.9
Returns the score of one or more members in a sorted set (https://redis.io/commands/zmscore).
O(N) where N is the number of members being requested.
Since Redis 6.2.0
Remove and return the member with the lowest score in a sorted set (http://redis.io/commands/zpopmin).
Since Redis 5.0.0
Remove and return the member with the highest score in a sorted set (http://redis.io/commands/zpopmax).
Since Redis 5.0.0
Returns a random member from a sorted set (https://redis.io/commands/zrandmember).
O(1) without the optional count argument.
Since Redis 6.2.0
Returns one or more random members from a sorted set (https://redis.io/commands/zrandmember).
O(N) where N is the number of members returned.
Since Redis 6.2.0
Returns one or more random members and their scores from a sorted set (https://redis.io/commands/zrandmember).
O(N) where N is the number of members returned.
Since Redis 6.2.0
Return a range of members in a sorted set, by index (http://redis.io/commands/zrange). The Redis command ZRANGE is split up into zrange, zrangeWithscores. Since Redis 1.2.0
zrangeWithscores :: RedisCtx m f=> ByteStringkey
-> Integerstart
-> Integerstop
-> m (f [(ByteString, Double)])Return a range of members in a sorted set, by index (http://redis.io/commands/zrange). The Redis command ZRANGE is split up into zrange, zrangeWithscores. Since Redis 1.2.0
Eq ZRangeStoreRangeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ZRangeStoreRangeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ZRangeStoreOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ZRangeStoreOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsStores a range of members from a sorted set in a destination key (https://redis.io/commands/zrangestore).
O(log(N) + M) with N being the number of elements in the sorted set and M the number of elements stored into the destination key.
Since Redis 6.2.0
Stores a range of members from a sorted set in a destination key (https://redis.io/commands/zrangestore).
O(log(N) + M) with N being the number of elements in the sorted set and M the number of elements stored into the destination key.
Since Redis 6.2.0
zrangebylex :: RedisCtx m f=> ByteStringkey
-> RangeLex ByteStringmin
-> RangeLex ByteStringmax
-> m (f [ByteString])Return a range of members in a sorted set, by lexicographical range (http://redis.io/commands/zrangebylex). Since Redis 2.8.9
zrangebylexLimit :: RedisCtx m f=> ByteStringkey
-> RangeLex ByteStringmin
-> RangeLex ByteStringmax
-> Integeroffset
-> Integercount
-> m (f [ByteString])Return a range of members in a sorted set, by score (http://redis.io/commands/zrangebyscore). The Redis command ZRANGEBYSCORE is split up into zrangebyscore, zrangebyscoreWithscores, zrangebyscoreLimit, zrangebyscoreWithscoresLimit. Since Redis 1.0.5
zrangebyscoreWithscores :: RedisCtx m f=> ByteStringkey
-> Doublemin
-> Doublemax
-> m (f [(ByteString, Double)])Return a range of members in a sorted set, by score (http://redis.io/commands/zrangebyscore). The Redis command ZRANGEBYSCORE is split up into zrangebyscore, zrangebyscoreWithscores, zrangebyscoreLimit, zrangebyscoreWithscoresLimit. Since Redis 1.0.5
zrangebyscoreLimit :: RedisCtx m f=> ByteStringkey
-> Doublemin
-> Doublemax
-> Integeroffset
-> Integercount
-> m (f [ByteString])Return a range of members in a sorted set, by score (http://redis.io/commands/zrangebyscore). The Redis command ZRANGEBYSCORE is split up into zrangebyscore, zrangebyscoreWithscores, zrangebyscoreLimit, zrangebyscoreWithscoresLimit. Since Redis 1.0.5
zrangebyscoreWithscoresLimit :: RedisCtx m f=> ByteStringkey
-> Doublemin
-> Doublemax
-> Integeroffset
-> Integercount
-> m (f [(ByteString, Double)])Return a range of members in a sorted set, by score (http://redis.io/commands/zrangebyscore). The Redis command ZRANGEBYSCORE is split up into zrangebyscore, zrangebyscoreWithscores, zrangebyscoreLimit, zrangebyscoreWithscoresLimit. Since Redis 1.0.5
Determine the index of a member in a sorted set (http://redis.io/commands/zrank).
Since Redis 2.0.0
zrankWithScore :: RedisCtx m f=> ByteStringKey of the set.
-> ByteStringMember.
-> m (f (Maybe (Integer, Double)))Since Redis 7.2.0: fails on earlier versions
O(M*log(N)) with N number of elements in the sorted set, M number of elements to be
removed.
Removes one or more members from a sorted set (http://redis.io/commands/zrem).
Since Redis 1.2.0
O(log(N)+M) with N being thee number of elements in thee sorted set and M the number
of elements removed by the operation.
Remove all members in a sorted set between the given lexicographical range (http://redis.io/commands/zremrangebylex).
Returns number of elements that were removed.
Since Redis 2.8.9
O(log(N)+M with N being the number of elements in the sorted set and M the number of elemnts removed by the operation.
Remove all members in a sorted set within the given indexes (http://redis.io/commands/zremrangebyrank).
Returns a number of elements that were removed.
Since Redis 2.0.0
O(log(N)+M) with N number of elements in the set, M number of elements to be removed.
Remove all members in a sorted set within the given scores (http://redis.io/commands/zremrangebyscore).
Returns a number of elements that were removed.
Since Redis 1.2.0
Return a range of members in a sorted set, by index, with scores ordered from high to low (http://redis.io/commands/zrevrange). The Redis command ZREVRANGE is split up into zrevrange, zrevrangeWithscores. Since Redis 1.2.0
zrevrangeWithscores :: RedisCtx m f=> ByteStringkey
-> Integerstart
-> Integerstop
-> m (f [(ByteString, Double)])Return a range of members in a sorted set, by index, with scores ordered from high to low (http://redis.io/commands/zrevrange). The Redis command ZREVRANGE is split up into zrevrange, zrevrangeWithscores. Since Redis 1.2.0
Return a range of members in a sorted set, by score, with scores ordered from high to low (http://redis.io/commands/zrevrangebyscore). The Redis command ZREVRANGEBYSCORE is split up into zrevrangebyscore, zrevrangebyscoreWithscores, zrevrangebyscoreLimit, zrevrangebyscoreWithscoresLimit. Since Redis 2.2.0
zrevrangebyscoreWithscores :: RedisCtx m f=> ByteStringkey
-> Doublemax
-> Doublemin
-> m (f [(ByteString, Double)])Return a range of members in a sorted set, by score, with scores ordered from high to low (http://redis.io/commands/zrevrangebyscore). The Redis command ZREVRANGEBYSCORE is split up into zrevrangebyscore, zrevrangebyscoreWithscores, zrevrangebyscoreLimit, zrevrangebyscoreWithscoresLimit. Since Redis 2.2.0
zrevrangebyscoreLimit :: RedisCtx m f=> ByteStringkey
-> Doublemax
-> Doublemin
-> Integeroffset
-> Integercount
-> m (f [ByteString])Return a range of members in a sorted set, by score, with scores ordered from high to low (http://redis.io/commands/zrevrangebyscore). The Redis command ZREVRANGEBYSCORE is split up into zrevrangebyscore, zrevrangebyscoreWithscores, zrevrangebyscoreLimit, zrevrangebyscoreWithscoresLimit. Since Redis 2.2.0
zrevrangebyscoreWithscoresLimit :: RedisCtx m f=> ByteStringkey
-> Doublemax
-> Doublemin
-> Integeroffset
-> Integercount
-> m (f [(ByteString, Double)])Return a range of members in a sorted set, by score, with scores ordered from high to low (http://redis.io/commands/zrevrangebyscore). The Redis command ZREVRANGEBYSCORE is split up into zrevrangebyscore, zrevrangebyscoreWithscores, zrevrangebyscoreLimit, zrevrangebyscoreWithscoresLimit. Since Redis 2.2.0
Determine the index of a member in a sorted set, with scores ordered from high to low (http://redis.io/commands/zrevrank). Since Redis 2.0.0
zrevrankWithScore :: RedisCtx m f=> ByteStringkey
-> ByteStringmember
-> m (f (Maybe (Integer, Double)))zscan :: RedisCtx m f=> ByteStringkey
-> Cursor-> m (f (Cursor, [(ByteString, Double)]))next cursor and values
Incrementally iterate sorted sets elements and associated scores (http://redis.io/commands/zscan). The Redis command ZSCAN is split up into zscan, zscanOpts. Since Redis 2.8.0
zscanOpts :: RedisCtx m f=> ByteStringkey
-> Cursor-> ScanOpts-> m (f (Cursor, [(ByteString, Double)]))next cursor and values
Incrementally iterate sorted sets elements and associated scores (http://redis.io/commands/zscan). The Redis command ZSCAN is split up into zscan, zscanOpts. Since Redis 2.8.0
Get the score associated with the given member in a sorted set (http://redis.io/commands/zscore). Since Redis 1.2.0
Returns the union of multiple sorted sets (https://redis.io/commands/zunion).
O(N) + O(Mlog(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
Since Redis 6.2.0
Returns the union of multiple sorted sets with scores (https://redis.io/commands/zunion).
O(N) + O(Mlog(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
Since Redis 6.2.0
Returns the union of multiple sorted sets (https://redis.io/commands/zunion).
O(N) + O(Mlog(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
Since Redis 6.2.0
Returns the union of multiple sorted sets with scores (https://redis.io/commands/zunion).
O(N) + O(Mlog(M)) with N being the sum of the sizes of the input sorted sets, and M being the number of elements in the resulting sorted set.
Since Redis 6.2.0
zunionstore :: RedisCtx m f=> ByteStringdestination
-> [ByteString]keys
-> Aggregate-> m (f Integer)Add multiple sorted sets and store the resulting sorted set in a new key (http://redis.io/commands/zunionstore). The Redis command ZUNIONSTORE is split up into zunionstore, zunionstoreWeights. Since Redis 2.0.0
zunionstoreWeights :: RedisCtx m f=> ByteStringdestination
-> [(ByteString, Double)]weighted keys
-> Aggregate-> m (f Integer)Add multiple sorted sets and store the resulting sorted set in a new key (http://redis.io/commands/zunionstore). The Redis command ZUNIONSTORE is split up into zunionstore, zunionstoreWeights. Since Redis 2.0.0
Eq VAddQuantizationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VAddQuantizationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg VAddQuantizationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default VAddOpts. Equivalent to omitting all optional parameters.
Eq VQuantizationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VQuantizationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg VQuantizationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult VQuantizationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq VEmbRawResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VEmbRawResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult VEmbRawResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq VInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult VInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq VLinksResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VLinksResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult VLinksResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq VLinksWithScoresResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VLinksWithScoresResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult VLinksWithScoresResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq VSimWithAttribsResultDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VSimWithAttribsResultDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult VSimWithAttribsResultDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq VSimWithAttribsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow VSimWithAttribsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult VSimWithAttribsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsvadd :: RedisCtx m f=> ByteStringThe name of the key that will hold the vector set data.
-> NonEmpty DoubleThe vector values as floating point numbers.
This uses the VALUES argument form and automatically supplies the number of vector elements.
-> ByteStringThe name of the element that is being added to the vector set.
-> m (f Bool)Adds a new element to a vector set, or updates its vector if it already exists (https://redis.io/commands/vadd).
O(log(N)) for each element added, where N is the number of elements in the vector set.
Since Redis 8.0.0
vaddOpts :: RedisCtx m f=> ByteStringThe name of the key that will hold the vector set data.
-> NonEmpty DoubleThe vector values as floating point numbers.
-> ByteStringThe name of the element that is being added to the vector set.
-> VAddOptsAdditional parameters.
`REDUCE dim` reduces the dimensionality of the vector using random projection.
CAS performs the slow neighbor candidate collection in the background.
NOQUANT, Q8, and BIN control quantization and are mutually exclusive.
EF sets the build exploration factor.
SETATTR associates attributes with the entry.
M sets the maximum number of graph links per node.
-> m (f Bool)Adds a new element to a vector set, or updates its vector if it already exists (https://redis.io/commands/vadd).
O(log(N)) for each element added, where N is the number of elements in the vector set.
Since Redis 8.0.0
vcard :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> m (f Integer)Return the number of elements in the specified vector set (https://redis.io/commands/vcard).
O(1)
Since Redis 8.0.0
vdim :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> m (f Integer)Return the number of dimensions of the vectors in the specified vector set (https://redis.io/commands/vdim).
O(1)
Since Redis 8.0.0
vemb :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element whose vector you want to retrieve.
-> m (f [Double])Return the approximate vector associated with a given element in the vector set (https://redis.io/commands/vemb).
O(1)
Since Redis 8.0.0
vembRaw :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element whose vector you want to retrieve.
-> m (f (Maybe VEmbRawResponse))Return the raw internal representation of the vector associated with a given element in the vector set (https://redis.io/commands/vemb).
O(1)
Since Redis 8.0.0
vgetattr :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element whose attributes you want to retrieve.
-> m (f (Maybe ByteString))Retrieve the JSON attributes of an element in a vector set (https://redis.io/commands/vgetattr).
O(1)
Since Redis 8.0.0
vinfo :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> m (f (Maybe VInfoResponse))Return metadata and internal details about a vector set (https://redis.io/commands/vinfo).
O(1)
Since Redis 8.0.0
vismember :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element to check.
-> m (f Bool)Check if an element exists in a vector set (https://redis.io/commands/vismember).
O(1)
Since Redis 8.0.0
vlinks :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element whose HNSW neighbors you want to inspect.
-> m (f (Maybe VLinksResponse))Return the neighbors of a specified element in a vector set (https://redis.io/commands/vlinks).
O(1)
Since Redis 8.0.0
vlinksWithScores :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element whose HNSW neighbors you want to inspect.
-> m (f (Maybe VLinksWithScoresResponse))Return the neighbors of a specified element in a vector set together with their similarity scores (https://redis.io/commands/vlinks).
O(1)
Since Redis 8.0.0
vrandmember :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> m (f (Maybe ByteString))Return one random element from a vector set (https://redis.io/commands/vrandmember).
O(N) where N is the absolute value of the count argument.
Since Redis 8.0.0
vrandmemberCount :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> IntegerThe number of elements to return.
Positive values return distinct elements; negative values allow duplicates.
-> m (f [ByteString])Return one or multiple random elements from a vector set (https://redis.io/commands/vrandmember).
O(N) where N is the absolute value of the count argument.
Since Redis 8.0.0
vrange :: RedisCtx m f=> ByteStringThe name of the vector set key from which to retrieve elements.
-> ByteStringThe starting point of the lexicographical range.
Use a value prefixed with `[` for an inclusive bound, a value prefixed with `(` for an exclusive bound, or - for the minimum element.
-> ByteStringThe ending point of the lexicographical range.
Use a value prefixed with `[` for an inclusive bound, a value prefixed with `(` for an exclusive bound, or + for the maximum element.
-> m (f [ByteString])Returns elements in a lexicographical range (https://redis.io/commands/vrange).
O(log(K)+M) where K is the number of elements in the start prefix, and M is the number of elements returned. In practical terms, the command is just O(M).
Since Redis 8.4.0
vrangeCount :: RedisCtx m f=> ByteStringThe name of the vector set key from which to retrieve elements.
-> ByteStringThe starting point of the lexicographical range.
-> ByteStringThe ending point of the lexicographical range.
-> IntegerThe maximum number of elements to return.
If count is negative, the command returns all elements in the specified range.
-> m (f [ByteString])Returns elements in a lexicographical range (https://redis.io/commands/vrange).
O(log(K)+M) where K is the number of elements in the start prefix, and M is the number of elements returned. In practical terms, the command is just O(M).
Since Redis 8.4.0
vrem :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element to remove from the vector set.
-> m (f Bool)Remove an element from a vector set (https://redis.io/commands/vrem).
O(log(N)) for each element removed, where N is the number of elements in the vector set.
Since Redis 8.0.0
vsetattr :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set.
-> ByteStringThe name of the element in the vector set.
-> ByteStringThe attributes as a JSON object string.
Use the empty string to remove existing attributes.
-> m (f Bool)Associate or remove the JSON attributes of an element in a vector set (https://redis.io/commands/vsetattr).
O(1)
Since Redis 8.0.0
vsim :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set data.
-> VSimQueryQuery vector source.
Use VSimByElement to refer to an existing element, VSimByFp32 for binary float format, or VSimByValues for a list of float values.
-> m (f [ByteString])Return elements similar to a given vector or element (https://redis.io/commands/vsim).
O(log(N)) where N is the number of elements in the vector set.
Since Redis 8.0.0
vsimOpts :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set data.
-> VSimQueryQuery vector source.
-> VSimOptsAdditional search options.
COUNT limits the number of returned results.
EPSILON filters out elements that are too far from the query vector.
EF controls the exploration factor.
FILTER applies a filtering expression and `FILTER-EF` limits filtering effort.
TRUTH forces an exact linear scan.
NOTHREAD executes the search in the main thread.
-> m (f [ByteString])Return elements similar to a given vector or element (https://redis.io/commands/vsim).
O(log(N)) where N is the number of elements in the vector set.
Since Redis 8.0.0
vsimWithScores :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set data.
-> VSimQueryQuery vector source.
-> m (f [(ByteString, Double)])Return elements similar to a given vector or element together with their similarity scores (https://redis.io/commands/vsim).
O(log(N)) where N is the number of elements in the vector set.
Since Redis 8.0.0
Return elements similar to a given vector or element together with their similarity scores (https://redis.io/commands/vsim).
O(log(N)) where N is the number of elements in the vector set.
Since Redis 8.0.0
vsimWithScoresWithAttribs :: RedisCtx m f=> ByteStringThe name of the key that holds the vector set data.
-> VSimQueryQuery vector source.
-> m (f VSimWithAttribsResponse)Return elements similar to a given vector or element together with their similarity scores and JSON attributes (https://redis.io/commands/vsim).
O(log(N)) where N is the number of elements in the vector set.
Since Redis 8.2.0
Return elements similar to a given vector or element together with their similarity scores and JSON attributes (https://redis.io/commands/vsim).
O(log(N)) where N is the number of elements in the vector set.
Since Redis 8.2.0
Eq ARGrepPredicateDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ARGrepPredicateDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ARGrepCombineDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ARGrepCombineDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ARGrepOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ARGrepOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default ARGrepOpts. Equivalent to omitting all optional parameters.
Eq ARLastItemsOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ARLastItemsOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default ARLastItemsOpts. Equivalent to omitting all optional parameters.
Eq ARScanOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ARScanOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default ARScanOpts. Equivalent to omitting all optional parameters.
Eq ARIndexValuePairsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ARIndexValuePairsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ARIndexValuePairsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsARInfoResponsearInfoCount :: IntegerarInfoLength :: IntegerarInfoNextInsertIndex :: IntegerarInfoSlices :: IntegerarInfoDirectorySize :: IntegerarInfoSuperDirEntries :: IntegerarInfoSliceSize :: IntegerarInfoDenseSlices :: Maybe IntegerarInfoSparseSlices :: Maybe IntegerarInfoAvgDenseSize :: Maybe DoublearInfoAvgDenseFill :: Maybe DoublearInfoAvgSparseSize :: Maybe DoubleEq ARInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ARInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ARInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsReturns the number of non-empty elements in an array (https://redis.io/commands/arcount).
O(1)
Since Redis 8.8.0
ardel :: RedisCtx m f=> ByteStringArray key.
-> NonEmpty IntegerOne or more zero-based indices to delete.
-> m (f Integer)Deletes elements at the specified indices in an array (https://redis.io/commands/ardel).
O(N) where N is the number of indices to delete.
Since Redis 8.8.0
argetrange :: RedisCtx m f=> ByteStringArray key.
-> IntegerStart index.
-> IntegerEnd index, inclusive.
-> m (f [Maybe ByteString])Gets values in a range of indices (https://redis.io/commands/argetrange).
O(N) where N is the range length.
Since Redis 8.8.0
argrep :: RedisCtx m f=> ByteStringArray key.
-> ByteStringStart index or - for the first array index.
-> ByteStringEnd index or + for the last array index.
-> NonEmpty ARGrepPredicateOne or more predicates to apply.
-> m (f [Integer])Searches array elements in a range using textual predicates (https://redis.io/commands/argrep).
O(P * C) where P is the number of visited positions and C is the cost of evaluating predicates.
Since Redis 8.8.0
argrepOpts :: RedisCtx m f=> ByteStringArray key.
-> ByteStringStart index or - for the first array index.
-> ByteStringEnd index or + for the last array index.
-> NonEmpty ARGrepPredicateOne or more predicates to apply.
-> ARGrepOptsAdditional predicate options.
-> m (f [Integer])Searches array elements in a range using textual predicates (https://redis.io/commands/argrep).
O(P * C) where P is the number of visited positions and C is the cost of evaluating predicates.
Since Redis 8.8.0
argrepWithValues :: RedisCtx m f=> ByteStringArray key.
-> ByteStringStart index or - for the first array index.
-> ByteStringEnd index or + for the last array index.
-> NonEmpty ARGrepPredicateOne or more predicates to apply.
-> m (f ARIndexValuePairsResponse)Searches array elements in a range and returns matching index-value pairs (https://redis.io/commands/argrep).
O(P * C) where P is the number of visited positions and C is the cost of evaluating predicates.
Since Redis 8.8.0
argrepWithValuesOpts :: RedisCtx m f=> ByteStringArray key.
-> ByteStringStart index or - for the first array index.
-> ByteStringEnd index or + for the last array index.
-> NonEmpty ARGrepPredicateOne or more predicates to apply.
-> ARGrepOptsAdditional predicate options.
-> m (f ARIndexValuePairsResponse)Searches array elements in a range and returns matching index-value pairs (https://redis.io/commands/argrep).
O(P * C) where P is the number of visited positions and C is the cost of evaluating predicates.
Since Redis 8.8.0
Returns metadata about an array (https://redis.io/commands/arinfo).
O(1), or O(N) with FULL where N is the number of slices.
Since Redis 8.8.0
Returns extended metadata about an array (https://redis.io/commands/arinfo).
O(N) where N is the number of slices.
Since Redis 8.8.0
arinsert :: RedisCtx m f=> ByteStringArray key.
-> NonEmpty ByteStringValues to insert at the current insert cursor.
-> m (f Integer)Inserts one or more values at consecutive indices (https://redis.io/commands/arinsert).
O(N) where N is the number of values.
Since Redis 8.8.0
arlastitems :: RedisCtx m f=> ByteStringArray key.
-> IntegerMaximum number of most recently inserted elements to return.
-> m (f [Maybe ByteString])Returns the most recently inserted elements (https://redis.io/commands/arlastitems).
O(N) where N is the count.
Since Redis 8.8.0
arlastitemsOpts :: RedisCtx m f=> ByteStringArray key.
-> IntegerMaximum number of most recently inserted elements to return.
-> ARLastItemsOptsAdditional options.
-> m (f [Maybe ByteString])Returns the most recently inserted elements (https://redis.io/commands/arlastitems).
O(N) where N is the count.
Since Redis 8.8.0
Returns the length of an array (max index + 1) (https://redis.io/commands/arlen).
O(1)
Since Redis 8.8.0
armget :: RedisCtx m f=> ByteStringArray key.
-> NonEmpty IntegerOne or more zero-based indices.
-> m (f [Maybe ByteString])Gets values at multiple indices in an array (https://redis.io/commands/armget).
O(N) where N is the number of indices.
Since Redis 8.8.0
Returns the next index that ARINSERT would use (https://redis.io/commands/arnext).
O(1)
Since Redis 8.8.0
aropValue :: RedisCtx m f=> ByteStringArray key.
-> IntegerStart index.
-> IntegerEnd index.
-> AROpValueAggregate operation.
-> m (f (Maybe ByteString))Performs aggregate operations on array elements in a range and returns a string result (https://redis.io/commands/arop).
O(P) where P is the number of visited positions in touched slices.
Since Redis 8.8.0
aropCount Performs aggregate operations on array elements in a range and returns an integer result (https://redis.io/commands/arop).
O(P) where P is the number of visited positions in touched slices.
Since Redis 8.8.0
arring :: RedisCtx m f=> ByteStringArray key.
-> IntegerRing buffer size.
-> NonEmpty ByteStringValues to insert.
-> m (f Integer)Inserts values into a ring buffer of specified size, wrapping and truncating as needed (https://redis.io/commands/arring).
O(M) normally, or O(N+M) on ring resize.
Since Redis 8.8.0
arscan :: RedisCtx m f=> ByteStringArray key.
-> IntegerStart index.
-> IntegerEnd index.
-> m (f ARIndexValuePairsResponse)Iterates existing elements in a range, returning index-value pairs (https://redis.io/commands/arscan).
O(P) where P is the number of visited positions in touched slices.
Since Redis 8.8.0
arscanOpts :: RedisCtx m f=> ByteStringArray key.
-> IntegerStart index.
-> IntegerEnd index.
-> ARScanOptsAdditional options.
-> m (f ARIndexValuePairsResponse)Iterates existing elements in a range, returning index-value pairs (https://redis.io/commands/arscan).
O(P) where P is the number of visited positions in touched slices.
Since Redis 8.8.0
arseek :: RedisCtx m f=> ByteStringArray key.
-> IntegerThe new insert cursor position.
-> m (f Bool)Sets the ARINSERT ARRING cursor to a specific index (<https:redis.iocommands/arseek>).
O(1)
Since Redis 8.8.0
arset :: RedisCtx m f=> ByteStringArray key.
-> IntegerStart index.
-> NonEmpty ByteStringOne or more values to store at consecutive indices.
-> m (f Integer)Sets one or more contiguous values starting at an index in an array (https://redis.io/commands/arset).
O(N) where N is the number of values.
Since Redis 8.8.0
O(1) Append a value to a key (http://redis.io/commands/append). Since Redis 2.0.0
Count set bits in a string (http://redis.io/commands/bitcount). The Redis command BITCOUNT is split up into bitcount, bitcountRange. Since Redis 2.6.0
Count set bits in a string (http://redis.io/commands/bitcount). The Redis command BITCOUNT is split up into bitcount, bitcountRange. Since Redis 2.6.0
Perform bitwise operations between strings (http://redis.io/commands/bitop). The Redis command BITOP is split up into bitopAnd, bitopOr, bitopXor, bitopNot. Since Redis 2.6.0
Perform bitwise operations between strings (http://redis.io/commands/bitop). The Redis command BITOP is split up into bitopAnd, bitopOr, bitopXor, bitopNot. Since Redis 2.6.0
Perform bitwise operations between strings (http://redis.io/commands/bitop). The Redis command BITOP is split up into bitopAnd, bitopOr, bitopXor, bitopNot. Since Redis 2.6.0
Perform bitwise operations between strings (http://redis.io/commands/bitop). The Redis command BITOP is split up into bitopAnd, bitopOr, bitopXor, bitopNot. Since Redis 2.6.0
bitpos Find first bit set or clear in a string (http://redis.io/commands/bitpos). Since Redis 2.8.7
RedisArg BitposTypeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsDecrement the integer value of a key by one (http://redis.io/commands/decr). Since Redis 1.0.0
Decrement the integer value of a key by the given number (http://redis.io/commands/decrby). Since Redis 1.0.0
Conditionally removes the specified key based on value or hash digest comparison (https://redis.io/commands/delex).
O(1) for IFEQ and IFNE. O(N) for IFDEQ and IFDNE, where N is the length of the string value.
Since Redis 8.4.0
Eq DelexConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow DelexConditionDefined in hedis-0.16.4 · Database.Redis.ManualCommandsdelexWhen :: RedisCtx m f=> ByteStringKey of the string.
-> DelexConditionCondition to enforce.
The DELEX command supports a set of options that modify its behavior.
Only one option can be specified:
IFEQ removes the key if the value is equal to the specified value.
IFNE removes the key if the value is not equal to the specified value.
IFDEQ removes the key if its hash digest is equal to the specified hash digest.
IFDNE removes the key if its hash digest is not equal to the specified hash digest.
-> m (f Bool)Conditionally removes the specified key based on value or hash digest comparison (https://redis.io/commands/delex).
O(1) for IFEQ and IFNE. O(N) for IFDEQ and IFDNE, where N is the length of the string value.
Since Redis 8.4.0
Returns the hash digest of a string value (https://redis.io/commands/digest).
O(N) where N is the length of the string value.
Since Redis 8.4.0
Get the value of a key (http://redis.io/commands/get). Since Redis 1.0.0
Returns the bit value at offset in the string value stored at key (http://redis.io/commands/getbit). Since Redis 2.2.0
Returns the string value of a key after deleting the key (https://redis.io/commands/getdel).
O(1)
Since Redis 6.2.0
Returns the string value of a key after setting its expiration time (https://redis.io/commands/getex).
O(1)
Since Redis 6.2.0
Eq IncrexExpirationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow IncrexExpirationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq a => Eq (IncrexOpts a)Defined in hedis-0.16.4 · Database.Redis.ManualCommandsShow a => Show (IncrexOpts a)Defined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default IncrexOpts. Equivalent to omitting all optional parameters.
increx :: RedisCtx m f=> ByteStringThe name of the key to increment.
-> m (f (Integer, Integer))Increments the numeric value of a key by one and optionally updates its expiration (https://redis.io/commands/increx).
O(1)
Since Redis 8.8.0
increxOpts :: RedisCtx m f=> ByteStringThe name of the key to increment.
-> IncrexOpts IntegerBound and expiration options.
LBOUND and UBOUND constrain the result.
SATURATE clips out-of-bounds values instead of rejecting the increment.
EXPXEXATPXATPERSIST control the key expiration.
ENX only sets the expiration when the key currently has no TTL.
-> m (f (Integer, Integer))Increments the numeric value of a key by one and optionally updates its expiration (https://redis.io/commands/increx).
O(1)
Since Redis 8.8.0
increxBy :: RedisCtx m f=> ByteStringThe name of the key to increment.
-> IntegerThe integer increment to apply.
-> IncrexOpts IntegerBound and expiration options.
-> m (f (Integer, Integer))Increments the integer value of a key by a specific amount and optionally updates its expiration (https://redis.io/commands/increx).
O(1)
Since Redis 8.8.0
increxByFloat :: RedisCtx m f=> ByteStringThe name of the key to increment.
-> DoubleThe floating-point increment to apply.
-> IncrexOpts DoubleBound and expiration options.
-> m (f (Double, Double))Increments the floating-point value of a key by a specific amount and optionally updates its expiration (https://redis.io/commands/increx).
O(1)
Since Redis 8.8.0
Returns the string value of a key after setting its expiration time (https://redis.io/commands/getex).
O(1)
Since Redis 6.2.0
Get a substring of the string stored at a key (http://redis.io/commands/getrange). Since Redis 2.4.0
Set the string value of a key and return its old value (http://redis.io/commands/getset). Since Redis 1.0.0
Increment the integer value of a key by one (http://redis.io/commands/incr). Since Redis 1.0.0
Increment the integer value of a key by the given amount (http://redis.io/commands/incrby). Since Redis 1.0.0
Increment the float value of a key by the given amount (http://redis.io/commands/incrbyfloat). Since Redis 2.6.0
Get the values of all the given keys (http://redis.io/commands/mget). Since Redis 1.0.0
Set multiple keys to multiple values (http://redis.io/commands/mset). Since Redis 1.0.1
msetex :: RedisCtx m f=> NonEmpty (ByteString, ByteString)A series of key/value pairs.
-> m (f Bool)Atomically sets multiple string keys with an optional shared expiration in a single operation (https://redis.io/commands/msetex).
O(N) where N is the number of keys to set.
Since Redis 8.4.0
msetexOpts :: RedisCtx m f=> NonEmpty (ByteString, ByteString)A series of key/value pairs.
-> SetOptsShared condition and expiration flags.
The MSETEX command supports a set of options that modify its behavior:
NX sets the keys and their expiration time only if none of the specified keys exist.
XX sets the keys and their expiration time only if all of the specified keys already exist.
EXPXEXAT/PXAT set the shared expiration for the specified keys.
KEEPTTL retains the time to live associated with the keys.
-> m (f Bool)Atomically sets multiple string keys with an optional shared expiration in a single operation (https://redis.io/commands/msetex).
O(N) where N is the number of keys to set.
Since Redis 8.4.0
Set multiple keys to multiple values, only if none of the keys exist (http://redis.io/commands/msetnx). Since Redis 1.0.1
Set the value and expiration in milliseconds of a key (http://redis.io/commands/psetex). Condidered deprecated since it can be replaced by SET with the PX argument when migrating or writing new code Since Redis 2.6.0
SetOptssetSeconds :: Maybe IntegerSet the specified expire time, in seconds.
setMilliseconds :: Maybe IntegerSet the specified expire time, in milliseconds.
setUnixSeconds :: Maybe IntegerSet the specified Unix time at which the key will expire, in seconds.
Since Redis 6.2
setUnixMilliseconds :: Maybe IntegerSet the specified Unix time at which the key will expire, in milliseconds.
setCondition :: Maybe ConditionSet the key on condition
setKeepTTL :: BoolRetain the time to live associated with the key.
Since Redis 6.0
Redis default SetOpts. Equivalent to omitting all optional parameters.
Set the string value of a key (http://redis.io/commands/set). The Redis command SET is split up into set, setOpts, setGet, setGetOpts. Since Redis 1.0.0
Set the string value of a key (http://redis.io/commands/set). The Redis command SET is split up into set, setOpts, setGet, setGetOpts. Since Redis 1.0.0
Set the string value of a key (http://redis.io/commands/set). The Redis command SET is split up into set, setOpts, setGet, setGetOpts. Since Redis 1.0.0
Set the string value of a key (http://redis.io/commands/set). The Redis command SET is split up into set, setOpts, setGet, setGetOpts. Since Redis 1.0.0
Sets or clears the bit at offset in the string value stored at key (http://redis.io/commands/setbit). Since Redis 2.2.0
Set the value and expiration of a key (http://redis.io/commands/setex). Regarded as deprected since 2.6 as it can be replaced by SET with the EX argument when migrating or writing new code. Since Redis 2.0.0
O(1) Sets the value of a key, only if the key does not exist (http://redis.io/commands/setnx).
Returns a result if a value was set.
Since Redis 1.0.0
Overwrite part of a string at key starting at the specified offset (http://redis.io/commands/setrange).
Returns the lenght of the string after it was modified.
Since Redis 2.2.0
Get the length of the value stored in a key (http://redis.io/commands/strlen). Since Redis 2.2.0
Get a substring of the string stored at a key (http://redis.io/commands/substr).
Deprecated in Redis. Use getrange instead.
Since Redis 1.0.0
Redis default XReadOpts. Equivalent to omitting all optional parameters.
XReadOpts
{ block = Nothing -- Don't block waiting for more records
, recordCount = Nothing -- no record count
}
Eq XReadResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XReadResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult XReadResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq StreamsRecordDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow StreamsRecordDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult StreamsRecordDefined in hedis-0.16.4 · Database.Redis.ManualCommandsxadd :: RedisCtx m f=> ByteStringStream name
-> ByteStringMessage id
-> [(ByteString, ByteString)]Message data (field, value)
-> m (f ByteString)O(1) Adds a value to a stream (https://redis.io/commands/xadd). Since Redis 5.0.0
xaddOpts :: RedisCtx m f=> ByteStringStream name.
-> ByteStringMessage ID
-> [(ByteString, ByteString)]Message data (field, value)
-> XAddOptsAdditional parameteers
-> m (f ByteString)ID of the added entry.
Add a value to a stream (https://redis.io/commands/xadd). The Redis command XADD is split up into xadd, xaddOpts. Since Redis 5.0.0
XAddOptsxAddTrimOpts :: Maybe TrimOptsCall XTRIM right after XADD
xAddnoMkStream :: BoolDon't create a new stream if it doesn't exist
@since Redis 6.2
Trimming strategy.
TrimMaxlen IntegerEvicts entries as long as the stream's length exceeds the specified threshold, where threshold is a positive integer.
TrimMinId ByteStringEvicts entries with IDs lower than threshold, where threshold is a stream ID.
Since Redis 6.2: will fail if used on ealier versions.
Type of the trimming.
TrimExactExact trimming
TrimApprox (Maybe Integer)Approximate trimming. Is faster, but may leave slightly more elements in the stream if they can't be immediately deleted.
Additional parameter Specifies the maximal count of entries that will be evicted. When LIMIT and count aren't specified, the default value of 100 * the number of entries in a macro node will be implicitly used as the count, Just 0 removes the limit entirely.
xread :: RedisCtx m f=> [(ByteString, ByteString)](stream, id) pairs
-> m (f (Maybe [XReadResponse]))Read values from a stream (https://redis.io/commands/xread).
The Redis command XREAD is split up into xread, xreadOpts.
Since Redis 5.0.0
xreadOpts :: RedisCtx m f=> [(ByteString, ByteString)](stream, id) pairs
-> XReadOptsOptions
-> m (f (Maybe [XReadResponse]))Read values from a stream (https://redis.io/commands/xread). The Redis command XREAD is split up into xread, xreadOpts. Since Redis 5.0.0
xreadGroup :: RedisCtx m f=> ByteStringgroup name
-> ByteStringconsumer name
-> [(ByteString, ByteString)](stream, id) pairs
-> m (f (Maybe [XReadResponse]))Read values from a stream as part of a consumer group (https:/redis.iocommands/xreadgroup). The redis command XREADGROUP is split up into xreadGroup and xreadGroupOpts. Since Redis 5.0.0
Eq XReadGroupOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XReadGroupOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsxreadGroupOpts :: RedisCtx m f=> ByteStringgroup name
-> ByteStringconsumer name
-> [(ByteString, ByteString)](stream, id) pairs
-> XReadGroupOptsOptions
-> m (f (Maybe [XReadResponse]))Read values from a stream as part of a consumer group (https:/redis.iocommands/xreadgroup). The redis command XREADGROUP is split up into xreadGroup and xreadGroupOpts. Since Redis 5.0.0
xack :: RedisCtx m f=> ByteStringstream
-> ByteStringgroup name
-> [ByteString]message IDs
-> m (f Integer)Acknowledge receipt of a message as part of a consumer group. Since Redis 5.0.0
xackdel :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> NonEmpty ByteStringEntry IDs.
-> m (f [XEntryDeletionResult])Acknowledges and conditionally deletes entries for a consumer group (https://redis.io/commands/xackdel).
O(1) for each entry ID processed.
Since Redis 8.2.0
xackdelOpts :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> NonEmpty ByteStringEntry IDs.
-> XEntryDeletionOptsAdditional options.
-> m (f [XEntryDeletionResult])Acknowledges and conditionally deletes entries for a consumer group (https://redis.io/commands/xackdel).
O(1) for each entry ID processed.
Since Redis 8.2.0
XRefPolicyKeepRefDeletes the specified entries from the stream, but preserves existing references to these entries in all consumer groups
XRefPolicyDelRefDeletes the specified entries from the stream and also removes all references to these entries from all consumer groups' pending entry lists, effectively cleaning up all traces of the messages. If an entry ID is not in the stream, but there are dangling references, XDELEX with DELREF would still remove all those references.
XRefPolicyAckedDeletes the specified entries from the stream only if they have been acknowledged by all consumer groups.
Eq XRefPolicyDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XRefPolicyDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg XRefPolicyDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq XEntryDeletionOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XEntryDeletionOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq XEntryDeletionResultDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XEntryDeletionResultDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult XEntryDeletionResultDefined in hedis-0.16.4 · Database.Redis.ManualCommandsXCfgSetOptsxCfgSetIdmpDuration :: Maybe IntegerThe duration in seconds that each idempotent ID is retained.
xCfgSetIdmpMaxsize :: Maybe IntegerThe maximum number of idempotent IDs tracked per producer.
Eq XCfgSetOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XCfgSetOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default XCfgSetOpts. Equivalent to omitting all optional parameters.
At least one field must be set before calling xcfgset.
xcfgset :: RedisCtx m f=> ByteStringThe name of the stream key. The stream must already exist.
-> XCfgSetOptsConfiguration parameters.
At least one of xCfgSetIdmpDuration or xCfgSetIdmpMaxsize must be specified.
Calling XCFGSET clears all existing producer IDMP maps for the stream.
-> m (f Status)Sets the IDMP configuration parameters for a stream (https://redis.io/commands/xcfgset).
O(1)
Since Redis 8.6.0
Redis default XNackOpts. Equivalent to omitting all optional parameters.
xidmprecord :: RedisCtx m f=> ByteStringStream key.
-> ByteStringProducer ID.
-> ByteStringIdempotency ID.
-> ByteStringExisting stream entry ID.
-> m (f Status)Sets IDMP metadata on an existing stream message (https://redis.io/commands/xidmprecord).
This is an internal command used during AOF loading.
O(1)
Since Redis 8.6.2
xnack :: RedisCtx m f=> ByteStringStream key.
-> ByteStringConsumer group name.
-> XNackModeRelease strategy.
-> NonEmpty ByteStringStream entry IDs.
-> m (f Integer)Releases claimed messages back to the group's PEL without acknowledging them (https://redis.io/commands/xnack).
O(1) for each message ID processed.
Since Redis 8.8.0
xnackOpts :: RedisCtx m f=> ByteStringStream key.
-> ByteStringConsumer group name.
-> XNackModeRelease strategy.
-> NonEmpty ByteStringStream entry IDs.
-> XNackOptsAdditional options.
-> m (f Integer)Releases claimed messages back to the group's PEL without acknowledging them (https://redis.io/commands/xnack).
O(1) for each message ID processed.
Since Redis 8.8.0
Create a consumer group. The redis command XGROUP CREATE is split up into xgroupCreate, xgroupCreateOpts.
xgroupCreate :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringID of the message to start reading with.
-> m (f Status)O(1) Creates consumer group.
Fails if called on with the stream name that does not exist, use xgroupCreateOpts to override this behavior.
xgroupCreateOpts :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringID of the message to start reading with.
-> XGroupCreateOptsAdditional parameters.
-> m (f Status)O(1) Creates consumer group, accepts additional parameters.
Additional parameters of the XGroupCreate
XGroupCreateOptsxGroupCreateMkStream :: BoolIf a stream does not exist, create it automatically with length of 0
xGroupCreateEntriesRead :: Maybe ByteStringEnable consumer group lag tracking, specify an arbitrary ID.
An arbitrary ID is any ID that isn't the ID of the stream's first entry,
last entry, or zero ("0-0") ID. Use it to find out how many entries
are between the arbitrary ID (excluding it) and the stream's last entry.
Since Redis 7.0, fails if set on the ealier versions.
Eq XGroupCreateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XGroupCreateOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsSpecifies default group opts.
Prefer using this method over use of constructor to preserve backwards compatibility.
xgroupCreateConsumer :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringConsumer name.
-> m (f Bool)Returns if the consumer was created or not.
O(1) Creates new consumer in the consumers group.
Since redis 6.2.0: fails on the ealier versions.
Sets last delivered ID for a consumer group. The redis command XGROUP SETID is split up into xgroupSetId and xgroupSetIdOpts methods.
xgroupSetId :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumr group name.
-> ByteStringMessage ID or $
-> m (f Status)O(1) Sets last delivered id for a consumer group.
xgroupSetIdOpts :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringMessage id or @$S
-> XGroupSetIdOptsAdditional parameters.
-> m (f Status)O(1) a variant of the xgroupSetId that allowes to pass additional parameters.
Additional parameters for the xgroupSetId method
XGroupSetIdOptsxGroupSetIdEntriesRead :: Maybe ByteStringEnable consumer group lag tracking for an arbitrary ID. An arbitrary ID is any ID that isn't the ID of the stream's first entry, its last entry or the zero ("0-0") ID
@since Redis 7.0, fails if set to Just on ealier versions.
Default value for the XGroupSetIdOpts.
Prefer use this method over the raw constructor in order to preserve backwards compatibility.
xgroupDestroy :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> m (f Bool)Tells if the group was destroyed or not.
O(1) destroys a group.
xgroupDelConsumer :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringConsumer name.
-> m (f Integer)The number of pending messages owned by the consumer.
O(1) Delete consumer.
xrange :: RedisCtx m f=> ByteStringstream
-> ByteStringstart
-> ByteStringend
-> Maybe IntegerCOUNT
-> m (f [StreamsRecord])Read values from a stream within a range (https:/redis.iocommands/xrange). Since Redis 5.0.0
xrevRange :: RedisCtx m f=> ByteStringstream
-> ByteStringend
-> ByteStringstart
-> Maybe IntegerCOUNT
-> m (f [StreamsRecord])Read values from a stream within a range in reverse order (https:/redis.iocommands/xrevrange). Since Redis 5.0.0
Get the number of entries in a stream (https:/redis.iocommands/xlen). Since Redis 5.0.0
The Redis XPENDING command is split into xpendingSummary and xpendingDetail.
xpendingSummary :: RedisCtx m f=> ByteStringStream name.
-> ByteStringStream consumer group.
-> m (f XPendingSummaryResponse)O(N) N - number of message beign returned.
Get information about pending messages (https:/redis.iocommands/xpending).
Since Redis 5.0.
Eq XPendingSummaryResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XPendingSummaryResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult XPendingSummaryResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsAdditional parameters of the xpending call family
XPendingDetailOptsxPendingDetailConsumer :: Maybe ByteStringFetch the messages having a specific owner.
xPendingDetailIdle :: Maybe IntegerFilter pending stream entries by their idle-time, ms
Since Redis 6.2: Just values will fail
Default XPendingOpts values.
Prefer this method over use of the constructor in order to preserve backwards compatibility.
Details about message returned by the xpendingDetails
Eq XPendingDetailRecordDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XPendingDetailRecordDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult XPendingDetailRecordDefined in hedis-0.16.4 · Database.Redis.ManualCommandsxpendingDetail :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringID of the first interesting message.
-> ByteStringID of the last intersting message.
-> IntegerLimits the numbere of messages returned from the call.
-> XPendingDetailOpts-> m (f [XPendingDetailRecord])O(N) N - number of messages returned.
Get detailed information about pending messages (https:/redis.iocommands/xpending).
Eq XClaimOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XClaimOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsxclaim :: RedisCtx m f=> ByteStringstream
-> ByteStringgroup
-> ByteStringconsumer
-> Integermin idle time
-> XClaimOptsoptional arguments
-> [ByteString]message IDs
-> m (f [StreamsRecord])Change ownership of some messages to the given consumer, returning the updated messages. The Redis XCLAIM command is split into xclaim and xclaimJustIds. Since Redis 5.0.0
xclaimJustIds :: RedisCtx m f=> ByteStringstream
-> ByteStringgroup
-> ByteStringconsumer
-> Integermin idle time
-> XClaimOptsoptional arguments
-> [ByteString]message IDs
-> m (f [ByteString])Change ownership of some messages to the given consumer, returning only the changed message IDs. The Redis XCLAIM command is split into xclaim and xclaimJustIds. Since Redis 5.0.0
Family of the commands related to the autoclaim command in redis, they provide an ability to claim messages that are not processed for a long time.
Transfers ownership of pending stream entries that match the specified criteria. The message should be pending for more than <min-idle-time> milliseconds and ID should be greater than <start>.
Redis xautoclaim command is split info xautoclaim, xautoclaimOpts, xautoclaimJustIds
xautoclaimJustIdsOpt functions.
All commands are available since Redis 7.0
xautoclaim :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringConsumer name.
-> IntegerMin idle time (ms).
-> ByteStringID of the message to start.
-> m (f XAutoclaimStreamsResult)O(1) Transfers ownership of pending stream entries that match the specified criteria. The message should be pending for more than <min-idle-time> milliseconds and ID should be greater than <start>.
XAUTOCLAIM <stream name> <consumer group name> <min idle time> <start>This version of function claims no more than 100 mesages, use xautoclaimOpt to
override this behavior.
Since Redis 7.0: fails on ealier versions.
xautoclaimOpts :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringConsumer name.
-> Integermin idle time (ms).
-> ByteStringstart ID.
-> XAutoclaimOptsAdditional parameters.
-> m (f XAutoclaimStreamsResult)O(1) if count is small. Transfers ownership of pending stream entries that match the specified criteria. See xautoclaim for details.
Allows to pass additional optional parameters to set limit.
XAUTOCLAIM <stream name> <consumer group name> <min idle time> <start> COUNT <count>Since Redis 7.0: fails on the ealier versions.
Additional parameters.
XAutoclaimOptsxAutoclaimCount :: Maybe IntegerThe upper limit of the number of entries that the command attempts to claim (default: 100).
Version of the autoclaim result that contains data of the messages.
Result of the xautoclaim family of calls
XAutoclaimResultxAutoclaimResultId :: ByteStringID of message that should be used in the next xautoclaim call as a start parameter.
xAutoclaimClaimedMessages :: [resultFormat]List of succesfully claimed messages.
xAutoclaimDeletedMessages :: [ByteString]List of the messages that are available in the PEL but already deleted from the stream.
Eq resultFormat => Eq (XAutoclaimResult resultFormat)Defined in hedis-0.16.4 · Database.Redis.ManualCommandsShow resultFormat => Show (XAutoclaimResult resultFormat)Defined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult a => RedisResult (XAutoclaimResult a)Defined in hedis-0.16.4 · Database.Redis.ManualCommandsxautoclaimJustIds :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumer group name.
-> ByteStringConsumer name.
-> IntegerMin idle time (ms).
-> ByteStringstart ID.
-> m (f XAutoclaimJustIdsResult)O(1) Transfers ownership of pending stream entries that match the specified criteria. See xautoclaim for more details about criteria.
This variant returns only id of the messages without data. This method claims no more than 100 messages, see xautoclaimJustIdsOpts for changing this default.
XAUTOCLAIM <stream name> <consumer group name> <min idle time> <start> JUSTIDSince Redis 7.0: fails on the ealier versions.
xautoclaimJustIdsOpts :: RedisCtx m f=> ByteStringStream name.
-> ByteStringConsumers group name.
-> ByteStringConsumer namee.
-> Integermin idle time (ms).
-> ByteStringStart ID.
-> XAutoclaimOptsAdditional parametres.
-> m (f XAutoclaimJustIdsResult)O(1) if count is small Transfers ownership of pending stream entries that match the specified criteria. See xautoclaim for more details about criteria.
This variant returns only id of the messages without data and allows to set the maximum number of messages to be claimed.
XAUTOCLAIM <stream name> <consumer group name> <min idle time> <start> COUNT <count> JUSTIDSince Redis 7.0: fails on the ealier versions.
Version of the autoclaim result that contains only IDs.
Data structure that is returned as a result of xinfoConsumers
XInfoConsumersResponsexinfoConsumerName :: ByteStringThe name of the consumer.
xinfoConsumerNumPendingMessages :: IntegerThe number of entries in the PEL (pending elemeent list): pending messages for the consumer, which are messages that were delivered but are yet to be acknowledged
xinfoConsumerIdleTime :: IntegerThe number of milliseconds that have passed since the consumer's last attempted interaction (Examples: xreadGroup, xclam, xautoclaim)
xinfoConsumerInactive :: Maybe IntegerThe number of milliseconds that have passed since the consumer's last successful interaction (Examples: xreadGroup that actually read some entries into the PEL, xclaim/xautoclaim that actually claimed some entries)
since Redis 7.0: always Nothing@ for previous versions.
Eq XInfoConsumersResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XInfoConsumersResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult XInfoConsumersResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsxinfoConsumers :: RedisCtx m f=> ByteStringStream name.
-> ByteStringGroup name.
-> m (f [XInfoConsumersResponse])O(1) Returns information about the list of the consumers beloging to the consumer group.
Available since Redis 5.0.0
Wrapper over XINFO CONSUMERS <stream name> <group name>
Result of the xinfoGroups call.
XInfoGroupsResponsexinfoGroupsGroupName :: ByteStringName of the consumer group.
xinfoGroupsNumConsumers :: IntegerThe number of consumers in the group.
xinfoGroupsNumPendingMessages :: IntegerThe length of the group's pending entries list (PEL), which are messages that were delivered but are yet to be acknowledged.
xinfoGroupsLastDeliveredMessageId :: ByteStringThe ID of the last entry delivered to the group's consumers.
xinfoGroupsEntriesRead :: Maybe IntegerThe logical "read counter" of the last entry delivered to group's consumers.
Since Redis 7.0: always Nothing on the previous versions.
xinfoGroupsLag :: Maybe Integerthe number of entries in the stream that are still waiting to be delivered to the group's consumers, or a Nothing when that number can't be determined.
Since Redis 7.0: always Nothing on the previous versions.
Eq XInfoGroupsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XInfoGroupsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult XInfoGroupsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsO(1) Returns information about the groups.
Available since: Redis 5.0.0
Wrapper around XINFO GROUPS <stream name> call.
XInfoStreamResponsexinfoStreamLength :: IntegerThe number of entries in the stream.
xinfoStreamRadixTreeKeys :: IntegerThe number of keys in the underlying radix data structure.
xinfoStreamRadixTreeNodes :: IntegerThe number of nodes in the underlying radix data structure.
xinfoMaxDeletedEntryId :: Maybe ByteStringThe maximal entry ID that was deleted from the stream
Since Redis 7.0: always returns Nothing on the previous versions.
xinfoEntriesAdded :: Maybe IntegerThe count of all entries added to the stream during its lifetime
Since Redis 7.0: always returns Nothing on the previous versions.
xinfoRecordedFirstEntryId :: Maybe ByteStringID of first recorded entry.
Since Redis 7.0: always returns Nothing on the previous versions.
xinfoStreamNumGroups :: IntegerThe number of consumer groups defined for the stream.
xinfoStreamLastEntryId :: ByteStringID of the last entry in the stream.
xinfoStreamFirstEntry :: StreamsRecordID and field-value tuples of the first entry in the stream.
xinfoStreamLastEntry :: StreamsRecordID and field-value tuples of the last entry in the stream.
XInfoStreamEmptyResponsexinfoStreamLength :: IntegerThe number of entries in the stream.
xinfoStreamRadixTreeKeys :: IntegerThe number of keys in the underlying radix data structure.
xinfoStreamRadixTreeNodes :: IntegerThe number of nodes in the underlying radix data structure.
xinfoMaxDeletedEntryId :: Maybe ByteStringThe maximal entry ID that was deleted from the stream
Since Redis 7.0: always returns Nothing on the previous versions.
xinfoEntriesAdded :: Maybe IntegerThe count of all entries added to the stream during its lifetime
Since Redis 7.0: always returns Nothing on the previous versions.
xinfoRecordedFirstEntryId :: Maybe ByteStringID of first recorded entry.
Since Redis 7.0: always returns Nothing on the previous versions.
xinfoStreamNumGroups :: IntegerThe number of consumer groups defined for the stream.
xinfoStreamLastEntryId :: ByteStringID of the last entry in the stream.
Eq XInfoStreamResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow XInfoStreamResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult XInfoStreamResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsGet info about a stream. The Redis command XINFO is split into xinfoConsumers, xinfoGroups, and xinfoStream.
Since Redis 5.0.0
Delete messages from a stream. Since Redis 5.0.0
xdelex :: RedisCtx m f=> ByteStringStream name.
-> NonEmpty ByteStringEntry IDs.
-> m (f [XEntryDeletionResult])Conditionally deletes entries from a stream (https://redis.io/commands/xdelex).
O(1) for each entry ID processed.
Since Redis 8.2.0
xdelexOpts :: RedisCtx m f=> ByteStringStream name.
-> NonEmpty ByteStringEntry IDs.
-> XEntryDeletionOptsAdditional options.
-> m (f [XEntryDeletionResult])Conditionally deletes entries from a stream (https://redis.io/commands/xdelex).
O(1) for each entry ID processed.
Since Redis 8.2.0
Set the upper bound for number of messages in a stream. Since Redis 5.0.0
Eq GeoCoordinatesDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow GeoCoordinatesDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult GeoCoordinatesDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq GeoLocationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow GeoLocationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult GeoLocationDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq GeoSearchFromDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow GeoSearchFromDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq GeoSearchByDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow GeoSearchByDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq GeoSearchOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow GeoSearchOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq GeoSearchStoreOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow GeoSearchStoreOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsAdds one or more members to a geospatial index (https://redis.io/commands/geoadd). The Redis command GEOADD is split up into geoadd and geoAddOpts. Since Redis 3.2.0
GeoAddOptsgeoAddCondition :: Maybe ConditiongeoAddChange :: BoolModify the return value from the number of new elements added, to the number of elements changed.
Since Redis 6.2.0
Eq GeoAddOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow GeoAddOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedis default GeoAddOpts. Equivalent to omitting all optional parameters.
Adds one or more members to a geospatial index (https://redis.io/commands/geoadd).
The Redis command GEOADD is split up into geoadd and geoAddOpts.
Note: there is no geodel command because you can use zrem to remove elements.
The Geo index structure is just a sorted set.
Since Redis 3.2.0
Redis tags: write, geo, slow
Adds one or more members to a geospatial index (https://redis.io/commands/geoadd).
The Redis command GEOADD is split up into geoadd and geoAddOpts.
Since Redis 6.2.0
Returns the distance between two members of a geospatial index (https://redis.io/commands/geodist). Since Redis 3.2.0
Redis tags: read, geo, slow
Returns the longitude and latitude of members from a geospatial index (https://redis.io/commands/geopos). Since Redis 3.2.0
ACL categories: read, geo, @slow.
Queries a geospatial index for members inside an area of a box or a circle (https://redis.io/commands/geosearch). Since Redis 6.2.0
O(N+log(M)) where N is the number of elements in the grid-aligned bounding box area around the shape provided as the filter and M is the number of items inside the shape
ACL: read, geo, @slow
Since: Redis 6.2.0
Queries a geospatial index for members inside an area of a box or a circle, optionally stores the result (https://redis.io/commands/geosearchstore). Since Redis 6.2.0
Constructor for inf Redis argument values
ClusterInfoResponseclusterInfoResponseState :: ClusterInfoResponseStateclusterInfoResponseSlotsAssigned :: IntegerclusterInfoResponseSlotsOK :: IntegerclusterInfoResponseSlotsPfail :: IntegerclusterInfoResponseSlotsFail :: IntegerclusterInfoResponseKnownNodes :: IntegerclusterInfoResponseSize :: IntegerclusterInfoResponseCurrentEpoch :: IntegerclusterInfoResponseMyEpoch :: IntegerclusterInfoResponseStatsMessagesSent :: IntegerclusterInfoResponseStatsMessagesReceived :: IntegerclusterInfoResponseTotalLinksBufferLimitExceeded :: IntegerclusterInfoResponseStatsMessagesPingSent :: Maybe IntegerclusterInfoResponseStatsMessagesPingReceived :: Maybe IntegerclusterInfoResponseStatsMessagesPongSent :: Maybe IntegerclusterInfoResponseStatsMessagesPongReceived :: Maybe IntegerclusterInfoResponseStatsMessagesMeetSent :: Maybe IntegerclusterInfoResponseStatsMessagesMeetReceived :: Maybe IntegerclusterInfoResponseStatsMessagesFailSent :: Maybe IntegerclusterInfoResponseStatsMessagesFailReceived :: Maybe IntegerclusterInfoResponseStatsMessagesPublishSent :: Maybe IntegerclusterInfoResponseStatsMessagesPublishReceived :: Maybe IntegerclusterInfoResponseStatsMessagesAuthReqSent :: Maybe IntegerclusterInfoResponseStatsMessagesAuthReqReceived :: Maybe IntegerclusterInfoResponseStatsMessagesAuthAckSent :: Maybe IntegerclusterInfoResponseStatsMessagesAuthAckReceived :: Maybe IntegerclusterInfoResponseStatsMessagesUpdateSent :: Maybe IntegerclusterInfoResponseStatsMessagesUpdateReceived :: Maybe IntegerclusterInfoResponseStatsMessagesMfstartSent :: Maybe IntegerclusterInfoResponseStatsMessagesMfstartReceived :: Maybe IntegerclusterInfoResponseStatsMessagesModuleSent :: Maybe IntegerclusterInfoResponseStatsMessagesModuleReceived :: Maybe IntegerclusterInfoResponseStatsMessagesPublishshardSent :: Maybe IntegerclusterInfoResponseStatsMessagesPublishshardReceived :: Maybe IntegerEq ClusterInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterInfoResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterInfoResponseStateDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterInfoResponseStateDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterNodesResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterNodesResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterNodesResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsClusterNodesResponseEntryclusterNodesResponseNodeId :: ByteStringclusterNodesResponseNodeIp :: ByteStringclusterNodesResponseNodePort :: IntegerclusterNodesResponseNodeFlags :: [ByteString]clusterNodesResponseMasterId :: Maybe ByteStringclusterNodesResponsePingSent :: IntegerclusterNodesResponsePongReceived :: IntegerclusterNodesResponseConfigEpoch :: IntegerclusterNodesResponseLinkState :: ByteStringclusterNodesResponseSlots :: [ClusterNodesResponseSlotSpec]Eq ClusterNodesResponseEntryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterNodesResponseEntryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterNodesResponseSlotSpecDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterNodesResponseSlotSpecDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterSlotsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotsResponseEntryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterSlotsResponseEntryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotsNodeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterSlotsNodeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterSlotStatsMetricDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotStatsMetricDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisArg ClusterSlotStatsMetricDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterSlotStatsOrderByOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotStatsOrderByOptsDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterSlotStatsQueryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotStatsQueryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterSlotStatsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotStatsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterSlotStatsResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsClusterSlotStatsResponseEntryclusterSlotStatsResponseEntrySlot :: IntegerclusterSlotStatsResponseEntryKeyCount :: Maybe IntegerclusterSlotStatsResponseEntryCpuUsec :: Maybe IntegerclusterSlotStatsResponseEntryMemoryBytes :: Maybe IntegerclusterSlotStatsResponseEntryNetworkBytesIn :: Maybe IntegerclusterSlotStatsResponseEntryNetworkBytesOut :: Maybe IntegerEq ClusterSlotStatsResponseEntryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterSlotStatsResponseEntryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterSlotStatsResponseEntryDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterMigrationSlotRangeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterMigrationSlotRangeDefined in hedis-0.16.4 · Database.Redis.ManualCommandsClusterMigrationTaskclusterMigrationTaskId :: ByteStringclusterMigrationTaskSlots :: [ClusterMigrationSlotRange]clusterMigrationTaskSource :: Maybe ByteStringclusterMigrationTaskDest :: Maybe ByteStringclusterMigrationTaskOperation :: Maybe ByteStringclusterMigrationTaskState :: Maybe ByteStringclusterMigrationTaskLastError :: Maybe ByteStringclusterMigrationTaskRetries :: Maybe IntegerclusterMigrationTaskCreateTime :: Maybe IntegerclusterMigrationTaskStartTime :: Maybe IntegerclusterMigrationTaskEndTime :: Maybe IntegerclusterMigrationTaskWritePauseMs :: Maybe IntegerEq ClusterMigrationTaskDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterMigrationTaskDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterMigrationTaskDefined in hedis-0.16.4 · Database.Redis.ManualCommandsEq ClusterMigrationStatusResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsShow ClusterMigrationStatusResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsRedisResult ClusterMigrationStatusResponseDefined in hedis-0.16.4 · Database.Redis.ManualCommandsclusterMigrationImport :: RedisCtx m f=> NonEmpty (Integer, Integer)Slot ranges to import.
Execute this subcommand on the destination master. It accepts multiple slot ranges and returns a task ID that can later be used to monitor the migration.
-> m (f ByteString)Starts an atomic slot migration import task on the current node (https://redis.io/commands/cluster-migration).
O(N) where N is the total number of slots between the specified start and end slot arguments.
Since Redis 8.4.0
Cancels an ongoing migration task by task ID (https://redis.io/commands/cluster-migration).
O(N) where N is the total number of slots between the specified start and end slot arguments.
Since Redis 8.4.0
Cancels all ongoing migration tasks (https://redis.io/commands/cluster-migration).
O(N) where N is the total number of slots between the specified start and end slot arguments.
Since Redis 8.4.0
Returns the status of current and completed atomic slot migration tasks (https://redis.io/commands/cluster-migration).
O(N) where N is the total number of slots between the specified start and end slot arguments.
Since Redis 8.4.0
Returns the status of all current and completed atomic slot migration tasks (https://redis.io/commands/cluster-migration).
O(N) where N is the total number of slots between the specified start and end slot arguments.
Since Redis 8.4.0
clusterMigrationStatusId :: RedisCtx m f=> ByteStringTask identifier.
-> m (f ClusterMigrationStatusResponse)Returns the status of a specific atomic slot migration task (https://redis.io/commands/cluster-migration).
O(N) where N is the total number of slots between the specified start and end slot arguments.
Since Redis 8.4.0
These commands are not implemented, as of now. Library users can implement these or other commands from experimental Redis versions by using the sendRequest function.
COMMAND (http://redis.io/commands/command)
COMMAND GETKEYS (http://redis.io/commands/command-getkeys)
CLIENT KILL (http://redis.io/commands/client-kill)
ZREVRANGEBYLEX (http://redis.io/commands/zrevrangebylex)
ZRANGEBYSCORE (http://redis.io/commands/zrangebyscore)
ZREVRANGEBYSCORE (http://redis.io/commands/zrevrangebyscore)
MONITOR (http://redis.io/commands/monitor)
SHUTDOWN (http://redis.io/commands/shutdown)
DEBUG SEGFAULT (http://redis.io/commands/debug-segfault)