(get alcache k)
(get alcache k f)
Returns the future associated with the key in this cache, obtaining that value from AsyncCacheLoader.asyncLoad(K, java.util.concurrent.Executor) if necessary.
Returns the future associated with the key in this cache, obtaining that value from AsyncCacheLoader.asyncLoad(K, java.util.concurrent.Executor) if necessary.
Returns the future associated with key in this cache, or nil if there is no cached future for key.
Returns the future associated with key in this cache, or nil if there is no cached future for key.
(invalidate! alcache k)
Disassociates the value cached for the key.
Disassociates the value cached for the key.
(make-cache cache-loader)
(make-cache cache-loader 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 synchronously, and are stored in the cache until either evicted
or manually invalidated.
Create an AsyncLoadingCache. See `cloffeine.common/builder` for settings. A semi-persistent mapping from keys to values. Values are automatically loaded by the cache synchronously, and are stored in the cache until either evicted or manually invalidated.
(make-cache-async-loader cl)
(make-cache-async-loader cl settings)
Create an AsyncLoadingCache that uses an AsyncCacheLoader to asynchronously load missing entries.
Create an AsyncLoadingCache that uses an AsyncCacheLoader to asynchronously load missing entries.
Associates value with key in this cache.
Associates value with key in this cache.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close