Skip to content

Commit

Permalink
refactor: derice traits for cache hint
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx committed Oct 30, 2024
1 parent 8ece3ca commit d112637
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions foyer-memory/src/record.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
use std::sync::atomic::{AtomicIsize, AtomicU64, Ordering};

use bitflags::bitflags;
use serde::{Deserialize, Serialize};

use crate::{eviction::Eviction, slab::Token};

Expand All @@ -27,6 +28,7 @@ use crate::{eviction::Eviction, slab::Token};
/// it to a proper one.
///
/// For more details, please refer to the document of each enum options.
#[derive(Debug, Clone, Copy, Serialize, Deserialize)]
pub enum CacheHint {
/// The default hint shared by all cache eviction algorithms.
Normal,
Expand Down

0 comments on commit d112637

Please sign in to comment.