MmapCache

Type Alias MmapCache 

Source
pub type MmapCache = Cache<Mmap, Mmap>;

Aliased Type§

pub struct MmapCache { /* private fields */ }

Implementations§

Source§

impl MmapCache

Source

pub unsafe fn map_paths( index_path: impl AsRef<Path>, value_path: impl AsRef<Path>, ) -> Result<Self, Error>

Maps the files at index_path and value_path to read-only virtual memory ranges.

§Safety

See Mmap.

Source

pub unsafe fn map_files( index_file: &File, value_file: &File, ) -> Result<Self, Error>

Mapsindex_file and value_file to read-only virtual memory ranges.

§Safety

See Mmap.