Scan loaded namespaces for vars that have meta that specifies a cache, and attach cache to those vars.
Scan loaded namespaces for vars that have meta that specifies a cache, and attach cache to those vars.
(attach-caches)
(attach-caches ns-black-list)
Scans loaded namespaces and attaches new caches to all vars that have :memento.core/cache key in meta of the var. Returns coll of affected vars.
The value of :memento.core/cache meta key is used as spec parameter in memento.core/memo.
Note that ONLY the loaded namespaces are considered.
You can specify a namespace black-list. It's a list of regexes, which are applied to namespace name with re-find (so you only need to match part of the name). The value defaults to default-blacklist, which blacklists clojure.* and nrepl.*
Scans loaded namespaces and attaches new caches to all vars that have :memento.core/cache key in meta of the var. Returns coll of affected vars. The value of :memento.core/cache meta key is used as spec parameter in memento.core/memo. Note that ONLY the loaded namespaces are considered. You can specify a namespace black-list. It's a list of regexes, which are applied to namespace name with re-find (so you only need to match part of the name). The value defaults to default-blacklist, which blacklists clojure.* and nrepl.*
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close