Permalink
Browse files

Fixes issue #21. Replace use of clache with use of core.cache

  • Loading branch information...
1 parent 56c68fb commit 071e3ff1245ec876b791b2d7d1189480853aa058 @semperos semperos committed Dec 19, 2011
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/clj_webdriver/driver.clj
@@ -1,18 +1,18 @@
(ns clj-webdriver.driver
- (require [fogus.clache :as clache]))
+ (require [clojure.core.cache :as cache]))
(defrecord Driver [webdriver cache-spec element-cache middlewares])
(defn- init-cache
"Initialize cache based on given strategy"
([cache-spec]
(when-not (nil? cache-spec)
- (let [strategy-legend {:basic clache/->BasicCache,
- :fifo clache/->FIFOCache,
- :lru clache/->LRUCache,
- :lirs clache/->LIRSCache,
- :ttl clache/->TTLCache,
- :lu clache/->LUCache}]
+ (let [strategy-legend {:basic cache/->BasicCache,
+ :fifo cache/->FIFOCache,
+ :lru cache/->LRUCache,
+ :lirs cache/->LIRSCache,
+ :ttl cache/->TTLCache,
+ :lu cache/->LUCache}]
(atom (apply
(get strategy-legend (:strategy cache-spec))
(into [{}] (:args cache-spec))))))))

0 comments on commit 071e3ff

Please sign in to comment.