I am creating a cache using the management API and no matter what I specify, the valuesNull field is always false.
This is the response when I created the cache :
{ "description" : "testcache", "diskSizeInMB" : 0, "distributed" : true, "expirySettings" : { "timeoutInSec" : { "value" : "604800" }, "valuesNull" : false }, "inMemorySizeInKB" : 0, "maxElementsInMemory" : 0, "maxElementsOnDisk" : 0, "name" : "testcache", "overflowToDisk" : false, "persistent" : false }
The cachetest.json file contains the below data:
{ "description" : "testcache", "expirySettings" : { "timeoutInSec" : { "value" : "604800" }, "valuesNull" : true }, "name" : "testcache" }
Initially there was some confusion as to whether the valuesNull field was a boolean or a string (the Management API page shows the value as "false" - with double quotes). I tried sending it as both string and boolean and got the same response.
I also tried to update the Cache using the management api with valuesNull as 'true' and got the same response.