Skip to main content

parse_refresh_ttl

Function parse_refresh_ttl 

Source
fn parse_refresh_ttl(config: &HashMap<String, Value>) -> Result<bool, String>
Expand description

Parses the optional refresh_ttl flag.

Defaults to false, which keeps the expiry pinned to the key’s creation. That default is load-bearing: a retry bound whose expiry refreshed on every increment could be held open indefinitely by the very client it limits. Setting it to true is the deliberate opposite – a sliding window of “N events within ttl_seconds of each other”.