Generic commands
This module contains implementations of commands that don't fit into a more specific category. For example, the PING command is implemented here since it doesn't belong to a specific data type category like strings or hashes.
- COPY
- DEL
- DUMP
- EXISTS
- EXPIRE
- EXPIREAT
- EXPIRETIME
- KEYS
- MIGRATE
- MOVE
- OBJECT ENCODING
- OBJECT FREQ
- OBJECT IDLETIME
- OBJECT REFCOUNT
- PERSIST
- PEXPIRE
- PEXPIREAT
- PTTL
- RANDOMKEY
- RENAME
- RENAMENX
- RESTORE
- SCAN
- SORT
- SORT_RO
- TOUCH
- TTL
- TYPE
- UNLINK
Equations
Instances For
Equations
Equations
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
COPY source destination [DB db] [REPLACE]
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- LeanRedis.Command.copy source destination options = { request := LeanRedis.CommandRequest.copy source destination options, decode := LeanRedis.expectBoolean "COPY" }
Instances For
DEL key [key ...]
Equations
- LeanRedis.CommandRequest.del keys = { name := "DEL", args := LeanRedis.CommandRequest.utf8Args keys }
Instances For
Equations
- LeanRedis.Command.del keys = { request := LeanRedis.CommandRequest.del keys, decode := LeanRedis.expectInteger "DEL" }
Instances For
DUMP key
Equations
- LeanRedis.CommandRequest.dump key = { name := "DUMP", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
TTL key
Equations
- LeanRedis.CommandRequest.ttl key = { name := "TTL", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
EXISTS key [key ...]
Equations
- LeanRedis.CommandRequest.exists keys = { name := "EXISTS", args := LeanRedis.CommandRequest.utf8Args keys }
Instances For
- NX : ExpireOption
- XX : ExpireOption
- GT : ExpireOption
- LT : ExpireOption
Instances For
Equations
- LeanRedis.instBEqExpireOption.beq x✝ y✝ = (x✝.ctorIdx == y✝.ctorIdx)
Instances For
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
Equations
- One or more equations did not get rendered due to their size.
EXPIRE key seconds [NX | XX | GT | LT]
Equations
- LeanRedis.CommandRequest.expire key seconds (some opt) = { name := "EXPIRE", args := LeanRedis.CommandRequest.utf8Args (#[key, toString seconds] ++ #[toString opt]) }
- LeanRedis.CommandRequest.expire key seconds = { name := "EXPIRE", args := LeanRedis.CommandRequest.utf8Args (#[key, toString seconds] ++ #[]) }
Instances For
EXPIREAT key unix-time-seconds [NX | XX | GT | LT]
Equations
- LeanRedis.CommandRequest.expireAt key timestamp (some opt) = { name := "EXPIREAT", args := LeanRedis.CommandRequest.utf8Args (#[key, toString timestamp] ++ #[toString opt]) }
- LeanRedis.CommandRequest.expireAt key timestamp = { name := "EXPIREAT", args := LeanRedis.CommandRequest.utf8Args (#[key, toString timestamp] ++ #[]) }
Instances For
EXPIRETIME key
Equations
- LeanRedis.CommandRequest.expireTime key = { name := "EXPIRETIME", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
KEYS pattern
Equations
- LeanRedis.CommandRequest.keys pattern = { name := "KEYS", args := LeanRedis.CommandRequest.utf8Args #[pattern] }
Instances For
- copy : Bool
- replace : Bool
- auth : Option AuthConfig
Instances For
MIGRATE host port key|"" destination-db timeout [COPY] [REPLACE] [AUTH password] [AUTH2 username password] [KEYS key [key ...]]
Equations
- One or more equations did not get rendered due to their size.
Instances For
MOVE key db
Equations
- LeanRedis.CommandRequest.move key destinationDb = { name := "MOVE", args := LeanRedis.CommandRequest.utf8Args #[key, toString destinationDb] }
Instances For
OBJECT ENCODING key
Equations
- LeanRedis.CommandRequest.objectEncoding key = { name := "OBJECT ENCODING", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
OBJECT FREQ key
Equations
- LeanRedis.CommandRequest.objectFreq key = { name := "OBJECT FREQ", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
OBJECT IDLETIME key
Equations
- LeanRedis.CommandRequest.objectIdleTime key = { name := "OBJECT IDLETIME", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
OBJECT REFCOUNT key
Equations
- LeanRedis.CommandRequest.objectRefCount key = { name := "OBJECT REFCOUNT", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
PERSIST key
Equations
- LeanRedis.CommandRequest.persist key = { name := "PERSIST", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
PEXPIRE key milliseconds [NX | XX | GT | LT]
Equations
- LeanRedis.CommandRequest.pexpire key milliseconds (some opt) = { name := "PEXPIRE", args := LeanRedis.CommandRequest.utf8Args (#[key, toString milliseconds] ++ #[toString opt]) }
- LeanRedis.CommandRequest.pexpire key milliseconds = { name := "PEXPIRE", args := LeanRedis.CommandRequest.utf8Args (#[key, toString milliseconds] ++ #[]) }
Instances For
PEXPIREAT key unix-time-milliseconds [NX | XX | GT | LT]
Equations
- LeanRedis.CommandRequest.pexpireAt key timestamp (some opt) = { name := "PEXPIREAT", args := LeanRedis.CommandRequest.utf8Args (#[key, toString timestamp] ++ #[toString opt]) }
- LeanRedis.CommandRequest.pexpireAt key timestamp = { name := "PEXPIREAT", args := LeanRedis.CommandRequest.utf8Args (#[key, toString timestamp] ++ #[]) }
Instances For
PTTL key
Equations
- LeanRedis.CommandRequest.pttl key = { name := "PTTL", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
RENAME key newkey
Equations
- LeanRedis.CommandRequest.rename key newKey = { name := "RENAME", args := LeanRedis.CommandRequest.utf8Args #[key, newKey] }
Instances For
RENAMENX key newkey
Equations
- LeanRedis.CommandRequest.renameNx key newKey = { name := "RENAMENX", args := LeanRedis.CommandRequest.utf8Args #[key, newKey] }
Instances For
RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME time] [FREQ freq]
Equations
- One or more equations did not get rendered due to their size.
Instances For
SCAN cursor [MATCH pattern] [COUNT count] [TYPE type]
Equations
- One or more equations did not get rendered due to their size.
Instances For
SORT key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC | DESC] [ALPHA] [STORE destination]
Equations
- One or more equations did not get rendered due to their size.
Instances For
SORT_RO key [BY pattern] [LIMIT offset count] [GET pattern [GET pattern ...]] [ASC | DESC] [ALPHA]
Equations
- One or more equations did not get rendered due to their size.
Instances For
TOUCH key [key ...]
Equations
- LeanRedis.CommandRequest.touch keys = { name := "TOUCH", args := LeanRedis.CommandRequest.utf8Args keys }
Instances For
TTL key
Equations
- LeanRedis.CommandRequest.TTL key = { name := "TTL", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
TYPE key
Equations
- LeanRedis.CommandRequest.type key = { name := "TYPE", args := LeanRedis.CommandRequest.utf8Args #[key] }
Instances For
UNLINK key [key ...]
Equations
- LeanRedis.CommandRequest.unlink keys = { name := "UNLINK", args := LeanRedis.CommandRequest.utf8Args keys }
Instances For
Equations
- LeanRedis.Command.dump key = { request := LeanRedis.CommandRequest.dump key, decode := LeanRedis.expectString "DUMP" }
Instances For
Equations
- LeanRedis.Command.exists keys = { request := LeanRedis.CommandRequest.exists keys, decode := LeanRedis.expectInteger "EXISTS" }
Instances For
Equations
- LeanRedis.Command.expire key seconds option = { request := LeanRedis.CommandRequest.expire key seconds option, decode := LeanRedis.expectBoolean "EXPIRE" }
Instances For
Equations
- LeanRedis.Command.expireAt key timestamp option = { request := LeanRedis.CommandRequest.expireAt key timestamp option, decode := LeanRedis.expectBoolean "EXPIREAT" }
Instances For
Equations
- LeanRedis.Command.expireTime key = { request := LeanRedis.CommandRequest.expireTime key, decode := LeanRedis.expectInteger "EXPIRETIME" }
Instances For
Equations
- LeanRedis.Command.keys pattern = { request := LeanRedis.CommandRequest.keys pattern, decode := LeanRedis.expectPlainStringArray "KEYS" }
Instances For
Equations
- LeanRedis.Command.move key destinationDb = { request := LeanRedis.CommandRequest.move key destinationDb, decode := LeanRedis.expectBoolean "MOVE" }
Instances For
Equations
- LeanRedis.Command.objectEncoding key = { request := LeanRedis.CommandRequest.objectEncoding key, decode := LeanRedis.expectString "OBJECT ENCODING" }
Instances For
Equations
- LeanRedis.Command.objectFreq key = { request := LeanRedis.CommandRequest.objectFreq key, decode := LeanRedis.expectInteger "OBJECT FREQ" }
Instances For
Equations
- LeanRedis.Command.objectIdleTime key = { request := LeanRedis.CommandRequest.objectIdleTime key, decode := LeanRedis.expectInteger "OBJECT IDLETIME" }
Instances For
Equations
- LeanRedis.Command.objectRefCount key = { request := LeanRedis.CommandRequest.objectRefCount key, decode := LeanRedis.expectInteger "OBJECT REFCOUNT" }
Instances For
Equations
- LeanRedis.Command.persist key = { request := LeanRedis.CommandRequest.persist key, decode := LeanRedis.expectBoolean "PERSIST" }
Instances For
Equations
- LeanRedis.Command.pexpire key milliseconds option = { request := LeanRedis.CommandRequest.pexpire key milliseconds option, decode := LeanRedis.expectBoolean "PEXPIRE" }
Instances For
Equations
- LeanRedis.Command.pexpireAt key timestamp option = { request := LeanRedis.CommandRequest.pexpireAt key timestamp option, decode := LeanRedis.expectBoolean "PEXPIREAT" }
Instances For
Equations
- LeanRedis.Command.pttl key = { request := LeanRedis.CommandRequest.pttl key, decode := LeanRedis.expectInteger "PTTL" }
Instances For
Equations
- LeanRedis.Command.randomKey = { request := LeanRedis.CommandRequest.randomKey, decode := LeanRedis.expectOptionalString "RANDOMKEY" }
Instances For
Equations
- LeanRedis.Command.rename key newKey = { request := LeanRedis.CommandRequest.rename key newKey, decode := LeanRedis.expectOk }
Instances For
Equations
- LeanRedis.Command.renameNx key newKey = { request := LeanRedis.CommandRequest.renameNx key newKey, decode := LeanRedis.expectBoolean "RENAMENX" }
Instances For
Equations
- LeanRedis.Command.restore key ttl serializedValue options = { request := LeanRedis.CommandRequest.restore key ttl serializedValue options, decode := LeanRedis.expectOk }
Instances For
Equations
- LeanRedis.Command.scan cursor options = { request := LeanRedis.CommandRequest.scan cursor options, decode := LeanRedis.expectScanResult }
Instances For
Equations
- LeanRedis.Command.sort key options = { request := LeanRedis.CommandRequest.sort key options, decode := LeanRedis.expectPlainStringArray "SORT" }
Instances For
Equations
- LeanRedis.Command.sortRo key options = { request := LeanRedis.CommandRequest.sortRo key options, decode := LeanRedis.expectPlainStringArray "SORT_RO" }
Instances For
Equations
- LeanRedis.Command.touch keys = { request := LeanRedis.CommandRequest.touch keys, decode := LeanRedis.expectInteger "TOUCH" }
Instances For
Equations
- LeanRedis.Command.TTL key = { request := LeanRedis.CommandRequest.TTL key, decode := LeanRedis.expectInteger "TTL" }
Instances For
Equations
- LeanRedis.Command.type key = { request := LeanRedis.CommandRequest.type key, decode := LeanRedis.expectString "TYPE" }
Instances For
Equations
- LeanRedis.Command.unlink keys = { request := LeanRedis.CommandRequest.unlink keys, decode := LeanRedis.expectInteger "UNLINK" }