pub enum OptimizedPool {
Multiplexed(OptimizedMultiplexedPool),
Pool(Box<LockFreeConnectionPool>),
}Expand description
Unified optimized pool abstraction
Variants§
Multiplexed(OptimizedMultiplexedPool)
Optimized multiplexed connection
Pool(Box<LockFreeConnectionPool>)
Lock-free connection pool
Implementations§
Source§impl OptimizedPool
impl OptimizedPool
Sourcepub async fn new(
config: ConnectionConfig,
host: String,
port: u16,
) -> RedisResult<Self>
pub async fn new( config: ConnectionConfig, host: String, port: u16, ) -> RedisResult<Self>
Create a new optimized pool based on the configuration
Sourcepub async fn execute_command(
&self,
command: String,
args: Vec<RespValue>,
) -> RedisResult<RespValue>
pub async fn execute_command( &self, command: String, args: Vec<RespValue>, ) -> RedisResult<RespValue>
Execute a command through the optimized pool
Auto Trait Implementations§
impl Freeze for OptimizedPool
impl !RefUnwindSafe for OptimizedPool
impl Send for OptimizedPool
impl Sync for OptimizedPool
impl Unpin for OptimizedPool
impl !UnwindSafe for OptimizedPool
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more