Protocol for Redis command dispatch, and utilities for working with Redis keys
Protocol for Redis command dispatch, and utilities for working with Redis keys
(execute this cmd+args)Executes single redis command - passed as JDBC-style vector: [:command the rest of args]
Executes single redis command - passed as JDBC-style vector: [:command the rest of args]
(execute-pipeline this cmds+args)Executes a series of commands + their args in a pipeline. Commands are a vector of vecs with the commands and their args
Executes a series of commands + their args in a pipeline. Commands are a vector of vecs with the commands and their args
(transact this cmd+args)Executes a series of commands + their args in a transaction (MULTI/EXEC). Commands are a vector of vecs with the commands and their args just like execute-pipeline
NOTE: transactions are usually slower than pipelines, but commands are executed atomically, with no other client's commands interleaved.
Redis does not roll back: if a command fails at runtime, the remaining commands are still applied.
Executes a series of commands + their args in a transaction (MULTI/EXEC). Commands are a vector of vecs with the commands and their args just like `execute-pipeline` NOTE: transactions are usually slower than pipelines, but commands are executed atomically, with no other client's commands interleaved. Redis does not roll back: if a command fails at runtime, the remaining commands are still applied.
(key & args)Simplifies working with keys that need to be programmatically built.
e.g. rather than doing (str some-thing ":" some-id) you can do
(key some-thing some-id)
Simplifies working with keys that need to be programmatically built. e.g. rather than doing `(str some-thing ":" some-id)` you can do (key some-thing some-id)
(valid-client? thing)Can we use thing as a Redis client?
Can we use `thing` as a Redis client?
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |