Liking cljdoc? Tell your friends :D

rp.jackdaw.state-store

Adds a protocol-based wrapper for interacting with KV state stores. Includes some store-related utilities as well. Nothing really jackdaw-specific here, but including in this library anyway. Useful when dealing with explicit state stores using the lower-level Processor API (for example via the Streams transform method).

Adds a protocol-based wrapper for interacting with KV state stores.
Includes some store-related utilities as well.
Nothing really jackdaw-specific here, but including in this library anyway.
Useful when dealing with explicit state stores using the lower-level Processor API
(for example via the Streams `transform` method).
raw docstring

get-all-kvsclj

(get-all-kvs state-store)

Get all the keys/values in a KeyValueStore. Handy for dev debugging, but be careful not to call it on a huge store.

Get _all_ the keys/values in a KeyValueStore. Handy for dev debugging, but be careful not to call it on a huge store.
sourceraw docstring

get-mock-dataclj

(get-mock-data mock-store)
source

KVStorecljprotocol

get-keyclj

(get-key this k)

Gets the value for key

Gets the value for key

set-key!clj

(set-key! this k v)

Sets the value for key; deletes key when value is nil.

Sets the value for key; deletes key when value is nil.
source

make-mock-storeclj

(make-mock-store)
(make-mock-store init-map)
source

state-store-builderclj

(state-store-builder store-name)
(state-store-builder store-name key-serde value-serde)

Returns a builder (for use with .addStateStore) for a persistent store with the specified name and serdes. Defaults to String serdes.

Returns a builder (for use with `.addStateStore`) for a persistent store with the specified name and serdes. Defaults to String serdes.
sourceraw docstring

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

× close