mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(core): add support for api locking with multiple keys for a single api (#8887)
This commit is contained in:
@ -24,7 +24,11 @@ use std::sync::{atomic, Arc};
|
||||
use common_utils::errors::CustomResult;
|
||||
use error_stack::ResultExt;
|
||||
pub use fred::interfaces::PubsubInterface;
|
||||
use fred::{interfaces::ClientLike, prelude::EventInterface};
|
||||
use fred::{
|
||||
clients::Transaction,
|
||||
interfaces::ClientLike,
|
||||
prelude::{EventInterface, TransactionInterface},
|
||||
};
|
||||
|
||||
pub use self::types::*;
|
||||
|
||||
@ -223,6 +227,10 @@ impl RedisConnectionPool {
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
pub fn get_transaction(&self) -> Transaction {
|
||||
self.pool.next().multi()
|
||||
}
|
||||
}
|
||||
|
||||
pub struct RedisConfig {
|
||||
|
||||
Reference in New Issue
Block a user