Liking cljdoc? Tell your friends :D

rt.redis


all-redis-portsclj

(all-redis-ports)

gets all active redis ports

gets all active redis ports
raw docstring

clientclj

(client {:keys [id env] :as m})

creates and starts a redis client

creates and starts a redis client
raw docstring

client:createclj

(client:create {:keys [id env mode host port] :as m})

creates a redis client

(r/client:create {:id "localhost" :port 17000}) => r/client?

creates a redis client

(r/client:create {:id "localhost"
                  :port 17000})
=> r/client?
raw docstring

client?clj

(client? obj)

checks that instance is a client

checks that instance is a client
raw docstring

connectionclj

(connection {:keys [host port]})

creates a connection

(def |c| (connection {:host "localhost" :port 4456})) (connection? |c|) => true

(connection:close |c|)

creates a connection

(def |c| (connection {:host "localhost"
                      :port 4456}))
(connection? |c|)
=> true

(connection:close |c|)
raw docstring

generate-scriptclj

(generate-script ptr)

generates a script given a pointer

generates a script given a pointer
raw docstring

has-notifyclj

(has-notify redis id)

checks that a given notify listener is installed

checks that a given notify listener is installed
raw docstring

invoke-ptr-redisclj

(invoke-ptr-redis redis ptr args)

invokes the pointer in the redis context

invokes the pointer in the redis context
raw docstring

list-notifyclj

(list-notify redis)

lists all notify listeners for a client

lists all notify listeners for a client
raw docstring

notifyclj

(notify redis id pattern handler)

notifications for a given client

notifications for a given client
raw docstring

psubscribeclj

(psubscribe redis id pattern handler)

subscribes to a pattern on the cache

subscribes to a pattern on the cache
raw docstring

punsubscribeclj

(punsubscribe redis id)

unsubscribes from the pattern

unsubscribes from the pattern
raw docstring

raw-compileclj

(raw-compile ptr)

compiles a function as body and sha

compiles a function as body and sha
raw docstring

start-redis-arrayclj

(start-redis-array ports)

starts a redis array

starts a redis array
raw docstring

stop-redis-arrayclj

(stop-redis-array ports)

stops a redis array

stops a redis array
raw docstring

subscribeclj

(subscribe redis id channels handler)

subscribes to a channel on the cache

subscribes to a channel on the cache
raw docstring

test:activateclj


test:clientclj

(test:client)

creates a test client on docker

creates a test client on docker
raw docstring

test:configclj

(test:config)

creates a container and gets config

(test:config) => map?

creates a container and gets config

(test:config)
=> map?
raw docstring

test:connectionclj

(test:connection)
(test:connection m)

creates a test connection

(test:connection) => connection?

creates a test connection

(test:connection)
=> connection?
raw docstring

test:deactivateclj


test:invokeclj

(test:invoke ptr & args)

does a script call on a single test connection

does a script call on a single test connection
raw docstring

test:reqclj

(test:req & args)

does a request on a single test connection

does a request on a single test connection
raw docstring

unnotifyclj

(unnotify redis id)

removes notifications for a given client

removes notifications for a given client
raw docstring

unsubscribeclj

(unsubscribe redis id)

unsubscribes from a channel

unsubscribes from a channel
raw docstring

with-connectioncljmacro

(with-connection [conn opts] & body)

creates a temporary connection and runs code

(with-connection [conn {:port 17000}] (cc/bulk conn (fn [] (cc/req conn ["FLUSHDB"]) (cc/req conn ["SET" "TEST:A" 1]) (cc/req conn ["KEYS" "*"])) {})) => ["OK" "OK" ["TEST:A"]]

creates a temporary connection and runs code

(with-connection [conn  {:port 17000}]
  (cc/bulk conn
          (fn []
            (cc/req conn ["FLUSHDB"])
            (cc/req conn ["SET" "TEST:A" 1])
            (cc/req conn ["KEYS" "*"]))
          {}))
=> ["OK" "OK" ["TEST:A"]]
raw docstring

with-test:connectioncljmacro

(with-test:connection conn & body)

creates an runs statements using a test connection

(with-connection [conn {:port 17000}] (cc/bulk conn (fn [] (cc/req conn ["FLUSHDB"]) (cc/req conn ["SET" "TEST:A" 1]) (cc/req conn ["KEYS" "*"])) {})) => ["OK" "OK" ["TEST:A"]]

creates an runs statements using a test connection

(with-connection [conn {:port 17000}]
  (cc/bulk conn
          (fn []
            (cc/req conn ["FLUSHDB"])
            (cc/req conn ["SET" "TEST:A" 1])
            (cc/req conn ["KEYS" "*"]))
          {}))
=> ["OK" "OK" ["TEST:A"]]
raw docstring

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

× close