(all-redis-ports)
gets all active redis ports
gets all active redis ports
(client {:keys [id env] :as m})
creates and starts a redis client
creates and starts a redis client
(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?
(client? obj)
checks that instance is a client
checks that instance is a client
(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|)
(generate-script ptr)
generates a script given a pointer
generates a script given a pointer
(has-notify redis id)
checks that a given notify listener is installed
checks that a given notify listener is installed
(invoke-ptr-redis redis ptr args)
invokes the pointer in the redis context
invokes the pointer in the redis context
(list-notify redis)
lists all notify listeners for a client
lists all notify listeners for a client
(notify redis id pattern handler)
notifications for a given client
notifications for a given client
(psubscribe redis id pattern handler)
subscribes to a pattern on the cache
subscribes to a pattern on the cache
(punsubscribe redis id)
unsubscribes from the pattern
unsubscribes from the pattern
(raw-compile ptr)
compiles a function as body and sha
compiles a function as body and sha
(start-redis-array ports)
starts a redis array
starts a redis array
(subscribe redis id channels handler)
subscribes to a channel on the cache
subscribes to a channel on the cache
(test:client)
creates a test client on docker
creates a test client on docker
(test:config)
creates a container and gets config
(test:config) => map?
creates a container and gets config (test:config) => map?
(test:connection)
(test:connection m)
creates a test connection
(test:connection) => connection?
creates a test connection (test:connection) => connection?
(test:invoke ptr & args)
does a script call on a single test connection
does a script call on a single test connection
(test:req & args)
does a request on a single test connection
does a request on a single test connection
(unnotify redis id)
removes notifications for a given client
removes notifications for a given client
(unsubscribe redis id)
unsubscribes from a channel
unsubscribes from a channel
(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"]]
(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"]]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close