pub struct CacheConfig {
pub ttl_secs: u64,
pub vary_by: Vec<String>,
pub dir: String,
pub max_size: String,
pub purge_token_env: String,
}Fields§
§ttl_secs: u64§vary_by: Vec<String>§dir: StringKeep entries in files under this directory (18.11.0); empty = memory.
max_size: StringBound on the disk store’s total size, e.g. "512M" (default 256 MiB).
purge_token_env: StringEnvironment variable with the bearer token PURGE requests need;
empty = no PURGE (18.11.0).
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