chameleonbr / node-red-contrib-redis

Node RED client for Redis with pub/sub, list, lua scripting and other commands support.
MIT License
46 stars 40 forks source link

CONFIG SET #41

Closed dvv closed 4 years ago

dvv commented 4 years ago

Hi!

Wonder how do I issue command: config set notify-keyspace-events KEA?

CONFIG with no topic and ["SET", "notify-keyspace-events", "KEA"] argument gives me: "ReplyError: ERR wrong number of arguments for 'config' command" CONFIG with topic SET and ["notify-keyspace-events", "KEA"] argument gives me: "ReplyError: ERR Unknown subcommand or wrong number of arguments for 'SET'. Try CONFIG HELP." etc.

TIA

chameleonbr commented 4 years ago

Hi @dvv, What version are you using?

chameleonbr commented 4 years ago

I test your problem and module works ok.

[{"id":"67babcbf.92be14","type":"redis-command","z":"55c94707.621bd8","server":"ad989292.e505f","command":"CONFIG","name":"","topic":"","params":"[]","paramsType":"json","payloadType":"json","block":false,"x":380,"y":180,"wires":[["e912afc9.3d3a"]]},{"id":"2db60788.fb1308","type":"inject","z":"55c94707.621bd8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[\"SET\",\"notify-keyspace-events\",\"KEA\"]","payloadType":"json","x":160,"y":180,"wires":[["67babcbf.92be14"]]},{"id":"e912afc9.3d3a","type":"debug","z":"55c94707.621bd8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":590,"y":180,"wires":[]},{"id":"5cce8b.a248e174","type":"redis-command","z":"55c94707.621bd8","server":"ad989292.e505f","command":"CONFIG","name":"","topic":"","params":"[]","paramsType":"json","payloadType":"json","block":false,"x":380,"y":240,"wires":[["2b88d062.984ca"]]},{"id":"eee0ea52.659768","type":"inject","z":"55c94707.621bd8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"SET","payload":"[\"notify-keyspace-events\",\"KEA\"]","payloadType":"json","x":160,"y":240,"wires":[["5cce8b.a248e174"]]},{"id":"2b88d062.984ca","type":"debug","z":"55c94707.621bd8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":590,"y":240,"wires":[]},{"id":"ad989292.e505f","type":"redis-config","z":"","name":"local","options":"{}","cluster":false,"optionsType":"json"}]
dvv commented 4 years ago

Somehow it worked. Thank you!