Svelixir.Config.Cache (svelixir v0.1.0)

Copy Markdown

Cache layer configuration within the container.

Summary

Functions

Builds and validates a Cache struct from a raw string-keyed map.

Types

t()

@type t() :: %Svelixir.Config.Cache{
  distributed: boolean(),
  l1: String.t() | nil,
  l2: String.t() | nil
}

Functions

from_map(data)

@spec from_map(map()) :: {:ok, t()} | {:error, String.t()}

Builds and validates a Cache struct from a raw string-keyed map.