Protocol for redis dispatch, and utilities for working with Redis, caching being the core use case
Protocol for redis dispatch, and utilities for working with Redis, caching being the core use case
(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. Commands are a vector of vecs with the commands and their args just like execute-pipeline
NOTE: transactions are usually slower than pipelines, but they are more consistent.
Executes a series of commands + their args in a transaction. Commands are a vector of vecs with the commands and their args just like `execute-pipeline` NOTE: transactions are usually slower than pipelines, but they are more consistent.
(key & args)
Simplifies working with keys that need to be progrmatically 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 progrmatically 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 is a website building & hosting documentation for Clojure/Script libraries
× close