hitbox-backend 0.2.1

Backend trait for asynchronous caching framework in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Refill policies for controlling L1 population after L2 hits.

/// Policy for controlling L1 refill after L2 hits.
///
/// When a read misses L1 but hits L2, the refill policy determines whether
/// to populate L1 with the value from L2.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
pub enum RefillPolicy {
    /// Always populate L1 after L2 hit (classic cache hierarchy behavior).
    Always,
    /// Never populate L1 from L2 hits (L1 is write-only).
    #[default]
    Never,
}