mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
fix(users): use global Redis prefix for all user-related cache operations (#7932)
This commit is contained in:
@ -155,8 +155,10 @@ pub trait GlobalStorageInterface:
|
||||
+ user_role::UserRoleInterface
|
||||
+ user_key_store::UserKeyStoreInterface
|
||||
+ role::RoleInterface
|
||||
+ RedisConnInterface
|
||||
+ 'static
|
||||
{
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)>;
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
@ -217,7 +219,11 @@ impl StorageInterface for Store {
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl GlobalStorageInterface for Store {}
|
||||
impl GlobalStorageInterface for Store {
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl AccountsStorageInterface for Store {}
|
||||
|
||||
@ -233,7 +239,11 @@ impl StorageInterface for MockDb {
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl GlobalStorageInterface for MockDb {}
|
||||
impl GlobalStorageInterface for MockDb {
|
||||
fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)> {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
}
|
||||
|
||||
impl AccountsStorageInterface for MockDb {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user