Using certain Redis commands may result in service instability or mistaken data deletion; therefore, TencentDB for Redis provides the feature to disable such commands.
TencentDB for Redis 2.8 Standard Edition, 4.0 Standard Edition, and 4.0 Cluster Edition support configuring the
disable-command-list parameter to disable such commands. If this parameter is not displayed in your console, please submit a ticket to upgrade the backend version. A short disconnection will occur during the version upgrade, and you can simply reconnect after the upgrade is completed.
- Commands that can be disabled include flushall, flushdb, keys, hgetall, eval, evalsha, and script, which are not disabled by default on new TencentDB for Redis instances purchased after January 1, 2019.
- Command disablement will take effect within two minutes for existing links without restarting the Redis service.
Select Parameter Settings > Modifiable Parameters and remove a disabled command from the list of disabled commands in Current Value to enable the command.
You can view the modification history of a parameter in Parameter Settings > Modification Log.