pub struct MemoryCache {
pub capacity: Option<u64>,
pub ttl: Option<u64>,
pub tti: Option<u64>,
pub max_file_size: Option<u64>,
}
Available on crate feature
experimental
only.Expand description
Represents the in-memory file cache feature.
Fields§
§capacity: Option<u64>
Maximum capacity entries of the memory cache store.
ttl: Option<u64>
Time to live in seconds of a cached file entry.
tti: Option<u64>
Time to idle in seconds of a cached file entry.
max_file_size: Option<u64>
Maximum size in bytes for a file entry to be cached.
Trait Implementations§
Source§impl Clone for MemoryCache
impl Clone for MemoryCache
Source§fn clone(&self) -> MemoryCache
fn clone(&self) -> MemoryCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MemoryCache
impl Debug for MemoryCache
Source§impl<'de> Deserialize<'de> for MemoryCache
impl<'de> Deserialize<'de> for MemoryCache
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MemoryCache
impl RefUnwindSafe for MemoryCache
impl Send for MemoryCache
impl Sync for MemoryCache
impl Unpin for MemoryCache
impl UnwindSafe for MemoryCache
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