use crate::cache::Cache; use crate::db::DbConn; #[derive(Clone)] pub struct Accounts { db: DbConn, cache: Cache, } impl Accounts { pub fn new(db: DbConn, cache: Cache) -> Self { Self { db, cache } } pub fn db(&self) -> &DbConn { &self.db } pub fn cache(&self) -> &Cache { &self.cache } }