pub struct CacheDef {
pub backend: CacheBackendType,
pub path: Option<String>,
pub size_mb: i32,
pub default_freshness: FreshnessDef,
pub max_entries: Option<i32>,
pub ttl: Option<String>,
}Expand description
Cache configuration for the Three Dragons architecture.
pack syntax:
cache {
backend: lmdb
path: "/var/cellstate/cache"
size_mb: 1024
default_freshness: best_effort { max_staleness: 60s }
}Fields§
§backend: CacheBackendType§path: Option<String>§size_mb: i32§default_freshness: FreshnessDef§max_entries: Option<i32>§ttl: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for CacheDef
impl<'de> Deserialize<'de> for CacheDef
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
impl StructuralPartialEq for CacheDef
Auto Trait Implementations§
impl Freeze for CacheDef
impl RefUnwindSafe for CacheDef
impl Send for CacheDef
impl Sync for CacheDef
impl Unpin for CacheDef
impl UnwindSafe for CacheDef
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