We are trying to set up cache expiration in Pivotal Cloud Cache, using Gemfire. We have set up our region in PCF:
Cluster-0 gfsh>describe region --name=/CartTest
Type | Name | Value
------ | ----------------------- | ---------
Region | data-policy | PARTITION
| entry-idle-time.timeout | 60
| size | 0
| statistics-enabled | true
| entry-idle-time.action | DESTROY
When we create our Cart
object, it is written to the cache (we can
see it in the size
entry above).
If we access our object from our code, it does not seem to be updating the access time for the entry. For instance:
@11:00:00 - create entry
@11:00:30 - access entry
@11:01:00 - entry is gone
I would have expected the entry to still exist until 11:01:30 (I'm using ridiculously short timeouts just for testing). The idle time almost seems to be acting just like Time-To-Live. When we look at the lastAccessTime
for the region using gfsh
, it is not being updated.
Any idea what I'm doing wrong here?