Struct tk_redis::Connection
[−]
[src]
pub struct Connection { /* fields omitted */ }
Methods
impl Connection
[src]
fn build(pool: Pool, socket: RedisStream) -> Self
fn exec_cmd(self,
cmd: Cmd)
-> impl Future<Item=(Connection, Value), Error=Error>
cmd: Cmd)
-> impl Future<Item=(Connection, Value), Error=Error>
Execute a single redis command and get its result value
fn exec<T: IntoArgs>(self,
cmd: &str,
args: T)
-> impl Future<Item=(Connection, Value), Error=Error>
cmd: &str,
args: T)
-> impl Future<Item=(Connection, Value), Error=Error>
fn exec_all(self,
cmds: Vec<Cmd>)
-> impl Future<Item=(Connection, Vec<Value>), Error=Error>
cmds: Vec<Cmd>)
-> impl Future<Item=(Connection, Vec<Value>), Error=Error>
Execute a series of redis commands and get back the results all at once