jaemk / cached

Rust cache structures and easy function memoization
MIT License
1.57k stars 95 forks source link

Retrieve cache expiration time from cached function result #164

Open inferrna opened 1 year ago

inferrna commented 1 year ago

This often needed when working with temporary tokens.

#[cached(expire_ts="result.1")]
fn get_token() -> (String, u64) {
    todo!()
}