Struct fastly::cache::simple::CacheEntry
source · pub struct CacheEntry {
pub value: Body,
pub ttl: Duration,
}
Expand description
The return type of the closure provided to get_or_set_with()
.
Fields§
§value: Body
The value to cache.
§Argument type conversion
See the From
impls for Body
to see which types can be used as a body.
ttl: Duration
The time-to-live for the cache entry.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CacheEntry
impl Send for CacheEntry
impl Sync for CacheEntry
impl Unpin for CacheEntry
impl UnwindSafe for CacheEntry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more