pub struct Config { /* private fields */ }Expand description
Value log configuration
Implementations§
source§impl Config
impl Config
sourcepub fn use_compression(self, compression: CompressionType) -> Self
pub fn use_compression(self, compression: CompressionType) -> Self
Sets the compression type to use.
Using compression is recommended, see CompressionType.
Default = none
sourcepub fn blob_cache(self, blob_cache: Arc<BlobCache>) -> Self
pub fn blob_cache(self, blob_cache: Arc<BlobCache>) -> Self
Sets the blob cache.
You can create a global BlobCache and share it between multiple
value logs to cap global cache memory usage.
Defaults to a blob cache with 16 MiB of capacity per value log.
sourcepub fn segment_size_bytes(self, bytes: u64) -> Self
pub fn segment_size_bytes(self, bytes: u64) -> Self
Sets the maximum size of value log segments.
This heavily influences space amplification, as space reclamation works on a per-segment basis.
Like blob_file_size in RocksDB.
Default = 256 MiB
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl !RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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