Liking cljdoc? Tell your friends :D

kafka-clj.redis.core


acquire-lockclj

(acquire-lock pool lock-name timeout-ms wait-ms)

add-host-portclj

(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)
raw docstring

brpoplpushclj

(brpoplpush pool queue queue2 n)

close!clj

(close! pool)

conn-pool-activeclj

(conn-pool-active pool)

conn-pool-idleclj

(conn-pool-idle pool)

createclj

(create redis-conf)

{:host []} use cluster {:host ""} :or {:host [v1]} use single

{:host []} use cluster
{:host ""} :or {:host [v1]} use single
raw docstring

create-cluster-connclj

(create-cluster-conn redis-conf)

create-single-connclj

(create-single-conn redis-conf)

flushallclj

(flushall pool)

getclj

(get pool k)

have-lock?clj

(have-lock? pool lock-name owner-uuid)

llenclj

(llen pool queue)

lpushclj

(lpush pool queue obj)

lpush*clj

(lpush* pool queue obj-coll)

lrangeclj

(lrange pool q n limit)

lremclj

(lrem pool queue n obj)

luaclj

(lua pool script-str)

redis-cluster-connclj

(redis-cluster-conn cluster-conf)

Creates a redis connection for a redis cluster

Creates a redis connection for a redis cluster
raw docstring

redis-connclj

(redis-conn spec opts)

Creates a redis connection for a single redis instance

Creates a redis connection for a single redis instance
raw docstring

release-lockclj

(release-lock pool lock-name owner-uuid)

setclj

(set pool k v)

wcarcljmacro

(wcar pool & body)

with-lockcljmacro

(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.
raw docstring

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

× close