Liking cljdoc? Tell your friends :D

volley.ns-cache

Which namespace infos a JVM run can take from the last run's cache (.volley/ns-infos.edn) and what to save for the next one. volley.discover/ns-info is a function of a file's path and text, so an info is reused when its file's SHA-256 and the parser's key are unchanged. The shell reads the files, hashes them and parses the rest.

The cache is {:parser key :files {path entry}}, an entry being {:sha hex :info ns-info}, or {:sha hex :uncacheable? true} for an info that does not survive an EDN round trip: that file is parsed on every run, but an unchanged one does not make the cache be saved again.

Which namespace infos a JVM run can take from the last run's cache
(`.volley/ns-infos.edn`) and what to save for the next one.
`volley.discover/ns-info` is a function of a file's path and text, so an
info is reused when its file's SHA-256 and the parser's key are
unchanged. The shell reads the files, hashes them and parses the rest.

The cache is `{:parser key :files {path entry}}`, an entry being `{:sha
hex :info ns-info}`, or `{:sha hex :uncacheable? true}` for an info
that does not survive an EDN round trip: that file is parsed on every
run, but an unchanged one does not make the cache be saved again.
raw docstring

next-cacheclj

(next-cache key entries cacheable?)

The cache to save under parser key key for entries ([{:path p :sha hex :info ns-info}]): each file's SHA, with its info when (cacheable? info), else marked :uncacheable?.

The cache to save under parser key `key` for `entries` (`[{:path p
:sha hex :info ns-info}]`): each file's SHA, with its info when
`(cacheable? info)`, else marked `:uncacheable?`.
sourceraw docstring

plan-reuseclj

(plan-reuse cache key files)

How to get the infos of files ([{:path p :sha hex}]) from cache under parser key key: {:reuse {path info} :parse [path ...] :write? bool}. A file is reused when its cached entry has its SHA and an info, and parsed otherwise. :write? is true when the cache does not already hold every file as it is now: a new or changed file, a file gone, or another parser.

How to get the infos of `files` (`[{:path p :sha hex}]`) from `cache`
under parser key `key`: `{:reuse {path info} :parse [path ...] :write?
bool}`. A file is reused when its cached entry has its SHA and an info,
and parsed otherwise. `:write?` is true when the cache does not
already hold every file as it is now: a new or changed file, a file
gone, or another parser.
sourceraw docstring

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