Liking cljdoc? Tell your friends :D

cloffeine.async-cache


getclj

(get acache k f)

Returns the future associated with the key in this cache, obtaining that value from mappingFunction if necessary.

Returns the future associated with the key in this cache, obtaining that value
from mappingFunction if necessary.
sourceraw docstring

get-if-presentclj

(get-if-present acache k)

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.
sourceraw docstring

invalidate!clj

(invalidate! acache k)

Disassociates the value cached for the key.

Disassociates the value cached for the key.
sourceraw docstring

make-cacheclj

(make-cache)
(make-cache settings)

Create an AsyncCache. See cloffeine.common/builder for settings. A semi-persistent mapping from keys to values. Values should be manually set in the cache using cloffeine.async-cache/put!.

Create an AsyncCache. See `cloffeine.common/builder` for settings.
A semi-persistent mapping from keys to values. Values should be manually set in
the cache using cloffeine.async-cache/put!.
sourceraw docstring

put!clj

(put! acache k future-v)

Associates value with key in this cache.

Associates value with key in this cache.
sourceraw docstring

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

× close