mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
fix: cache on multitenancy (#5561)
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user