[][src]Trait reool::RedisPool

pub trait RedisPool {
    fn check_out(&self) -> Checkout;
fn check_out_explicit_timeout(&self, timeout: Option<Duration>) -> Checkout; }

A trait that can be used as an interface for a Redis pool.

Required methods

fn check_out(&self) -> Checkout

Checkout a new connection and if the request has to be enqueued use a timeout as defined by the implementor.

fn check_out_explicit_timeout(&self, timeout: Option<Duration>) -> Checkout

Checkout a new connection and if the request has to be enqueued use the given timeout or wait indefinetly.

Loading content...

Implementors

Loading content...