Liking cljdoc? Tell your friends :D

core.memoize v0.5.5 Release Notes

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:

    • First-in-first-out (clojure.core.memoize/fifo)
    • Least-recently-used (clojure.core.memoize/lru)
    • Least-used (clojure.core.memoize/lu)
    • Time-to-live (clojure.core.memoize/ttl)
    • Naive cache (memo) that duplicates the functionality of Clojure's memoize function
  • Functions for manipulating the memoization cache of core.memoize backed functions

Usage

Leiningen dependency information:

[org.clojure/core.memoize "0.5.5"]

Maven dependency information:

<dependency>
  <groupId>org.clojure</groupId>
  <artifactId>core.memoize</artifactId>
  <version>0.5.5</version>
</dependency>

Places

Changes from v0.5.4

The v0.5.5 version of core.memoize works with the v0.6.3 version of core.cache. In addition, the following bugs have been fixed:

  • Deprecated memo-* API
  • Added new API of form (cache-type function <base> <:cache-type/threshold int>)

Plans

The following capabilities are under design, development, or consideration for future versions of core.memoize:

  • LIRS backed memoization
  • SoftCache backed memoization
  • A defn-memo macro
  • A MapMaker style ctor interface
  • test.generative usage
  • More documentation and examples

More planning is needed around capabilities not listed nor thought of.

Can you improve this documentation? These fine people already did:
fogus & Sean Corfield
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close