pub fn new() -> Self {
        Self {
            db: Arc::new(tokio::sync::RwLock::new(HashMap::new())),
            cache: Arc::new(tokio::sync::RwLock::new(HashMap::new())),
            stats: Arc::new(tokio::sync::RwLock::new(HashMap::new())),

            user_info: Arc::new(tokio::sync::RwLock::new(HashMap::new())),
            trans: Transaction::new(),
        }
    }
/// Creates a new in memory db with caching
Creates a new in memory db with caching
Creates a new in memory db with caching
pub fn new() -> Self {
        Self {
            db: Arc::new(tokio::sync::RwLock::new(HashMap::new())),
            cache: Arc::new(tokio::sync::RwLock::new(HashMap::new())),
            stats: Arc::new(tokio::sync::RwLock::new(HashMap::new())),
            user_info: Arc::new(tokio::sync::RwLock::new(HashMap::new())),
            trans: Transaction::new(),
        }
    }
pub fn new ( ) -> Self { Self { db : Arc :: new ( tokio :: sync :: RwLock :: new ( HashMap :: new ( ) ) ) , cache : Arc :: new ( tokio :: sync :: RwLock :: new ( HashMap :: new ( ) ) ) , stats : Arc :: new ( tokio :: sync :: RwLock :: new ( HashMap :: new ( ) ) ) , user_info : Arc :: new ( tokio :: sync :: RwLock :: new ( HashMap :: new ( ) ) ) , trans : Transaction :: new ( ) , } }
Creates a new in memory db with caching
Creates a new in memory db with caching