pub struct CacheConfig {
pub l1_ttl_secs: u64,
pub l2_max_entries: usize,
pub l2_ttl_secs: u64,
pub l3_max_bytes: u64,
pub compose_cache_enabled: bool,
pub derivations_enabled: bool,
pub derivations_dir: Option<String>,
pub derivations_max_bytes: u64,
}Expand description
Bounds and switches for the cross-agent delivery cache ([cache]).
The one source for these values: the former copy under
[ocla.delivery.cache] is moved here by the automatic config migration.
Fields§
§l1_ttl_secs: u64Process-local tier lifetime (seconds).
l2_max_entries: usizeDaemon tier size (entries).
l2_ttl_secs: u64Daemon tier lifetime (seconds).
l3_max_bytes: u64Disk tier budget (bytes), enforced when the cache opens.
compose_cache_enabled: boolReuse a ctx_compose result for the same task and path.
derivations_enabled: boolShare pure parse results (BM25 chunks, deep analysis, signatures) by
content hash across worktrees and data homes (#2247). Off by default;
LEAN_CTX_DERIVATION_CACHE=1|0 overrides it.
derivations_dir: Option<String>Directory of the shared parse cache; default <cache dir>/derivations.
LEAN_CTX_DERIVATION_CACHE_DIR overrides it.
derivations_max_bytes: u64Size budget of the shared parse cache (bytes); 0 = default 512 MiB.
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§impl Debug for CacheConfig
impl Debug for CacheConfig
Source§impl Default for CacheConfig
impl Default for CacheConfig
Source§impl<'de> Deserialize<'de> for CacheConfigwhere
CacheConfig: Default,
impl<'de> Deserialize<'de> for CacheConfigwhere
CacheConfig: Default,
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>,
Auto Trait Implementations§
impl Forget for CacheConfig
impl Freeze for CacheConfig
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more