(cleanup lcache)
Performs any pending maintenance operations needed by the cache.
Performs any pending maintenance operations needed by the cache.
(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.
(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.
(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.
(refresh lcache k)
Loads a new value for the key, asynchronously.
Loads a new value for the key, asynchronously.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close