Skip to main content

file_backend

Function file_backend 

Source
pub fn file_backend(dir: impl AsRef<Path>) -> Arc<FileBackend>
Expand description

Convenience constructor returning an Arc<FileBackend>. Use this when sharing a single backend across multiple tiers (the paired { snapshot, wal } pattern from DS-14-storage §a). For non-default configuration use Arc::new(FileBackend::new(dir).with_include_hidden(true)).