Struct redis_cluster::ClusterCmd
[−]
[src]
pub struct ClusterCmd { /* fields omitted */ }
Redis::Cmd's args
field is private,
but we need it to determine a slot from the command.
So this is a simple wrapper around Redis::Cmd that keeps
track of the args.
Methods
impl ClusterCmd
[src]
fn new() -> ClusterCmd
fn arg<T: ToRedisArgs>(&mut self, arg: T) -> &mut ClusterCmd
Add an arg to the command.
fn query<T: FromRedisValue>(&self, conn: &Connection) -> RedisResult<T>
Execute the command, returning the result.
fn slot(&self) -> Option<u16>
Get the slot for this command.