Browse files

Updates the docstring for soft-cache-factory.

  • Loading branch information...
1 parent 8e03bcd commit 1f1aa4764c055a1de35b44ba582b12b1c5598fdd @pjstadig committed Jun 16, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 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."
{:pre [(map? base)]}
(seed (SoftCache. (ConcurrentHashMap.) (ConcurrentHashMap.) (ReferenceQueue.))

0 comments on commit 1f1aa47

Please sign in to comment.