My Heroku app has a redis-db client. I would like to run a command CLIENT LIST (and a couple of other commands like COMMAND GET ). How could I achieve this? I have tried
CLIENT LIST
COMMAND GET
$redis.eval('CLIENT LIST') $redis.exec('CLIENT LIST')
but not dice. How would I achieve this?
You can use method_missing :
$redis.method_missing("client", "list")
Use method_missing gives a warning of failure.
method_missing
Instead, using stone redis-3.2.1 , you can do:
redis-3.2.1
Resque.redis.client.call(['client','list'])
redis.call(['client', 'list']) though it gives simple, unfiltered output.
redis.call(['client', 'list'])