pub struct RedisPool { /* private fields */ }Expand description
Redis connection pool.
Implementations§
Source§impl RedisPool
impl RedisPool
Sourcepub fn new(config: PoolConfig) -> Self
pub fn new(config: PoolConfig) -> Self
Create a new connection pool.
Sourcepub async fn get(&self) -> RedisResult<PooledConnection>
pub async fn get(&self) -> RedisResult<PooledConnection>
Get a connection from the pool.
Auto Trait Implementations§
impl Freeze for RedisPool
impl !RefUnwindSafe for RedisPool
impl Send for RedisPool
impl Sync for RedisPool
impl Unpin for RedisPool
impl !UnwindSafe for RedisPool
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