Skip to main content

is_stale

Function is_stale 

Source
pub fn is_stale(cache: Option<&Cache>, now: u64, ttl: Duration) -> bool
Expand description

True when the cache is missing, older than ttl, or stamped in the future. A future stamp means a clock moved backwards; treating it as fresh would freeze the check until the clock caught up.