Deals with Jedis/Redis internal protocol not Clojure protocol
Deals with Jedis/Redis internal protocol not Clojure protocol
(apply-key-prefixes {:keys [key-prefix]} cmd+args)
Applies key prefix to the command and its arguments. It detects if given command accepts a key or a variadic number of keys and applies prefixes to them. NOTE: in most cases, the key is the first argument, followed by multiple keys with no extra arguments, and finally in very few cases a list of keys + optional arg is accepted. This fn applies prefixes to the keys only.
NOTE: we have this here rather than in codec
namespace since it deals with Redis' protocol/commands
Applies key prefix to the command and its arguments. It detects if given command accepts a key or a variadic number of keys and applies prefixes to them. NOTE: in most cases, the key is the first argument, followed by multiple keys with no extra arguments, and finally in very few cases a list of keys + optional arg is accepted. This fn applies prefixes to the keys only. NOTE: we have this here rather than in `codec` namespace since it deals with Redis' protocol/commands
(execute* client cmd+args)
Executes a single Redis command as vector of command and arguments.: (execute-raw! conn [:ping]) (execute-raw conn [:set "foo" "bar"])
Executes a single Redis command as vector of command and arguments.: (execute-raw! conn [:ping]) (execute-raw conn [:set "foo" "bar"])
(execute-pipeline* client cmds+args)
Executes a pipeline of Redis commands as a sequence of vectors of commands and arguments:
(execute-pipeline! conn [[:ping] [:set "foo" "bar"] [:get "foo"] [:del "foo"]])
Executes a pipeline of Redis commands as a sequence of vectors of commands and arguments: (execute-pipeline! conn [[:ping] [:set "foo" "bar"] [:get "foo"] [:del "foo"]])
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close