0

Using Hibernate 5.4.2 and hazelcast-all 4.1 with HazelcastCacheRegionFactory.

Marked as cachable entities are added to cache map successfully but deleted after ~30 sec, even though not removed or updated in DB.

What could be the root cause and/or some default 30 sec. eviction configuration ?

Followed that wiki.

Thanks, Pavel

Pavel
  • 33
  • 1
  • 5
  • Do you add any map config to Hazelcast config which can affect the cache regions - i.e. changing the default config or using map names with wildcards? Otherwise the default map config will end up with non-expiring entries until the max size is hit. – ozcan Feb 15 '21 at 18:14
  • No configuration, running with default Hazelcast configurations, first trying to understand the early eviction issue. – Pavel Feb 22 '21 at 11:19
  • Caused by native update query https://stackoverflow.com/questions/23973872/native-query-and-caching-mechanism-of-hibernate/23974103#23974103 – Pavel Feb 23 '21 at 09:50

0 Answers0