Skip to main content

CACHE_ARGS

Constant CACHE_ARGS 

Source
pub const CACHE_ARGS: &[(&str, &str)];
Expand description

v0.140 (ADR 0163): the @cache handler-annotation arguments, offered at an argument-name position inside @cache( … ). maxAge is required (the freshness window); scope is optional (public/private, default private). The conditional ETag/304 half is automatic and has no surface.