pub fn new(value: T, cache_item_ttl: u128) -> Self {
        CacheItem {
            value,
            ttl: current_time_in_nanoseconds() + cache_item_ttl,
        }
    }
/// Returns a cached item.
///
/// Sets the TTL of the item to the current time in nanoseconds since the unix epoch
/// plus the provided cache_item_ttl value.
Returns a cached item.
Sets the TTL of the item to the current time in nanoseconds since the unix epoch
plus the provided cache_item_ttl value.
Returns a cached item . Sets the TTL of the item to the current time in nanoseconds since the unix epoch plus the provided cache_item_ttl value .
pub fn new(value: T, cache_item_ttl: u128) -> Self {
        CacheItem {
            value,
            ttl: current_time_in_nanoseconds() + cache_item_ttl,
        }
    }
pub fn new ( value : T , cache_item_ttl : u128 ) -> Self { CacheItem { value , ttl : current_time_in_nanoseconds ( ) + cache_item_ttl , } }
Returns a cached item.
Returns a cached item .
value
T
cache_item_ttl
u128
value
T
cache_item_ttl
u128