key_ttl
Retrieve the remaining time-to-live (TTL) for a specific key in Redis, helping manage key expiration and optimize database performance.
Instructions
获取键过期时间
Input Schema
Name | Required | Description | Default |
---|---|---|---|
key | Yes | 键名 |
Input Schema (JSON Schema)
{
"properties": {
"key": {
"description": "键名",
"type": "string"
}
},
"required": [
"key"
],
"type": "object"
}