pub struct CacheConfig {
pub default_ttl: u64,
pub max_memory_entries: Option<usize>,
pub redis_pool_size: Option<u32>,
pub key_prefix: Option<String>,
}Expand description
Cache configuration
Fields§
§default_ttl: u64TTL in seconds for cache entries
max_memory_entries: Option<usize>Maximum number of entries in memory cache
redis_pool_size: Option<u32>Connection pool size for Redis
key_prefix: Option<String>Key prefix for cache entries
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§impl Debug for CacheConfig
impl Debug for CacheConfig
Auto Trait Implementations§
impl Freeze for CacheConfig
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnsafeUnpin 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