pub struct CacheInfo {
pub namespace: Option<String>,
pub keys: Option<Vec<String>>,
pub check_cache_control: bool,
pub max_ttl: Option<Duration>,
pub reading_count: Option<u32>,
pub writing_count: Option<u32>,
}Expand description
All cache-related configuration and statistics for a request.
Fields§
§namespace: Option<String>The namespace for cache entries.
keys: Option<Vec<String>>The list of keys used to generate the final cache key.
check_cache_control: boolWhether to respect Cache-Control headers.
max_ttl: Option<Duration>The maximum time-to-live for cache entries.
reading_count: Option<u32>The number of cache read operations performed.
writing_count: Option<u32>The number of cache write operations performed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheInfo
impl RefUnwindSafe for CacheInfo
impl Send for CacheInfo
impl Sync for CacheInfo
impl Unpin for CacheInfo
impl UnsafeUnpin for CacheInfo
impl UnwindSafe for CacheInfo
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