I would like to run CLIENT LIST from my redis-db client

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

$redis.eval('CLIENT LIST')
$redis.exec('CLIENT LIST')

      

but not dice. How would I achieve this?

+5


source to share


3 answers


You can use method_missing :



$redis.method_missing("client", "list")

      

+4


source


Use method_missing

gives a warning of failure.

Instead, using stone redis-3.2.1

, you can do:



Resque.redis.client.call(['client','list'])

0


source


redis.call(['client', 'list'])

though it gives simple, unfiltered output.

0


source







All Articles