clojure.core.memoize
-
Positional factory function for class clojure.core.memoize.PluggableMemoization.
function([f cache])
Positional factory function for class clojure.core.memoize.RetryingDelay.
function([fun available? value])
B
Builds a function that, given a function, returns a pluggable memoized version of it. `build-memoizer` takes a cache...
function([cache-factory f & args])
F
Works the same as the basic memoization function (i.e. `memo` and `core.memoize` except when a given threshold is bre...
function([f] [f base] [f tkey threshold] [f base key threshold])
L
Returns a lazy snapshot of a core.memo-placed memoization cache. By lazy snapshot you can infer that what you get is...
function([memoized-fn])
Works the same as the basic memoization function (i.e. `memo` and `core.memoize` except when a given threshold is bre...
function([f] [f base] [f tkey threshold] [f base key threshold])
Similar to the implementation of memo-lru, except that this function removes all cache values whose usage value is ...
function([f] [f base] [f tkey threshold] [f base key threshold])
M
Used as a more flexible alternative to Clojure's core `memoization` function. Memoized functions built using `memo` ...
function([f] [f seed])
Reaches into an core.memo-memoized function and clears the cache. This is a destructive operation and should be used...
function([f] [f args])
DEPRECATED: Please use clojure.core.memoize/fifo instead.
function([f] [f limit] [f limit base])
DEPRECATED: Please use clojure.core.memoize/lru instead.
function([f] [f limit] [f limit base])
DEPRECATED: Please use clojure.core.memoize/lu instead.
function([f] [f limit] [f limit base])
Takes a core.memo-populated function and a map and replaces the memoization cache with the supplied map. This is pot...
function([f base])
The 2-arity version takes a core.memo-populated function and a map and replaces the memoization cache with the supplie...
function([f base] [f swap-fn args & results])
DEPRECATED: Please use clojure.core.memoize/ttl instead.
function([f] [f limit] [f limit base])
- function
([f])
Returns true if a function has an core.memo-placed cache, false otherwise.
function([f])
Build a pluggable memoized version of a function. Given a function and a (pluggable memoized) cache, and an optional s...
function([f cache] [f cache seed])
S
Returns a snapshot of a core.memo-placed memoization cache. By snapshot you can infer that what you get is only the ...
function([memoized-fn])
T
Unlike many of the other core.memo memoization functions, `memo-ttl`'s cache policy is time-based rather than algorit...
function([f] [f base] [f tkey threshold] [f base key threshold])