Liking cljdoc? Tell your friends :D

omega-red.redis.protocol

Deals with Jedis/Redis internal protocol not Clojure protocol

Deals with Jedis/Redis internal protocol not Clojure protocol
raw docstring

apply-key-prefixesclj

(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
sourceraw docstring

cmd+args->command-with-argsclj

(cmd+args->command-with-args [cmd & args])
source

execute*clj

(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"])
sourceraw docstring

execute-pipeline*clj

(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"]])
sourceraw docstring

redis-cmd-configclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close