Expand description
Configuration for the asset cache subsystem.
Mirrors the [assets] section of devboy.toml and provides human-readable
parsers for sizes (e.g. "1Gi") and durations (e.g. "7d").
Structs§
- Asset
Config - Raw configuration as loaded from
devboy.toml. - Resolved
Asset Config - Fully validated asset configuration with parsed values.
Enums§
- Eviction
Policy - Eviction strategy applied by the rotator when the cache is over budget.
Constants§
- DEFAULT_
MAX_ CACHE_ SIZE - Default cache size limit: 1 GiB.
- DEFAULT_
MAX_ FILE_ AGE - Default maximum file age before LRU eviction kicks in: 7 days.
Functions§
- default_
cache_ dir - Default cache directory used when the user did not configure one.
- expand_
path - Expand a user-provided path — supports leading
~and$HOMEonly. - parse_
duration - Parse a human-readable duration such as
"7d","24h","30m","45s". - parse_
size - Parse a human-readable size string into a byte count.