pub struct Config {
pub cache_dir: NormalizedPath,
pub max_cache_size: u64,
pub idle_timeout_secs: u64,
pub enable_watcher: bool,
pub watcher_poll_fallback: bool,
pub log_level: String,
pub max_memory_bytes: u64,
pub eviction_interval_secs: u64,
pub disk_gc_interval_secs: u64,
}Expand description
Top-level configuration for zccache.
Fields§
§cache_dir: NormalizedPathPath to the artifact cache directory.
max_cache_size: u64Maximum artifact cache size in bytes.
idle_timeout_secs: u64Daemon idle timeout in seconds before auto-shutdown.
enable_watcher: boolWhether to enable the file watcher.
watcher_poll_fallback: boolWhether to use polling fallback for file watching.
log_level: StringLog level filter (e.g., “info”, “debug”, “trace”).
max_memory_bytes: u64Maximum in-memory cache budget in bytes (default: 1 GB).
eviction_interval_secs: u64How often (in seconds) the memory eviction background task runs (default: 30).
disk_gc_interval_secs: u64How often (in seconds) the disk artifact GC task runs (default: 300).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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