Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to set cache resource expire time in seconds form terminal or postman?

Not applicable

I able to create a Cache resource from terminal or postman using CURL

In expire settings I can only set cache expire for Date 'expireDate' only, but not for Time of Day and Timeout in Seconds. How can I set expire in seconds and day of time.

{ "compression":

{ "minimumSizeInKB": 100 },

"description": "testCache",

"diskSizeInMB": 2000,

"distributed": true,

"expirySettings": {

"expiryDate": { "value": "01-01-2017" },

"valuesNull": false },

"inMemorySizeInKB": 0,

"maxElementsInMemory": 0,

"maxElementsOnDisk": 0,

"name": "testRaja1",

"overflowToDisk": false,

"persistent": true }

and In UI expire date is not showing properly, It showing undefined NaN, 0NaN for this kindly find the screenshot

3126-testcachecreate1.png

And

Kindly explain about below parameters

inMemorySizeInKB, maxElementsInMemory, maxElementsOnDisk

0 2 1,164
2 REPLIES 2