Function is_valid
Source pub fn is_valid(key: &str, max_age: u32) -> bool
Expand description
Check if a key exists in the in-memory cache and is not expired
§Arguments
key - Cache key to check
max_age - Maximum age in seconds
§Returns
true - Key exists and is not expired
false - Key does not exist or is expired