Struct CacheConfig
pub struct CacheConfig {
pub enabled: bool,
pub size: usize,
pub ttl_ms: u64,
pub multi_level: bool,
pub l1_size: usize,
pub l2_size: usize,
pub l3_size: usize,
}Expand description
Cache configuration settings
Fields§
§enabled: boolEnable route caching
size: usizeCache size (number of entries)
ttl_ms: u64Time-to-live in milliseconds
multi_level: boolEnable multi-level caching
l1_size: usizeLevel 1 cache size (fast, small)
l2_size: usizeLevel 2 cache size (medium)
l3_size: usizeLevel 3 cache size (large, slow)
Trait Implementations§
§impl Clone for CacheConfig
impl Clone for CacheConfig
§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
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 more§impl Debug for CacheConfig
impl Debug for CacheConfig
§impl Default for CacheConfig
impl Default for CacheConfig
§fn default() -> CacheConfig
fn default() -> CacheConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CacheConfig
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnwindSafe for CacheConfig
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