Caffeine cache implementation.
Caffeine cache implementation.
(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.
(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]}
sec-index)Creates and configures common parameters on the builder.
Creates and configures common parameters on the builder.
(conf->sec-index {:memento.core/keys [concurrency initial-capacity]})Creates secondary index for evictions
Creates secondary index for evictions
(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
(val->cval v)Converts val into cache friendly version.
Converts val into cache friendly version.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |