Skip to main content

MAX_TTL_SECS

Constant MAX_TTL_SECS 

pub const MAX_TTL_SECS: u64 = _; // 31_536_000u64
Expand description

Ceiling on any store-side TTL, in seconds: one year.

Exists because Duration reaches 584 billion years and Redis’s PEXPIRE takes an i64 of milliseconds — a Duration::MAX window reached the script as an out-of-range integer, which failed the whole consume with Internal and therefore 500’d every rate-limited route (cratestack#871 review, should-fix 4). Clamping keeps a nonsensical configuration a degenerate budget rather than an outage.