This provides a way to run Redis Query. Before adding Redis Query Action, user has to define a Redis Connection. User need to provide following parameters to add Redis Query Action.
User need to provide a Redis Command in Lowercase. Find Redis Commands.
Here the "payload" object and params Array objects available in this code which are directly executed on Redis Connection along with supplied command.
"payload" object is supplied from Action Trigger like Rules, Action Command etc.
//Example 1params.push(payload.key);//Command is hgetall
//Example 2params.push("getname"); //to get name of current connectionparams.push("list"); // to get the list of client connections to the server//Command is client
User need to provide a Connection ID of Redis database connection.
Please note the following points: