Expand description
Proactive Redis eviction manager.
Provides intelligent eviction before Redis LRU kicks in, protecting infrastructure keys (merkle trees, indexes) while evicting data keys based on access patterns and memory pressure.
Uses the same tan-curve scoring algorithm as L1 memory eviction.
§Strategy
┌─────────────────────────────────────────────────────────────┐
│ Layer 1: Proactive Tan-Curve (sync-engine managed) │
│ └─ Score = f(last_access, access_count, size, pressure) │
│ └─ Protected: merkle:*, idx:*, RediSearch indexes │
│ └─ Evict lowest-scoring data keys first │
├─────────────────────────────────────────────────────────────┤
│ Layer 2: Redis LRU (emergency fallback) │
│ └─ Only kicks in if proactive eviction miscalculates │
│ └─ maxmemory-policy: allkeys-lru │
└─────────────────────────────────────────────────────────────┘Structs§
- Redis
Eviction Config - Configuration for Redis eviction.
- Redis
Eviction Manager - Proactive Redis eviction manager.
- Redis
Eviction Stats - Statistics for monitoring Redis eviction state.
- Redis
KeyMeta - Metadata for a tracked Redis key (for eviction scoring).
- Redis
Memory Profile - Cached Redis memory profile to avoid round-trips.