core.memoize is a Clojure contrib library providing the following features:
An underlying PluggableMemoization
protocol that allows the use of customizable and swappable memoization caches that adhere to the synchronous CacheProtocol
found in core.cache
Memoization builders for implementations of common caching strategies, including:
clojure.core.memoize/fifo
)clojure.core.memoize/lru
)clojure.core.memoize/lu
)clojure.core.memoize/ttl
)memo
) that duplicates the functionality of Clojure's memoize
functionFunctions for manipulating the memoization cache of core.memoize
backed functions
Leiningen dependency information:
[org.clojure/core.memoize "0.5.6"]
Maven dependency information:
<dependency>
<groupId>org.clojure</groupId>
<artifactId>core.memoize</artifactId>
<version>0.5.6</version>
</dependency>
The v0.5.6 version of core.memoize works with the v0.6.3 version of core.cache. In addition, the following bugs have been fixed, or features added:
CMEMOIZE-4 - memo-clear!
function now takes an optional args to limit evictions.
CMEMOIZE-6 - Widenes the contract on the types of callables allowed.
CMEMOIZE-7 - Fixed issues link in README.
The following capabilities are under design, development, or consideration for future versions of core.memoize:
SoftCache
backed memoizationMore planning is needed around capabilities not listed nor thought of.
Can you improve this documentation? These fine people already did:
Sean Corfield & fogusEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close