Skip to main content

eviction_scores_rrf

Function eviction_scores_rrf 

Source
pub fn eviction_scores_rrf(
    entries: &[(&String, &CacheEntry)],
    now: Instant,
) -> Vec<(String, f64)>
Expand description

Compute Reciprocal Rank Fusion eviction scores for a batch of cache entries. Each signal (recency, frequency, size) produces an independent ranking. The final score is the sum of 1/(k + rank) across all signals. Higher score = more valuable = keep longer.