REST gateway example: Time to live (TTL) expiration

You can set a TTL expiration on keys in WebSphere® eXtreme Scale.

Example

To set a TTL value, provide the TTL request parameter with a value in seconds. For example, to set a TTL value of 600 seconds on the a.key key , specify the ttl request parameter when the value is inserted or updated into the data grid using the HTTP POST method:
http://mydatagrid.ibm.com/resources/datacaches/MyDataGrid/MyMap.LUT/a.key?ttl=600