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.

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.

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

default-blacklistclj


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

not-blacklisted?clj

(not-blacklisted? black-list n)

Returns true if namespace is not blacklisted.

Returns true if namespace is not blacklisted.
raw docstring

varsclj

(vars black-list)

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

× close