POST Api/Service/ExpireKey
设置Key的过期时间
Request Information
URI Parameters
None.
Body Parameters
SpeedPower.Service.MIRedis.Models.Service.ExpireKey| Name | Description | Type | Additional information |
|---|---|---|---|
| Timeout |
过期时间 |
time interval |
None. |
| Key |
Key值 |
string |
Required |
Request Formats
application/json, text/json
Sample:
{
"Timeout": "00:00:00.1234567",
"Key": "sample string 1"
}
Response Information
Resource Description
设置Key的过期时间
SpeedPower.Service.MIRedis.Models.Helper.ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Succeed |
操作是否成功 |
boolean |
None. |
| Message |
操作消息 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Succeed": true,
"Message": "sample string 2"
}