In-memory connection storage backed by Caffeine.
In-memory connection storage backed by Caffeine.
(store {:keys [duration-ms maximum-size scheduler cache]
:or {duration-ms (* 10 60 1000) maximum-size 10000}})Return a CaffeineConnectionStore.
Options (all optional):
:duration-ms – how long a connection may sit idle before it is
auto-purged (default 10 minutes). If using a scheduler, this is the fixed time before
eviction:maximum-size – hard cap on the total number of live connections
(default 10000):scheduler - optional Scheduler instance. If true is given, the
dedicated, system-wide scheduling thread will be used - i.e (Scheduler/systemScheduler).
Otherwise, must be an instance of Scheduler - all other values are ignored.
If a scheduler is used, all entries will expire after a fixed time of duration-ms:cache – an already-built com.github.benmanes.caffeine.cache.Cache
(overrides every other option)Return a `CaffeineConnectionStore`.
Options (all optional):
* `:duration-ms` – how long a connection may sit idle before it is
auto-purged (default 10 minutes). If using a scheduler, this is the fixed time before
eviction
* `:maximum-size` – hard cap on the total number of live connections
(default 10000)
* `:scheduler` - optional Scheduler instance. If `true` is given, the
dedicated, system-wide scheduling thread will be used - i.e (Scheduler/systemScheduler).
Otherwise, must be an instance of Scheduler - all other values are ignored.
If a scheduler is used, all entries will expire after a fixed time of `duration-ms`
* `:cache` – an already-built `com.github.benmanes.caffeine.cache.Cache`
(overrides every other option)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 |