POST Value
新增、覆蓋快取
Request Information
URI Parameters
None.
Body Parameters
PostValueVMName | Description | Type | Additional information |
---|---|---|---|
channel |
頻道名稱 |
string |
None. |
key |
key |
string |
None. |
value |
value |
string |
None. |
seconds |
快取秒數 |
integer |
None. |
cacheType |
快取模式 0:快取秒數到達,立即刪除 1:彈性過期時間,當快取沒使用指定秒數就過期 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "channel": "sample string 1", "key": "sample string 2", "value": "sample string 3", "seconds": 4, "cacheType": 5 }
application/xml, text/xml
Sample:
<PostValueVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YamCache.Controllers"> <cacheType>5</cacheType> <channel>sample string 1</channel> <key>sample string 2</key> <seconds>4</seconds> <value>sample string 3</value> </PostValueVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
None.