Hyper.Cfg.Gc (Hyper v0.1.0)

Copy Markdown View Source

Layer garbage collector tuning. Each field reads from config.exs (config :hyper, Hyper.Cfg.Gc, ...), then the [img.gc] table, then its default. Durations are Unit.Time — Elixir terms in config.exs, strings ("60s", "1h") in TOML.

Summary

Types

t()

@type t() :: %Hyper.Cfg.Gc{
  acquire_interval: Unit.Time.t(),
  batch_pause: Unit.Time.t(),
  batch_size: pos_integer(),
  grace_period: Unit.Time.t(),
  retry: Unit.Time.t(),
  sweep_interval: Unit.Time.t(),
  timeout: Unit.Time.t()
}

Functions

load()

@spec load() :: t()