Guava cache implementation.
Guava cache implementation.
(cval->val v)
Change ::nil cache value to nil
Change ::nil cache value to nil
(key->ckey key-fn k)
Transform key into cache key
Transform key into cache key
(parse-time-scalar time-param)
Returns the scalar part of time spec. Time can be specified by integer or a vector of two elements, where first element is an integer and the other is the time unit keyword.
Returns the scalar part of time spec. Time can be specified by integer or a vector of two elements, where first element is an integer and the other is the time unit keyword.
(parse-time-unit time-param)
Returns the time unit part of time spec. Time can be specified by integer or a vector of two elements, where first element is an integer and the other is the time unit keyword. If only integer is specified then time unit is seconds.
Returns the time unit part of time spec. Time can be specified by integer or a vector of two elements, where first element is an integer and the other is the time unit keyword. If only integer is specified then time unit is seconds.
(process-non-cached obj)
Unwrap NonCached objects and throw exception to prevent caching.
Unwrap NonCached objects and throw exception to prevent caching.
(region-stats region-id)
Return guava stats for the region-id. Returns com.google.common.cache.CacheStats
Return guava stats for the region-id. Returns com.google.common.cache.CacheStats
(spec->builder {:memento.core/keys [concurrency initial-capacity size< weight<
ttl fade refresh stats kv-weight weak-keys
weak-values soft-values ticker
removal-listener]}
region?)
Creates and configures common parameters on the builder.
Creates and configures common parameters on the builder.
(stats cached-fn)
Return guava stats for the function, if function has non-regional stated Guava Cache.
Returns com.google.common.cache.CacheStats
Return guava stats for the function, if function has non-regional stated Guava Cache. Returns com.google.common.cache.CacheStats
(val->cval v)
Change nil to cache value of ::nil
Change nil to cache value of ::nil
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close