Liking cljdoc? Tell your friends :D

memento.caffeine

Caffeine cache implementation.

Caffeine cache implementation.
raw docstring

assoc-imm-val!clj

(assoc-imm-val! transient-m k v xf)

If cached value is a completable future with immediately available value, assoc it to transient.

If cached value is a completable future with immediately available value, assoc it to transient.
sourceraw docstring

conf->builderclj

(conf->builder {:memento.core/keys [initial-capacity size< ttl fade]
                :memento.caffeine/keys [weight< removal-listener kv-weight
                                        weak-keys weak-values soft-values
                                        refresh stats ticker expiry]})

Creates and configures common parameters on the builder.

Creates and configures common parameters on the builder.
sourceraw docstring

conf->sec-indexclj

(conf->sec-index {:memento.core/keys [concurrency]})

Creates secondary index for evictions

Creates secondary index for evictions
sourceraw docstring

create-expiryclj

(create-expiry ttl fade cache-expiry)

Assumes variable expiry is needed. So either ttl or fade is a function.

Assumes variable expiry is needed. So either ttl or fade is a function.
sourceraw docstring

load-dataclj

(load-data cache data-map)
source

statsclj

(stats fn-or-cache)

Return caffeine stats for the cache if it is a caffeine Cache.

Takes a memoized fn or a Cache instance as a parameter.

Returns com.github.benmanes.caffeine.cache.stats.CacheStats

Return caffeine stats for the cache if it is a caffeine Cache.

Takes a memoized fn or a Cache instance as a parameter.

Returns com.github.benmanes.caffeine.cache.stats.CacheStats
sourceraw docstring

to-dataclj

(to-data cache)
source

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

× close