Macro ntex_redis::array [−][src]
Macro to create a request array, useful for preparing commands to send. Elements can be any type, or a mixture
of types, that satisfy Into<Request>
.
Examples
#[macro_use] extern crate ntex_redis; fn main() { let value = format!("something_{}", 123); array!["SET", "key_name", value]; }
For variable length Redis commands:
#[macro_use] extern crate ntex_redis; fn main() { let data = vec!["data", "from", "somewhere", "else"]; let command = array!["RPUSH", "mykey"].extend(data); }