Liking cljdoc? Tell your friends :D

cloffeine.cache


as-mapclj

(as-map cache)
source

cleanupclj

(cleanup cache)
source

computeclj

(compute cache k remapper-fn)

see: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html#compute-K-java.util.function.BiFunction- Attempts to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping). For example, to either create or append a String msg to a value mapping: (compute cache "k" (fn [k, v] (if (nil? v) msg (str v msg)))

see: https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/ConcurrentMap.html#compute-K-java.util.function.BiFunction-
Attempts to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping). For example, to either create or append a String msg to a value mapping:
`(compute cache "k" (fn [k, v] (if (nil? v) msg (str v msg)))`
sourceraw docstring

estimated-sizeclj

(estimated-size cache)
source

getclj

(get cache k loading-fn)
source

get-allclj

(get-all cache ks mapping-fn)
source

get-all-presentclj

(get-all-present cache ks)
source

get-if-presentclj

(get-if-present cache k)
source

invalidate!clj

(invalidate! cache k)
source

invalidate-all!clj

(invalidate-all! cache)
(invalidate-all! cache ks)
source

make-cacheclj

(make-cache)
(make-cache settings)
source

policyclj

(policy cache)
source

put!clj

(put! cache k v)
source

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

× close