Redis.send

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

class Redis
R
send
(
R = Response
T...
)
(
string key
,
)

Examples

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

Meta