Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 572 Bytes

manual-add-remove.md

File metadata and controls

25 lines (18 loc) · 572 Bytes

Manually evict entries

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)

Manually add entries

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})