pub struct Builder { /* private fields */ }Expand description
Plugin builder
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn http_ttl_ms(self, ttl: u64) -> Self
pub fn http_ttl_ms(self, ttl: u64) -> Self
Set HTTP cache TTL in milliseconds
Sourcepub fn image_ttl_ms(self, ttl: u64) -> Self
pub fn image_ttl_ms(self, ttl: u64) -> Self
Set image cache TTL in milliseconds
Sourcepub fn memory_cache_size(self, size: usize) -> Self
pub fn memory_cache_size(self, size: usize) -> Self
Set memory cache size
Sourcepub fn compress_threshold(self, threshold: usize) -> Self
pub fn compress_threshold(self, threshold: usize) -> Self
Set compression threshold in bytes
Sourcepub fn cleanup_interval_secs(self, interval: u64) -> Self
pub fn cleanup_interval_secs(self, interval: u64) -> Self
Set auto cleanup interval in seconds
Sourcepub fn db_filename(self, filename: impl Into<String>) -> Self
pub fn db_filename(self, filename: impl Into<String>) -> Self
Set database filename
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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