CacheEntry
The return type of the closure provided to get_or_set_with().
Fields
value
crate::BodyThe value to cache.
Argument type conversion
See the From impls for Body to see which types can be used as a body.
ttl
std::time::DurationThe time-to-live for the cache entry.