Liking cljdoc? Tell your friends :D

cloffeine.loading-cache


cleanupclj

(cleanup lcache)

Performs any pending maintenance operations needed by the cache.

Performs any pending maintenance operations needed by the cache.
sourceraw docstring

getclj

(get lcache k)
(get lcache k loading-fn)

Returns the value associated with the key in this cache, obtaining that value from CacheLoader.load(Object) if necessary.

Returns the value associated with the key in this cache, obtaining that value
from CacheLoader.load(Object) if necessary.
sourceraw docstring

get-allclj

(get-all lcache ks)

Returns a map of the values associated with the keys, creating or retrieving those values if necessary.

Returns a map of the values associated with the keys, creating or retrieving
those values if necessary.
sourceraw docstring

get-if-presentclj

Returns the value associated with the key in this cache, or nil if there is no cached value for the key.

Returns the value associated with the key in this cache, or nil if
there is no cached value for the key.
sourceraw docstring

invalidate!clj

Disassociates the value cached for the key.

Disassociates the value cached for the key.
sourceraw docstring

make-cacheclj

(make-cache cl)
(make-cache cl settings)

Create a LoadingCache. See cloffeine.common/builder for settings. A semi-persistent mapping from keys to values. Values are automatically loaded by the cache, and are stored in the cache until either evicted or manually invalidated.

Create a LoadingCache. See `cloffeine.common/builder` for settings.
A semi-persistent mapping from keys to values. Values are automatically loaded
by the cache, and are stored in the cache until either evicted or manually
invalidated.
sourceraw docstring

put!clj

Associates the value with the key in this cache.

Associates the value with the key in this cache.
sourceraw docstring

refreshclj

(refresh lcache k)

Loads a new value for the key, asynchronously.

Loads a new value for the key, asynchronously.
sourceraw docstring

refresh-allclj

(refresh-all lcache ks)

Loads a new value for the keys, asynchronously.

Loads a new value for the keys, asynchronously.
sourceraw docstring

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

× close