From 30e6b478d7cd286b68da21d7a5aa5426c588cd02 Mon Sep 17 00:00:00 2001 From: omagdy Date: Thu, 24 Jul 2025 06:04:32 +0300 Subject: refactor: Refactor how I model the state and config and cache of the server with sepraration of concerns --- src/shared_cache.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/shared_cache.rs') 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>>; +pub type Cache = HashMap; -- cgit v1.2.3