Overview
TencentDB for Redis® supports disabling some commands that may cause service instability or accidentally delete data.
You can configure the disable-command-list
parameter to disable such commands. If this parameter is not displayed in your console, submit a ticket to upgrade the minor kernel version. A momentary disconnection will occur during the version upgrade, and you can reconnect after the upgrade is completed. Directions
Disabling a command
2. Above the instance list on the right, select the region.
3. In the instance list, find the target instance.
4. Click the target instance ID to enter the Instance Details page.
5. On the Instance Details page, select the Parameter Settings tab.
6. On the Parameter Settings tab, click the Modifiable Parameters tab, find disable-command-list
in the parameter list, and configure the list of disabled commands.
Note:
Commands that can be disabled include flushall
, flushdb
, keys
, hgetall
, eval
, evalsha
, and script
, subject to the acceptable values in the actual parameter list.
Command disablement will take effect within two minutes for existing connections without restarting the Redis service.
Enabling a command
On the Modifiable Parameters tab, remove a command from the list of disabled commands in Current Value to enable it.
Parameter modification log
View the parameter modification history on the Modification Log tab.
Was this page helpful?