Skip to content

Commit

Permalink
Upgrading to core.cache 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fogus committed Mar 14, 2013
1 parent 07f3268 commit 8f587ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<dependency>
<groupId>org.clojure</groupId>
<artifactId>core.cache</artifactId>
<version>0.6.2</version>
<version>0.6.3</version>
</dependency>
</dependencies>

Expand Down
6 changes: 4 additions & 2 deletions src/main/clojure/clojure/core/memoize.clj
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@

;; # Auxilliary functions

(defn- through
#_(def through* clojure.core.cache/through)

(defn- through*
"The basic hit/miss logic for the cache system. Clojure delays are used
to hold the cache value."
[cache f item]
Expand Down Expand Up @@ -125,7 +127,7 @@
(let [cache (atom (apply cache-factory f args))]
(with-meta
(fn [& args]
(let [cs (swap! cache through f args)]
(let [cs (swap! cache through* f args)]
@(clojure.core.cache/lookup cs args)))
{:unk cache
:unk-orig f}))))
Expand Down

0 comments on commit 8f587ff

Please sign in to comment.