Struct hiredis::Context
[−]
[src]
pub struct Context { // some fields omitted }
A context.
Methods
impl Context
[src]
fn new(host: &str, port: usize) -> Result<Context>
Create a context by establishing connection to a server.
fn command<T: AsBytes>(&mut self, arguments: &[T]) -> Result<Reply>
Issue a command.
fn reconnect(&mut self) -> Result<()>
Reconnect to the server.