Liking cljdoc? Tell your friends :D
All platforms.

space.matterandvoid.subscriptions.impl.memoize


memoize-fnclj/s

(memoize-fn f)
(memoize-fn {:keys [max-args-cached-size max-history-size]} f)

Returns a function which is memoized, with an eviction policy. For now it will retain up to 'n' unique invocations of input to output. When buffer/cache of 'n' distinct input calls is full will evict the oldest first. This saves the history of the arguments called in a queue to allow determining which args to evict based on the call history.

Returns a function which is memoized, with an eviction policy.
For now it will retain up to 'n' unique invocations of input to output. When buffer/cache of 'n' distinct input calls is full will
evict the oldest first.
This saves the history of the arguments called in a queue to allow determining which args to evict based on the call
history.
sourceraw docstring

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

× close