Executing REDIS Command in Node.js -
i writing node app. app interacts redis database. that, i'm using node_redis. sometimes, want execute command using line of text. in other words, want pass through without using wrapper functions. instance, may have:
set mykey myvalue
i love able execute without having break apart text , call client.set('mykey', 'myvalue'); there way execute command against redis in node world? if so, how?
thanks!
you should able use client.send_command(command_name, args, callback)
send arbitrary commands redis. args can empty , in case call client.send_command('set mykey myvalue', null, cb)
.
Comments
Post a Comment