jaemk / cached

Rust cache structures and easy function memoization

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Retrieve cache expiration time from cached function result

inferrna opened this issue · comments

This often needed when working with temporary tokens.

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