fix: cache on multitenancy (#5561)

This commit is contained in:
Kartikeya Hegde
2024-08-09 13:29:53 +05:30
committed by GitHub
parent 920243e1d4
commit 74632aebea
3 changed files with 71 additions and 81 deletions

View File

@ -27,6 +27,12 @@ impl RedisValue {
pub fn into_inner(self) -> FredRedisValue {
self.inner
}
pub fn from_bytes(val: Vec<u8>) -> Self {
Self {
inner: FredRedisValue::Bytes(val.into()),
}
}
pub fn from_string(value: String) -> Self {
Self {
inner: FredRedisValue::String(value.into()),
@ -34,6 +40,12 @@ impl RedisValue {
}
}
impl From<RedisValue> for FredRedisValue {
fn from(v: RedisValue) -> Self {
v.inner
}
}
#[derive(Debug, serde::Deserialize, Clone)]
#[serde(default)]
pub struct RedisSettings {