Description: I could't found a appropriate way to execute 'CLIENT SETNAME' command.
Code: client.send_command('CLIENT SETNAME', ['test'], function (err, res) {
console.log(arguments);
});
It will be error:
{ '0':
{ ReplyError: ERR unknown command 'CLIENT SETNAME'
at parseError (D:\Documents\H5\Chatnode_modules\redis-parserlib\parser.js:193:12)
at parseType (D:\Documents\H5\Chatnode_modules\redis-parserlib\parser.js:303:14) command: 'CLIENT SETNAME', args: [ 'test' ], code: 'ERR' },
'1': undefined }
Most helpful comment
Hi @lasting0001 the correct syntax would be
or simply