[feature] Getting TTL value of entry
ClSlaid opened this issue · comments
ClSlaid commented
proposing a new method that gets ttl
value of an entry.
let val_ref = cache.get(&key).unwrap();
let ttl: std::time::Duration = val_ref.ttl();
let value = val_ref.value();