jaemk/cached

Retrieve cache expiration time from cached function result

inferrna opened this issue · 0 comments

This often needed when working with temporary tokens.

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