Expand description
Algorithm-specific metadata types.
Provides metadata structures for each cache algorithm:
LfuMeta: Frequency counter for LFULfudaMeta: Frequency for LFUDA (age is cache-global)GdsfMeta: Frequency and priority for GDSF Algorithm-Specific Metadata Types (Re-exports)
This module re-exports metadata types from their respective algorithm modules
for backward compatibility. For new code, prefer importing directly from
the algorithm module (e.g., cache_rs::lfu::LfuMeta).
§Metadata Types
| Algorithm | Metadata Type | Location |
|---|---|---|
| LRU | () (none) | N/A |
| LFU | LfuMeta | cache_rs::lfu |
| LFUDA | LfudaMeta | cache_rs::lfuda |
| SLRU | SlruMeta | cache_rs::slru |
| GDSF | GdsfMeta | cache_rs::gdsf |
§Migration Guide
ⓘ
// Old way (still works for backward compatibility)
use cache_rs::meta::LfuMeta;
// New recommended way
use cache_rs::lfu::LfuMeta;