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

Get information about a cache API- Cache size doesn't work

Hi,

I have populated my cache with at least 2MB data. Now when I run the below the curl command in the management server I am not able to get the cache current size. It is coming as zero.

curl -X GET http://localhost:8080/v1/organizations/my-org/environments/my-env/caches/myAPICache -u username:password

Response

{ "description" : "myAPICache", "diskSizeInMB" : 0, "distributed" : true, "expirySettings" : { "expiryDate" : { "value" : "08-31-2017" }, "valuesNull" : false }, "inMemorySizeInKB" : 0, "maxElementsInMemory" : 0, "maxElementsOnDisk" : 0, "name" : "myAPICache", "overflowToDisk" : false, "persistent" : false }

Am i missing something?

BTW, I am able to retrieve data from the cache.

Thanks,

Krish

1 3 472
3 REPLIES 3
Top Solution Authors