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.
(add-prefix prefix k)
(build prefix host port db-number)
Build a RedisConnection object.
Build a RedisConnection object.
(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.
(make-jedis-pool host port)
Redis-specific interface.
Redis-specific interface.
(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!? this k value)
Set and return incremented Long value.
Set and return incremented Long value.
(expire-seconds! this k seconds)
Set expiry in seconds.
Set expiry in seconds.
(subscribe-pubsub this channel callback)
Register callback for PubSub channel and block thread.
Register callback for PubSub channel and block thread.
(set-add this k value)
Add a value to a set.
Add a value to a set.
(publish-pubsub this channel value)
Broadcast over PubSub
Broadcast over PubSub
(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-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-expiry this k v milliseconds)
Set string value with expiry in milliseconds.
Set string value with expiry in milliseconds.
(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-seconds this k v seconds)
Set string value with expiry in seconds.
Set string value with expiry in seconds.
(set-members this k)
Return all members from a set.
Return all members from a set.
(remove-prefix prefix-length k)
(scan-match-cursor connection pattern cursor)
Lazy sequence of scan results matching pattern.
Lazy sequence of scan results matching pattern.
(sscan-cursor connection k cursor)
Lazy sequence of sscan (set scan) results.
Lazy sequence of sscan (set scan) results.
(zscan-cursor connection k)
Return a realized map of {set-member score}
Return a realized map of {set-member score}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close