Liking cljdoc? Tell your friends :D

wagoe.cache.shell.module-wiring

Integrant wiring for the cache module.

Supports two providers selectable via config:

  • :redis — distributed Redis-backed cache (production)
  • :memory — local atom-based cache (dev / tests without Redis)

Config key: :wagoe/cache Example (Redis): {:provider :redis :host "localhost" :port 6379 :default-ttl 300 :max-total 20 :max-idle 10 :min-idle 2}

Example (in-process): {:provider :memory :default-ttl 300 :max-size 10000}

:in-memory is the pre-1.0 spelling and still works; see normalize-provider.

Integrant wiring for the cache module.

Supports two providers selectable via config:
- :redis   — distributed Redis-backed cache (production)
- :memory  — local atom-based cache (dev / tests without Redis)

Config key: :wagoe/cache
Example (Redis):
  {:provider :redis
   :host "localhost" :port 6379
   :default-ttl 300
   :max-total 20 :max-idle 10 :min-idle 2}

Example (in-process):
  {:provider :memory
   :default-ttl 300
   :max-size 10000}

`:in-memory` is the pre-1.0 spelling and still works; see
`normalize-provider`.
raw docstring

ig-configclj

(ig-config settings _ctx)

This module's Integrant entries, for wagoe.platform.shell.system.config.

The cache is one component, but the HTTP handler takes a ref to it, so this cannot be the default passthrough the assembler applies to a settings-only module.

This module's Integrant entries, for `wagoe.platform.shell.system.config`.

The cache is one component, but the HTTP handler takes a ref to it, so this
cannot be the default passthrough the assembler applies to a settings-only
module.
sourceraw docstring

normalize-providerclj

(normalize-provider provider)

The provider keyword in the vocabulary cache, realtime, events and jobs share. This module implements :memory | :redis; :db exists only where a module has a database adapter.

:in-memory is accepted as :memory and warns. Removal no earlier than 2.0 (BOU-436). nil keeps the documented default rather than failing: omitting :provider has always meant in-process.

The provider keyword in the vocabulary cache, realtime, events and jobs
share. This module implements `:memory` | `:redis`; `:db` exists only where a
module has a database adapter.

`:in-memory` is accepted as `:memory` and warns. Removal no earlier than 2.0
(BOU-436). nil keeps the documented default rather than failing: omitting
`:provider` has always meant in-process.
sourceraw docstring

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