Top "Ehcache" questions

Ehcache is an open source, standards compliant Java-based cache used to boost performance, offload the database and simplify scalability.

@Cacheable key on multiple method arguments

From the spring documentation : @Cacheable(value="bookCache", key="isbn") public Book findBook(ISBN isbn, boolean checkWarehouse, boolean includeUsed) How can …

java spring ehcache
Difference between "on-heap" and "off-heap"

Ehcache talks about on-heap and off-heap memory. What is the difference? What JVM args are used to configure them?

java memory heap ehcache
Spring Cache @Cacheable - not working while calling from another method of the same bean

Spring cache is not working when calling cached method from another method of the same bean. Here is an example …

java spring caching ehcache
What are the Maven dependencies to use hibernate, hibernate annotations, and ehcache?

I would like to update my Maven pom.xml with the latest hibernate, hibernate-annotations, and ehcache dependencies. I read the …

hibernate dependencies maven ehcache
Another unnamed CacheManager already exists in the same VM (ehCache 2.5)

This is what happens when I run my junit tests... Another CacheManager with same name 'cacheManager' already exists in the …

spring junit ehcache
How to cache results of a Spring Data JPA query method without using query cache?

I have a Spring Boot app with Spring Data JPA (hibernate backend) repository classes. I've added a couple custom finder …

java hibernate spring-data ehcache spring-boot
Memory leak when redeploying application in Tomcat

When I redeploy my application in tomcat, I get the following issue: The web application [] created a ThreadLocal with key …

java memory-leaks ehcache
How to differentiate between time to live and time to idle in ehcache

The docs on ehache says: timeToIdleSeconds: Sets the time to idle for an element before it expires. i.e. The …

java ehcache
How to clear all Hibernate cache (ehcache) using Spring?

I am using 2nd level cache and query cache. May I know how to programmatically clear all caches ?

java hibernate orm ehcache
Using EhCache in Spring 4 without XML

Is there a way to initialize EhCache without xml in either Spring 4 or with Spring Boot? I noticed Spring Boot 1.0.0.…

java spring ehcache