You can manually evict entries:
; invalidate everything, also works on MountPoint instances
(m/memo-clear! memoized-function)
; invaliate an arg-list, also works on MountPoint instances
(m/memo-clear! memoized-function arg1 arg2 ...)
You can manually evict all entries in a Cache instance:
(m/memo-clear-cache! cache-instance)
You can add entries to a function's cache at any time:
; also works on MountPoint instances
(m/memo-add! memoized-function {[arg1 arg2] result})
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close