through
function
clojure.core.cache/through
(through [cache item] [value-fn cache item] [wrap-fn value-fn cache item])The basic hit/miss logic for the cache system. Expects a wrap function and
value function. The wrap function takes the value function and the item in question
and is expected to run the value function with the item whenever a cache
miss occurs. The intent is to hide any cache-specific cells from leaking
into the cache logic itelf.
Examples
No examples yet. Be the first to add one!