| 56 | /// Cache policies determining behavior |
| 57 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 58 | pub enum CachePolicy { |
| 59 | /// Write-through: write to cache and storage simultaneously |
| 60 | WriteThrough, |
| 61 | /// Write-back: write to cache first, storage later |
| 62 | WriteBack, |
| 63 | /// Write-around: write to storage, bypass cache |
| 64 | WriteAround, |
| 65 | /// Read-through: read from storage if cache miss, populate cache |
| 66 | ReadThrough, |
| 67 | } |
| 68 | |
| 69 | /// Eviction policies for when cache is full |
| 70 | #[derive(Debug, Clone, Serialize, Deserialize)] |
nothing calls this directly
no outgoing calls
no test coverage detected