Liking cljdoc? Tell your friends :D

konserve-redis.core

Redis based konserve backend.

Redis based konserve backend.
raw docstring

batch-deleteclj

(batch-delete client store-keys)
(batch-delete client store-keys chunk-size)

Delete store-keys with one DEL per chunk of batch-delete-chunk keys. Returns {:deleted #{...} :failed {key exception}}. A missing key counts as deleted. A chunk whose command fails is reported in :failed, with the exception as diagnostic, and the remaining chunks still run.

Delete `store-keys` with one DEL per chunk of `batch-delete-chunk` keys.
Returns {:deleted #{...} :failed {key exception}}. A missing key counts as
deleted. A chunk whose command fails is reported in `:failed`, with the
exception as diagnostic, and the remaining chunks still run.
sourceraw docstring

batch-delete-chunkclj

Keys per DEL command in a batch deletion.

Keys per DEL command in a batch deletion.
sourceraw docstring

connect-storeclj

(connect-store redis-spec & {:keys [opts] :as params})
source

copyclj

(copy client source-key destination-key)
source

deleteclj

(delete client key)
source

delete-storeclj

(delete-store redis-spec & {:keys [opts]})
source

exists?clj

(exists? client key)
source

get-objectclj

(get-object client key)
source

key-pageclj

(key-page client cursor limit)

At most limit physical keys, and the cursor to continue from (nil at the end).

The cursor is the EDN value [scan-cursor pending-keys]. SCAN may return more keys than its COUNT hint, so the surplus is carried in pending-keys and emitted by a later page rather than dropped. scan-cursor is nil once Redis has completed its iteration (returned "0"); the page cursor is nil once that has happened and nothing is pending. At most one SCAN round trip per page, and none while the carried surplus fills a page by itself; empty nonterminal pages are possible.

SCAN guarantees that every key present for the whole iteration is returned at least once, not exactly once: a key can occur on more than one page (e.g. across a rehash). The marker key is excluded, as in -keys.

At most `limit` physical keys, and the cursor to continue from (nil at the end).

The cursor is the EDN value [scan-cursor pending-keys]. SCAN may return more
keys than its COUNT hint, so the surplus is carried in `pending-keys` and
emitted by a later page rather than dropped. `scan-cursor` is nil once Redis
has completed its iteration (returned "0"); the page cursor is nil once that
has happened and nothing is pending. At most one SCAN round trip per page, and
none while the carried surplus fills a page by itself; empty nonterminal pages
are possible.

SCAN guarantees that every key present for the whole iteration is returned at
least once, not exactly once: a key can occur on more than one page (e.g.
across a rehash). The marker key is excluded, as in `-keys`.
sourceraw docstring

list-objectsclj

(list-objects client)
source

mdeleteclj

(mdelete client keys)

Delete multiple keys in a single DEL call. Returns the number of keys deleted.

Delete multiple keys in a single DEL call.
Returns the number of keys deleted.
sourceraw docstring

mget-objectsclj

(mget-objects client keys)

Fetch multiple keys in a single MGET call. Returns values in the same order as the input keys. Missing keys return nil in their position.

Fetch multiple keys in a single MGET call.
Returns values in the same order as the input keys.
Missing keys return nil in their position.
sourceraw docstring

output-stream-buffer-sizeclj

source

put-objectclj

(put-object client key bytes)
source

put-object-conditionalclj

(put-object-conditional client key bytes expected)

SET key to bytes only if it currently holds expected — or, when expected is ::absent, only if it holds nothing. True on success, false on conflict.

SET `key` to `bytes` only if it currently holds `expected` — or, when `expected`
is `::absent`, only if it holds nothing. True on success, false on conflict.
sourceraw docstring

redis-clientclj

(redis-client {:keys [pool ssl-fn uri]})
source

releaseclj

(release store env)

Must be called after work on database has finished in order to close connection

Must be called after work on database has finished in order to close connection
sourceraw docstring

scan-stepclj

(scan-step client cursor count)

One SCAN step from cursor (a Redis cursor string, "0" to start). Returns [next-cursor keys]; next-cursor "0" means the iteration is complete. COUNT is only a hint: Redis may return more keys, fewer, or none.

One SCAN step from `cursor` (a Redis cursor string, "0" to start).
Returns [next-cursor keys]; next-cursor "0" means the iteration is complete.
COUNT is only a hint: Redis may return more keys, fewer, or none.
sourceraw docstring

store-marker-keyclj

source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close