(get alcache k)
(get alcache k f)
Returns the future associated with 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, obtaining that value from AsyncCacheLoader.asyncLoad(K, java.util.concurrent.Executor) if necessary.
(invalidate! alcache k)
Discards any cached value for the key.
Discards any cached value 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 asynchronously, 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 asynchronously, 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.
(make-cache-async-loader cl)
(make-cache-async-loader cl settings)
Create a CacheLoader
Create a CacheLoader
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close