Clears all expired keys in a Tair (Redis OSS-compatible) instance.
Operation description
To clear expired keys in the Tair (Redis OSS-compatible) console, see Clear data.
Expired keys cannot be recovered after deletion. Use this operation with caution.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
kvstore:FlushExpireKeys |
delete |
*DBInstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the instance. |
r-bp1zxszhcgatnx**** |
| EffectiveTime |
string |
No |
When to delete the expired keys. Default value: Immediately. Valid values:
Note
To modify the maintenance window of an instance, call the ModifyInstanceMaintainTime operation. |
Immediately |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
82E30AB7-E3A4-46AC-88A0-3E4DCDC5**** |
| InstanceId |
string |
The ID of the instance. |
r-bp1zxszhcgatnx**** |
| TaskId |
string |
The ID of the task. |
21986**** |
Examples
Success response
JSON format
{
"RequestId": "82E30AB7-E3A4-46AC-88A0-3E4DCDC5****",
"InstanceId": "r-bp1zxszhcgatnx****",
"TaskId": "21986****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.