Skip to main content

CacheTTL

Attribute Macro CacheTTL 

Source
#[CacheTTL]
Expand description

#[CacheTTL(N)] — TTL in seconds. Marker attribute consumed by the route macro and stuffed into RouteSpec.cache_ttl_secs. Pass-through here so the type system accepts it standalone.