[][src]Crate reool

Reool

About

Reool is a REdis connection pOOL based on redis-rs.

Reool is aimed at either connecting to a single primary node or connecting to a replica set using the replicas as read only nodes.

Currently Reool is a fixed size connection pool. Reool provides an interface for instrumentation.

You should also consider multiplexing instead of a pool based upon your needs.

The PooledConnection of reool implements the ConnectionLike interface of redis-rs for easier integration.

For documentation visit crates.io.

License

Reool is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details. License: Apache-2.0/MIT

Modules

config

Configuration for RedisPool including a builder.

connection_factory
instrumentation

Pluggable instrumentation

Structs

Checkout

A Future that represents a checkout.

CheckoutError

An error specifying what went wrong on a failed checkout

Immediately

Simply a shortcut for CheckoutMode::Immediately

Ping

The result of a ping. Can either be a success or a failure.

PoolConnection

A connection that has been taken from the pool.

PoolDefault

Simply a shortcut for CheckoutMode::PoolDefault

PoolState

The current state of the pool

RedisPool

A pool to one or more Redis instances.

Timeout

A timeout which can also be seen as a deadline

Wait

Simply a shortcut for CheckoutMode::Wait

Enums

CheckoutErrorKind
CheckoutMode

Various options on retrieving a connection

ConnectionFlavour
PingState

Indicates whether a ping was a success or a failure

Traits

Commands

A helper trait to easily execute common asynchronous Redis commands on a redis::aio::ConnectionLike

Poolable