(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.
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.
Disassociates the value cached for the key.
Disassociates the value cached for the key.
(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.
Associates the value with the key in this cache.
Associates the value with the key in this cache.
(refresh lcache k)
Loads a new value for the key, asynchronously.
Loads a new value for the key, asynchronously.
(refresh-all lcache ks)
Loads a new value for the keys, asynchronously.
Loads a new value for the keys, asynchronously.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close