function getRedisCommands(req, res) {
  if (req.app.locals.redisReadOnly) {
    res.json({data: redisCoreCmds.readCmds});
  }
  else {
    res.json({data: [].concat(redisCoreCmds.readCmds, redisCoreCmds.writeCmds)});
  }
}
this method returns a list with a list of active redis commands that can be sent
 via POST /exec route. It is used to initialise client-side CmdParser.
 There is no client side check to filter commands send via exec throu this list.

 @param {express.request} req express request object
 @param {express.response} res express response object