The following exception is logged when data is put into the cache.
com.google.appengine.api.memcache.stdimpl.GCacheException: Policy prevented put operation
The data which is stored in the cache:
Map<String, List<Dependents>> dependentMap = new HashMap<String,List<Dependents>>();
In the map key will be an ID and for each ID there will be 0 or more objects (max 5 objects).
The map size is:
dependentMap.size() = 1500 approximately
Policy has been set to MemcacheService.SetPolicy.SET_ALWAYS
, which is the default.
It was working fine but problem started when cache was cleared by calling the clear()
method.
What is the reason and how do I solve the problem?