Provides core functions, but with additional caching. Still subject to internal changes.
Provides core functions, but with additional caching. Still subject to internal changes.
(assoc-in store key-vec val)
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.
(dissoc store key)
Removes an entry from the store.
Removes an entry from the store.
(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.
(exists? store key)
Checks whether value is in the store.
Checks whether value is in the store.
(get-in store key-vec)
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.
(update-in store key-vec fn & args)
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).
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close