Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updates the docstring for soft-cache-factory.

  • Loading branch information...
commit 1f1aa4764c055a1de35b44ba582b12b1c5598fdd 1 parent 8e03bcd
@pjstadig authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/clojure/clojure/core/cache.clj
View
5 src/main/clojure/clojure/core/cache.clj
@@ -590,7 +590,10 @@
(defn soft-cache-factory
"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."
+ memory pressure on the JVM.
+
+ SoftCache is a mutable cache, since it is always based on a
+ ConcurrentHashMap."
[base]
{:pre [(map? base)]}
(seed (SoftCache. (ConcurrentHashMap.) (ConcurrentHashMap.) (ReferenceQueue.))
Please sign in to comment.
Something went wrong with that request. Please try again.