clojure.core.cache

core.cache is a new Clojure contrib library providing the following features:

core.cache is based on a library named Clache, found at http://github.com/fogus/clache that is planned for deprecation.

Releases and Dependency Information

Latest stable release: 0.6.1

Leiningen dependency information:

[org.clojure/core.cache "0.6.1"]

Maven dependency information:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>core.cache</artifactId>
  <version>0.6.1</version>
</dependency>

Example Usage

```clojure (require '[clojure.core.cache :as cache])

(def C (cache/fifo-cache-factory {:a 1, :b 2})

(if (cache/has? C :c)
  (cache/hit C :c)
  (cache/miss C :c 42))

;=> {:a 1, :b 2, :c 42}

(cache/evict C :b)

;=> {:a 1}

```

Refer to docstrings in the clojure.core.cache namespace, or the autogenerated API documentation for additional documentation

Developer Information

Change Log

Copyright and License

Copyright (c) Rich Hickey, Michael Fogus and contributors, 2012. All rights reserved. The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound bythe terms of this license. You must not remove this notice, or any other, from this software.