Liking cljdoc? Tell your friends :D

memento.mount

Mount points, they serve as glue between a cache that can house entries from multiple functions and the individual functions.

Mount points, they serve as glue between a cache that can house entries from
multiple functions and the individual functions.
raw docstring

*caches*clj

Contains map of mount point to cache instance

Contains map of mount point to cache instance
sourceraw docstring

alter-caches-mappingclj

(alter-caches-mapping tag update-fn & update-fn-args)

Internal function. Modifies entire tagged cache map with the provided function. Applies the function as (fn [caches refs & other-update-fn-args])

Internal function. Modifies entire tagged cache map with the provided function.
Applies the function as (fn [*caches* refs & other-update-fn-args])
sourceraw docstring

assoc-cache-tagsclj

(assoc-cache-tags index cache-tags ref)

Add Mount Point ref to tag index

Add Mount Point ref to tag index
sourceraw docstring

bindclj

(bind fn-or-var mount-conf cache)

Bind a cache to a fn or var. Internal function.

Bind a cache to a fn or var. Internal function.
sourceraw docstring

bind-var-fnclj

(bind-var-fn f v conf)

Binds a new cache to fn f, which is about to become the root of var v, without touching the var. Conf map is as described in meta-confs. Used by defmemo.

Binds a new cache to fn f, which is about to become the root of var v,
without touching the var. Conf map is as described in meta-confs. Used by defmemo.
sourceraw docstring

create-mountclj

(create-mount f cache mount-conf)

Create mount record by specified map conf

Create mount record by specified map conf
sourceraw docstring

dissoc-cache-tagsclj

(dissoc-cache-tags index ref)

Remove Mount Point ref from tag index

Remove Mount Point ref from tag index
sourceraw docstring

meta-confsclj

(meta-confs m)

Returns [mount-conf cache-conf] from a map with config/cache and optional config/mount keys (e.g. var meta). If config/mount is present, config/cache is used as cache conf as is, otherwise config/cache is split into mount and cache conf.

Returns [mount-conf cache-conf] from a map with config/cache and optional config/mount
keys (e.g. var meta). If config/mount is present, config/cache is used as cache conf as is,
otherwise config/cache is split into mount and cache conf.
sourceraw docstring

mount-pointclj

(mount-point obj)

Return active mount point from the object's meta.

Return active mount point from the object's meta.
sourceraw docstring

mounted-cacheclj

(mounted-cache mp)
source

prim-hinted?clj

(prim-hinted? var-meta)

True if var meta (as produced by defn) specifies primitive type hints in return tag or arglists, which produce IFn$LL style call sites that a cached function cannot satisfy.

True if var meta (as produced by defn) specifies primitive type hints in return tag or
arglists, which produce IFn$LL style call sites that a cached function cannot satisfy.
sourceraw docstring

prim-tagsclj

Type hints that produce primitive invoke interfaces.

Type hints that produce primitive invoke interfaces.
sourceraw docstring

reify-mount-confclj

(reify-mount-conf mount-conf)

Transform user given mount-conf to a canonical form of a map.

Transform user given mount-conf to a canonical form of a map.
sourceraw docstring

split-confclj

(split-conf conf)

Splits combined conf into [mount-conf cache-conf]. Non-map conf is all mount-conf.

Splits combined conf into [mount-conf cache-conf]. Non-map conf is all mount-conf.
sourceraw docstring

tagsclj

Map tag to mount-point

Map tag to mount-point
sourceraw docstring

update-existingclj

(update-existing m ks update-fn)

Convenience function. Updates ks's that are present with the provided update fn.

Convenience function. Updates ks's that are present with the provided update fn.
sourceraw docstring

var-mount-confclj

(var-mount-conf v mount-conf)

Canonical mount conf for a function bound to var v, defaults id to the var's name.

Canonical mount conf for a function bound to var v, defaults id to the var's name.
sourceraw docstring

wrap-fnclj

(wrap-fn f ret-fn ret-ex-fn)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close