Skip to main content

xet_runtime/config/groups/
chunk_cache.rs

1#[cfg(not(feature = "no-default-cache"))]
2pub const DEFAULT_CHUNK_CACHE_CAPACITY: u64 = 10_000_000_000; // 10 GB
3#[cfg(feature = "no-default-cache")]
4pub const DEFAULT_CHUNK_CACHE_CAPACITY: u64 = 0;
5
6crate::config_group!({
7    /// Default chunk cache capacity: 10 GB or 0 depends on the build feature
8    ///
9    /// Use the environment variable `HF_XET_CHUNK_CACHE_SIZE_BYTES` to set this value.
10    ref size_bytes: u64 = DEFAULT_CHUNK_CACHE_CAPACITY;
11});