Skip to content
Browse files

Updates the docstring for soft-cache-factory.

Signed-off-by: fogus <mefogus@gmail.com>
  • Loading branch information...
1 parent a6003a0 commit af5ebb6b3a4afcca96ee34704f575c130bf8a9f9 @pjstadig pjstadig committed with fogus Jun 16, 2012
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
@@ -599,7 +599,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.))

0 comments on commit af5ebb6

Please sign in to comment.
Something went wrong with that request. Please try again.