MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / CachePolicy

Enum CachePolicy

graphlite/src/cache/cache_config.rs:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56/// Cache policies determining behavior
57#[derive(Debug, Clone, Serialize, Deserialize)]
58pub 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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected