Struct redis_client::redis::RedisClientAsync [] [src]

pub struct RedisClientAsync { /* fields omitted */ }

Methods

impl RedisClientAsync
[src]

A RedisClientAsync is a structure to send command to redis and receive the response asynchronously.

When creating a RedisClientAsync it will automatically create a connection. Therefore when it is created it uses the host and the port.

Example:

let mut client = try!(redis_client::RedisClientAsync::new("127.0.0.1", "6379"));

Execute a redis pipeline command. The callback will be called once the command execution is over and the pump method is called. The return value indicates if the command was successfully launched.

Execute a redis command. The callback will be called once the command execution is over and the pump method is called. The return value indicates if the command was successfully launched.

Pump the result and execute the callbacks with them. If no result are ready this function will return.

Trait Implementations

impl CommandSenderAsync for RedisClientAsync
[src]

impl Debug for RedisClientAsync
[src]

Formats the value using the given formatter.

impl Display for RedisClientAsync
[src]

Formats the value using the given formatter. Read more