REST gateway example: Time to live (TTL) expiration

You can set a TTL value for both last update time (*.LUT) and last access time (*.LAT) maps. The default TTL for both types of maps is one hour.

Example

To set a TTL value for both last update time (*.LUT) and last access time (*.LAT) maps, 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://myxc10.ibm.com/resources/datacaches/MyDataGrid/MyMap.LUT/a.key?ttl=600
Parent topic: Developing data grid applications with the REST gateway
Related reference:
REST gateway: URI format
REST gateway: Data format
REST gateway: REST operations
REST gateway example: Inserting and getting data grid map entries
REST gateway example: Clearing data grid map entries
REST gateway example: Creating dynamic maps
REST gateway: Security configuration
REST gateway: HTTP sessions and cookies