Redis.send

Call Redis using any type T that can be converted to a string

  1. R send(string key, T args)
    class Redis
    R
    send
    (
    R = Response
    T...
    )
    (
    string key
    ,)
  2. R send(string cmd)

Examples

send("SET name Adil")
send("SADD", "myset", 1)
send("SADD", "myset", 1.2)
send("SADD", "myset", true)
send("SADD", "myset", "Batman")
send("SREM", "myset", ["$3", "$4"])
send("SADD", "myset", object) //provided 'object' implements toString()
send("GET", "*") == send("GET *")
send("ZADD", "my_unique_json", 1, json.toString());
send("EVAL", "return redis.call('set','lua','LUA')", 0);

Meta