Liking cljdoc? Tell your friends :D

konserve.cache

Provides core functions, but with additional caching. Still subject to internal changes. Use this namespace only if you anticipate to be the only process accessing the store, otherwise you should implement your own caching strategy.

Provides core functions, but with additional caching. Still subject to internal
changes. Use this namespace only if you anticipate to be the only process
accessing the store, otherwise you should implement your own caching strategy.
raw docstring

appendclj/s

source

assocclj/s

(assoc store key val)
(assoc store key val opts)

Associates the key-vec to the value, any missing collections for the key-vec (nested maps and vectors) are newly created.

Associates the key-vec to the value, any missing collections for
the key-vec (nested maps and vectors) are newly created.
sourceraw docstring

assoc-inclj/s

(assoc-in store key-vec val)
(assoc-in store key-vec val opts)

Associates the key-vec to the value, any missing collections for the key-vec (nested maps and vectors) are newly created.

Associates the key-vec to the value, any missing collections for
the key-vec (nested maps and vectors) are newly created.
sourceraw docstring

bassocclj/s

source

bgetclj/s

source

dissocclj/s

(dissoc store key)
(dissoc store key opts)

Removes an entry from the store.

Removes an entry from the store. 
sourceraw docstring

ensure-cacheclj/s

(ensure-cache store)
(ensure-cache store cache)

Adds a cache to the store. If none is provided it takes a LRU cache with 32 elements per default.

Adds a cache to the store. If none is provided it takes a LRU cache with 32
elements per default.
sourceraw docstring

exists?clj/s

(exists? store key)
(exists? store key opts)

Checks whether value is in the store.

Checks whether value is in the store.
sourceraw docstring

getclj/s

(get store key)
(get store key not-found)
(get store key not-found opts)

Returns the value stored described by key. Returns nil if the key is not present, or the not-found value if supplied.

Returns the value stored described by key. Returns nil if the key
is not present, or the not-found value if supplied.
sourceraw docstring

get-inclj/s

(get-in store key-vec)
(get-in store key-vec not-found)
(get-in store key-vec not-found opts)

Returns the value stored described by key-vec or nil if the path is not resolvable.

Returns the value stored described by key-vec or nil if the path is
not resolvable.
sourceraw docstring

keysclj/s

source

logclj/s

source

reduce-logclj/s

source

updateclj/s

(update store key fn)
(update store key fn opts)

Updates a position described by key by applying up-fn and storing the result atomically. Returns a vector [old new] of the previous value and the result of applying up-fn (the newly stored value).

Updates a position described by key by applying up-fn and storing
the result atomically. Returns a vector [old new] of the previous
value and the result of applying up-fn (the newly stored value).
sourceraw docstring

update-inclj/s

(update-in store key-vec up-fn)
(update-in store key-vec up-fn opts)

Updates a position described by key-vec by applying up-fn and storing the result atomically. Returns a vector [old new] of the previous value and the result of applying up-fn (the newly stored value).

Updates a position described by key-vec by applying up-fn and storing
the result atomically. Returns a vector [old new] of the previous
value and the result of applying up-fn (the newly stored value).
sourceraw docstring

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

× close