-
Notifications
You must be signed in to change notification settings - Fork 63
Home
fogus edited this page Mar 10, 2012
·
23 revisions
- Including core.cache in your projects
- Example usages of core.cache
- Creating custom caches
- Building core.cache
core.cache is a new Clojure contrib library providing the following features:
-
An underlying
CacheProtocol
used as the base abstraction for implementing new synchronous caches -
A
defcache
macro for hooking yourCacheProtocol
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)
- Naive cache (BasicCache)
-
Implementation of an efficient buffer replacement policy based on the low inter-reference recency set algorithm (LIRSCache) described in the LIRS paper
-
Factory functions for each existing cache type
core.cache is based on a library named Clache, found at http://github.com/fogus/clache that is planned for deprecation.