lru-cache-factory
function
clojure.core.cache/lru-cache-factory
(lru-cache-factory [base & {threshold :threshold, :or {threshold 32}}])Returns an LRU cache with the cache and usage-table initialized to `base` --
each entry is initialized with the same usage value.
This function takes an optional `:threshold` argument that defines the maximum number
of elements in the cache before the LRU semantics apply (default is 32).
Examples
No examples yet. Be the first to add one!