(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |