aboutsummaryrefslogtreecommitdiff
path: root/src/shared_cache.rs
diff options
context:
space:
mode:
authoromagdy <omar.professional8777@gmail.com>2025-07-24 06:04:32 +0300
committeromagdy <omar.professional8777@gmail.com>2025-07-24 06:04:32 +0300
commit30e6b478d7cd286b68da21d7a5aa5426c588cd02 (patch)
tree719096c1bd3975e192bc5d6608f9f27f98e10e16 /src/shared_cache.rs
parent561fb8d783cc000b7b9cc204e10618464c092e18 (diff)
downloadredis-rust-30e6b478d7cd286b68da21d7a5aa5426c588cd02.tar.xz
redis-rust-30e6b478d7cd286b68da21d7a5aa5426c588cd02.zip
refactor: Refactor how I model the state and config and cache of the server with sepraration of concerns
Diffstat (limited to 'src/shared_cache.rs')
-rw-r--r--src/shared_cache.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shared_cache.rs b/src/shared_cache.rs
index 4d6aec2..f7672f4 100644
--- a/src/shared_cache.rs
+++ b/src/shared_cache.rs
@@ -1,6 +1,5 @@
use std::{
collections::HashMap,
- sync::{Arc, Mutex},
time::{SystemTime, UNIX_EPOCH},
};
@@ -24,4 +23,4 @@ impl CacheEntry {
}
}
-pub type SharedCache = Arc<Mutex<HashMap<String, CacheEntry>>>;
+pub type Cache = HashMap<String, CacheEntry>;