pub trait Cache {
// Required methods
async fn _get(&self, suffix: &[u8], keys: &[Box<[u8]>]) -> Result<Vov>;
async fn _set(&self, suffix: &[u8], map: Map) -> Result<()>;
// Provided methods
async fn getset_str<K: IntoIterator<Item = Ref> + Send, Ref: AsRef<[u8]>>(
&self,
suffix: impl AsRef<[u8]>,
keys: K,
g: impl GetBinLi
) -> Result<(Vec<String>, VecBin)>
where <K as IntoIterator>::IntoIter: ExactSizeIterator<Item = Ref> { ... }
async fn getset<K: IntoIterator<Item = Ref> + Send, Ref: AsRef<[u8]>>(
&self,
suffix: impl AsRef<[u8]>,
keys: K,
g: impl GetBinLi
) -> Result<(Vv, VecBin)>
where <K as IntoIterator>::IntoIter: ExactSizeIterator<Item = Ref> { ... }
}Required Methods§
async fn _get(&self, suffix: &[u8], keys: &[Box<[u8]>]) -> Result<Vov>
async fn _set(&self, suffix: &[u8], map: Map) -> Result<()>
Provided Methods§
async fn getset_str<K: IntoIterator<Item = Ref> + Send, Ref: AsRef<[u8]>>( &self, suffix: impl AsRef<[u8]>, keys: K, g: impl GetBinLi ) -> Result<(Vec<String>, VecBin)>
async fn getset<K: IntoIterator<Item = Ref> + Send, Ref: AsRef<[u8]>>( &self, suffix: impl AsRef<[u8]>, keys: K, g: impl GetBinLi ) -> Result<(Vv, VecBin)>
Object Safety§
This trait is not object safe.