Trait CacheProvider
Source pub trait CacheProvider {
// Required methods
fn get(
&self,
cache_space: CacheSpace,
key: &str,
app_name: Option<String>,
) -> String;
fn delete(
&self,
cache_space: CacheSpace,
key: &str,
app_name: Option<String>,
);
fn set(
&self,
cache_space: CacheSpace,
key: &str,
value: Value,
app_name: Option<String>,
);
// Provided methods
fn get_key_name(
&self,
cache_space: CacheSpace,
key: &str,
app_name: Option<String>,
) -> String { ... }
fn get_value(
&self,
app_name: Option<String>,
value: Value,
) -> CacheValue<Value> { ... }
}