Skip to main content

soft-cache-factory

function

clojure.core.cache/soft-cache-factory

(soft-cache-factory [base])
Returns a SoftReference cache. Cached values will be referred to with SoftReferences, allowing the values to be garbage collected when there is memory pressure on the JVM. SoftCache is a mutable cache, since it is always based on a ConcurrentHashMap.

No examples yet. Be the first to add one!