Liking cljdoc? Tell your friends :D
Clojure only.

datastar.wow.deacon.caffeine

In-memory connection storage backed by Caffeine.

In-memory connection storage backed by Caffeine.
raw docstring

storeclj

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

to-nanosclj

(to-nanos ms)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close