Liking cljdoc? Tell your friends :D

memento.ns-scan

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.
raw docstring

attach-cachesclj

(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 conf parameter in memento.core/memo. If :memento.core/mount key is also present, then they are used as cache and conf parameters respectively.

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 conf parameter
in memento.core/memo. If :memento.core/mount key is also present, then
they are used as cache and conf parameters respectively.

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.*
sourceraw docstring

default-blacklistclj

source

memoize-if-configuredclj

(memoize-if-configured v)

If var has :memento.core/cache meta key present, use that as memoization configuration. Returns the var or nil if not memoized.

If var has :memento.core/cache meta key present, use that as memoization
configuration. Returns the var or nil if not memoized.
sourceraw docstring

not-blacklisted?clj

(not-blacklisted? black-list n)

Returns true if namespace is not blacklisted.

Returns true if namespace is not blacklisted.
sourceraw docstring

varsclj

(vars black-list)
source

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

× close