Liking cljdoc? Tell your friends :D

memento.guava

Guava cache implementation.

Guava cache implementation.
raw docstring

augment-keyfnclj

(augment-keyfn key-fn region-cache)
source

cgetclj

(cget guava-cache {:memento.core/keys [key-fn ret-fn]} f args)
source

cval->valclj

(cval->val v)

Change ::nil cache value to nil

Change ::nil cache value to nil
sourceraw docstring

GCacheclj

source

GRegionclj

source

key->ckeyclj

(key->ckey key-fn k)

Transform key into cache key

Transform key into cache key
sourceraw docstring

parse-time-scalarclj

(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.
sourceraw docstring

parse-time-unitclj

(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.
sourceraw docstring

process-non-cachedclj

(process-non-cached obj)

Unwrap NonCached objects and throw exception to prevent caching.

Unwrap NonCached objects and throw exception to prevent caching.
sourceraw docstring

region-statsclj

(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
sourceraw docstring

spec->builderclj

(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.
sourceraw docstring

statsclj

(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
sourceraw docstring

timeunitsclj

source

val->cvalclj

(val->cval v)

Change nil to cache value of ::nil

Change nil to cache value of ::nil
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close