(acquire-lock pool lock-name timeout-ms wait-ms)
(add-host-port conf server)
Take server and see if its host:port add (assoc conf :host (host server) :port (server)) else (assoc conf :host server)
Take server and see if its host:port add (assoc conf :host (host server) :port (server)) else (assoc conf :host server)
(brpoplpush pool queue queue2 n)
(close! pool)
(conn-pool-active pool)
(conn-pool-idle pool)
(create redis-conf)
{:host []} use cluster {:host ""} :or {:host [v1]} use single
{:host []} use cluster {:host ""} :or {:host [v1]} use single
(create-cluster-conn redis-conf)
(create-single-conn redis-conf)
(flushall pool)
(get pool k)
(have-lock? pool lock-name owner-uuid)
(llen pool queue)
(lpush pool queue obj)
(lpush* pool queue obj-coll)
(lrange pool q n limit)
(lrem pool queue n obj)
(lua pool script-str)
(redis-cluster-conn cluster-conf)
Creates a redis connection for a redis cluster
Creates a redis connection for a redis cluster
(redis-conn spec opts)
Creates a redis connection for a single redis instance
Creates a redis connection for a single redis instance
(release-lock pool lock-name owner-uuid)
(set pool k v)
(wcar pool & body)
(with-lock pool lock-name timeout-ms wait-ms & body)
Attempts to acquire a distributed lock, executing body and then releasing lock when successful. Returns {:result <body's result>} on successful release, or nil if the lock could not be acquired. If the lock is successfully acquired but expires before being released, throws an exception.
Attempts to acquire a distributed lock, executing body and then releasing lock when successful. Returns {:result <body's result>} on successful release, or nil if the lock could not be acquired. If the lock is successfully acquired but expires before being released, throws an exception.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close