tencent cloud

All product documents
TencentDB for Redis®
Disabling Commands
Last updated: 2024-11-05 10:15:53
Disabling Commands
Last updated: 2024-11-05 10:15:53

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?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support