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.
Contains map of mount point to cache instance
Contains map of mount point to cache instance
(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])
(assoc-cache-tags index cache-tags ref)Add Mount Point ref to tag index
Add Mount Point ref to tag index
(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.
(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.
(create-mount f cache mount-conf)Create mount record by specified map conf
Create mount record by specified map conf
(dissoc-cache-tags index ref)Remove Mount Point ref from tag index
Remove Mount Point ref from tag index
(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.
(mount-point obj)Return active mount point from the object's meta.
Return active mount point from the object's meta.
(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.
Type hints that produce primitive invoke interfaces.
Type hints that produce primitive invoke interfaces.
(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.
(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.
(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.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |