[][src]Struct redis_async_pool::RedisConnectionManager

pub struct RedisConnectionManager { /* fields omitted */ }

Manages creation and destruction of redis connections.

Implementations

impl RedisConnectionManager[src]

pub fn new(
    client: Client,
    check_on_recycle: bool,
    connection_ttl: Option<Ttl>
) -> Self
[src]

Create a new connection mananager.

If check_on_recycle is true, before each connection reuse, an exists command is issued, if it fails to complete, the connection is dropped and a fresh connection is created.

If connection_ttl is set, the connection will be recreated after the given duration.

Trait Implementations

impl Manager<RedisConnection, RedisError> for RedisConnectionManager[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,