pub struct MemoryConfig {
pub max_jobs: Option<usize>,
pub auto_cleanup: bool,
pub cleanup_interval: Option<Duration>,
}Expand description
Configuration for in-memory storage.
Earlier revisions carried auto_cleanup / cleanup_interval knobs
here, but those were dead — MemoryStorage never read them, and
final-state expiration is owned out-of-band by
crate::processing::CleanupWorker which sweeps expires_at set
by JobProcessor. The fields and their builders are kept as
deprecated no-ops for one release so existing callers compile, but
they don’t influence runtime behavior.
Fields§
§max_jobs: Option<usize>Maximum number of jobs to keep in memory
auto_cleanup: boolauto_cleanup is a no-op; CleanupWorker handles expiration. Will be removed.
Deprecated. Was a knob for in-process auto-cleanup, but
MemoryStorage never observed it and never will — cleanup is
owned by the cross-backend CleanupWorker. Kept to avoid
breaking downstream serializations that mention it. Will be
removed in the next major release.
cleanup_interval: Option<Duration>cleanup_interval is a no-op; configure CleanupWorker via ServerConfig instead.
Deprecated. Same story as auto_cleanup — kept as a
compatibility shim. Will be removed.
Implementations§
Source§impl MemoryConfig
impl MemoryConfig
Sourcepub fn with_max_jobs(self, max_jobs: usize) -> Self
pub fn with_max_jobs(self, max_jobs: usize) -> Self
Set the maximum number of jobs to keep in memory
Sourcepub fn with_auto_cleanup(self, enabled: bool) -> Self
👎Deprecated: auto_cleanup is a no-op; CleanupWorker handles expiration. Will be removed.
pub fn with_auto_cleanup(self, enabled: bool) -> Self
auto_cleanup is a no-op; CleanupWorker handles expiration. Will be removed.
Deprecated. No-op — see the field-level note on
MemoryConfig::auto_cleanup.
Sourcepub fn with_cleanup_interval(self, interval: Duration) -> Self
👎Deprecated: cleanup_interval is a no-op; configure CleanupWorker via ServerConfig instead.
pub fn with_cleanup_interval(self, interval: Duration) -> Self
cleanup_interval is a no-op; configure CleanupWorker via ServerConfig instead.
Deprecated. No-op — see the field-level note on
MemoryConfig::cleanup_interval.
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more