Liking cljdoc? Tell your friends :D

event-data-common.storage.redis

Storage interface for redis. Provides two interfaces: RedisStore which conforms to Store, and Redis, which contains Redis-specific methods. RedisStore satisfies the event-data-common.storage.storage.Store protocol. All keys are stored in Redis with the given prefix.

Storage interface for redis. Provides two interfaces: RedisStore which conforms to Store, and Redis, which contains Redis-specific methods.
RedisStore satisfies the event-data-common.storage.storage.Store protocol.
All keys are stored in Redis with the given prefix.
raw docstring

add-prefixclj

(add-prefix prefix k)

buildclj

(build prefix host port db-number)

Build a RedisConnection object.

Build a RedisConnection object.
raw docstring

get-connectionclj

(get-connection pool db-number)

Get a Redis connection from the pool. Must be closed.

Get a Redis connection from the pool. Must be closed.
raw docstring

make-jedis-poolclj

(make-jedis-pool host port)

Rediscljprotocol

Redis-specific interface.

Redis-specific interface.

expiring-mutex!?clj

(expiring-mutex!? this k milliseconds)

Check and set expiring mutex atomically, returning true if didn't exist.

Check and set expiring mutex atomically, returning true if didn't exist.

incr-key-by!?clj

(incr-key-by!? this k value)

Set and return incremented Long value.

Set and return incremented Long value.

expire-seconds!clj

(expire-seconds! this k seconds)

Set expiry in seconds.

Set expiry in seconds.

subscribe-pubsubclj

(subscribe-pubsub this channel callback)

Register callback for PubSub channel and block thread.

Register callback for PubSub channel and block thread.

set-addclj

(set-add this k value)

Add a value to a set.

Add a value to a set.

publish-pubsubclj

(publish-pubsub this channel value)

Broadcast over PubSub

Broadcast over PubSub

sorted-set-incrementclj

(sorted-set-increment this k kk value)

Increment the field of a sorted set by the value.

Increment the field of a sorted set by the value.

sorted-set-membersclj

(sorted-set-members this k)

Return all members of the sorted set with their values.

Return all members of the sorted set with their values.

set-string-and-expiryclj

(set-string-and-expiry this k v milliseconds)

Set string value with expiry in milliseconds.

Set string value with expiry in milliseconds.

sorted-set-putclj

(sorted-set-put this k member value)

Set the field of the sorted set to have the value.

Set the field of the sorted set to have the value.

set-string-and-expiry-secondsclj

(set-string-and-expiry-seconds this k v seconds)

Set string value with expiry in seconds.

Set string value with expiry in seconds.

set-membersclj

(set-members this k)

Return all members from a set.

Return all members from a set.
raw docstring

remove-prefixclj

(remove-prefix prefix-length k)

scan-match-cursorclj

(scan-match-cursor connection pattern cursor)

Lazy sequence of scan results matching pattern.

Lazy sequence of scan results matching pattern.
raw docstring

sscan-cursorclj

(sscan-cursor connection k cursor)

Lazy sequence of sscan (set scan) results.

Lazy sequence of sscan (set scan) results.
raw docstring

zscan-cursorclj

(zscan-cursor connection k)

Return a realized map of {set-member score}

Return a realized map of {set-member score}
raw docstring

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

× close