Svelixir.Config.Cache (svelixir v0.11.0)

Copy Markdown

Caching backend and client mode — the cache: section.

mode is meaningful only when backend is :valkey. It is deliberately left alone otherwise rather than reset: it is documented as inert, not invalid, and rewriting it would discard a setting the user wants back the moment they flip the backend.

Summary

Functions

Builds this section, and any nested block, from input.

Types

t()

@type t() :: %Svelixir.Config.Cache{backend: atom(), mode: atom()}

Functions

new!(input \\ [])

@spec new!(keyword() | map()) :: t()

Builds this section, and any nested block, from input.

valid?(self)