I have tried Hazelcast as cache (using @Cacheable and @CacheEvict) with Spring Boot (using hazelcast-spring artifact in Spring boot 1.5.2.RELEASE) and my application crashed because it ran out of memory. I have two questions:
1) Default behaviour seems to be filling all the cache until there is no more memory and then throw an exception. Am I right? It looks weird to me that there is no default LRU o LFU criteria for caches.
2) How can I configure in hazelcast.xml max size, ttl, etc for ALL maps in my application? (Something like a default config and then extend it for particular maps)
Thanks.