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

source

invalidate!clj

source

make-cacheclj

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

Create an AsyncLoadingCache. 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. Implementations of this interface are expected to be thread-safe, and can be safely accessed by multiple concurrent threads.

Create an AsyncLoadingCache. 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.
Implementations of this interface are expected to be thread-safe, and can be safely accessed by multiple concurrent threads.
sourceraw docstring

put!clj

source

refreshclj

(refresh lcache k)

Loads a new value for the key, asynchronously.

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

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

× close