pub type InvertedIndexCache = IndexCache<FileId, InvertedIndexMetas>;
Expand description
Cache for inverted index.
Aliased Type§
struct InvertedIndexCache {
index_metadata: Cache<FileId, Arc<InvertedIndexMetas>>,
index: Cache<(FileId, PageKey), Bytes>,
page_size: u64,
weight_of_metadata: fn(_: &FileId, _: &Arc<InvertedIndexMetas>) -> u32,
weight_of_content: fn(_: &(FileId, PageKey), _: &Bytes) -> u32,
}
Fields§
§index_metadata: Cache<FileId, Arc<InvertedIndexMetas>>
Cache for index metadata
index: Cache<(FileId, PageKey), Bytes>
Cache for index content.
page_size: u64
§weight_of_metadata: fn(_: &FileId, _: &Arc<InvertedIndexMetas>) -> u32
Weighter for metadata.
weight_of_content: fn(_: &(FileId, PageKey), _: &Bytes) -> u32
Weighter for content.