pub struct UserCache {
pub global: Box<[u8]>,
pub user: Box<[u8]>,
pub kv: RedisClient,
}Available on crate feature
user_cache only.Fields§
§global: Box<[u8]>§user: Box<[u8]>§kv: RedisClientImplementations§
Trait Implementations§
source§impl Cache for UserCache
impl Cache for UserCache
async fn _get(&self, suffix: &[u8], keys: &[Box<[u8]>]) -> Result<Vov>
async fn _set(&self, suffix: &[u8], map: Map) -> Result<()>
async fn getset_str<K: IntoIterator<Item = Ref> + Send, Ref: AsRef<[u8]>, F: IntoFuture<Output = Result<Vec<String>>>>( &self, suffix: impl AsRef<[u8]>, keys: K, get: impl Fn(Vec<String>) -> F + Copy ) -> Result<Vec<String>>
async fn getset<K: IntoIterator<Item = Ref> + Send, Ref: AsRef<[u8]>, F: IntoFuture<Output = Result<Vec<Box<[u8]>>>>>( &self, suffix: impl AsRef<[u8]>, keys: K, get: impl Fn(Vec<Box<[u8]>>) -> F ) -> Result<Vv>
Auto Trait Implementations§
impl !RefUnwindSafe for UserCache
impl Send for UserCache
impl Sync for UserCache
impl Unpin for UserCache
impl !UnwindSafe for UserCache
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more