Renaming Commands
Scenarios
General-purpose GeminiDB Redis instances allow you to rename high-risk commands.
Precautions
- To use the command renaming function, you need to update instances with earlier kernel minor versions to the most recent version.
- High-risk commands can be renamed only when your instance is in the Available state.
Procedure
- Log in to the GeminiDB console.
- In the service list, choose Databases > GeminiDB Redis API.
- On the Instances page, locate the target instance and choose
in the Operation column.Figure 1 Command renaming
- Select the required commands and disable them. For involved parameters, see Table 1.
Table 1 Parameter description Parameter
Description
flushall
Clears all buffers.
flushdb
Deletes all keys in the current database.
hgetall
Returns all fields and values in the hash table.
hkeys
Returns all keys in the hash table.
hvals
Returns all values in the hash table.
keys
Finds all keys that match a given pattern.
smembers
Returns all members in a set. Any set without keys is considered empty.
New Name
Name of the command that takes effect currently. The name can include 0 to 30 characters. Command names are case-insensitive and can contain only letters, digits, hyphens (-), and underscores (_). If the name is left blank, the command is disabled. The new name must be unique.
Disabled
The Disabled option is toggled off by default. You can click to toggle on it. If a command is disabled, its new name is empty.
- Modify parameter information and click OK.
Figure 2 Renaming commands
- Check the renaming result.
- You can view new command names on the Rename High-risk Command page.
- After the renaming is complete, original commands become invalid and you need to use new commands to perform operations.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot