In-memory connection storage backed by Caffeine.
In-memory connection storage backed by Caffeine.
(store {:keys [idle-ms maximum-size cache]
:or {idle-ms (* 10 60 1000) maximum-size 10000}})
Return a CaffeineConnectionStore
.
Options (all optional):
:idle-ms
– how long a connection may sit idle before it is
auto-purged (default 10 minutes):maximum-size
– hard cap on the total number of live connections
(default 10000):cache
– an already-built com.github.benmanes.caffeine.cache.Cache
(overrides every other option)Return a `CaffeineConnectionStore`. Options (all optional): * `:idle-ms` – how long a connection may sit idle before it is auto-purged (default 10 minutes) * `:maximum-size` – hard cap on the total number of live connections (default 10000) * `: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 |