pub struct L2Config {
pub enabled: bool,
pub size_mb: usize,
pub ttl: Duration,
pub normalize_queries: bool,
pub storage: StorageBackend,
pub mmap_path: Option<PathBuf>,
}Expand description
L2 warm cache configuration (shared)
Fields§
§enabled: boolEnable L2 cache
size_mb: usizeMaximum cache size in MB
ttl: DurationTime-to-live for cached entries
normalize_queries: boolEnable query normalization
storage: StorageBackendStorage backend
mmap_path: Option<PathBuf>Memory-mapped file path (for mmap backend)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for L2Config
impl RefUnwindSafe for L2Config
impl Send for L2Config
impl Sync for L2Config
impl Unpin for L2Config
impl UnsafeUnpin for L2Config
impl UnwindSafe for L2Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more