core.cache v0.6.2 Release Notes ===============================
Source code and README at https://github.com/clojure/core.cache Wiki (in progress) at https://github.com/clojure/core.cache/wiki core.cache is a Clojure contrib library providing the following features: Overview -------- * An underlying `CacheProtocol` used as the base abstraction for implementing new synchronous caches * A `defcache` macro for hooking your `CacheProtocol` implementations into the Clojure associative data capabilities. * Immutable implementations of some basic caching strategies - First-in-first-out (FIFOCache) - Least-recently-used (LRUCache) - Least-used (LUCache) - Time-to-live (TTLCache) - Soft-Reference cache (SoftCache) - Naive cache (BasicCache) * Implementation of an efficient buffer replacement policy based on the *low inter-reference recency set* algorithm (LIRSCache) described in the [LIRS](http://citeseer.ist.psu.edu/viewdoc/summary?doi=10.1.1.116.2184) paper * Factory functions for each existing cache type Quick example ------------- (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} Absorb ------ You can use core.cache in your [Leiningen](https://github.com/technomancy/leiningen) and [Cake](https://github.com/flatland/cake) projects with the following `:dependencies` directive in your `project.clj` file: [org.clojure/core.cache "0.6.2"] For Maven-driven projects, use the following slice of XML in your `pom.xml`'s `<dependencies>` section: <dependency> <groupId>org.clojure</groupId> <artifactId>core.cache</artifactId> <version>0.6.2</version> </dependency> Changes from v0.6.1 ------------------- The v0.6.2 version of core.cache contains the following changes: * Removed reflection warnings. * Bug fix for LRU, LU and TTL caches disabling the eviction of duplicate keys prior to a threshold less than three. * FIFOCache respects threshold prior to applying its eviction policy. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en