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 supports configuring the
disable-command-list parameter to disable 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 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 Configuration > Modifiable Parameters and remove a disabled command from the list of disabled commands in the "Current Value" column to enable the command.
View the modification history of a parameter in Parameter Configuration > Modification Log.