Questions tagged [ehcache-3]

For questions specific to Ehcache version 3. For general question about Ehcache, use the [ehcache] tag

Ehcache version 3 is the latest version of Ehcache. For more information about Ehcache, see the main Ehcache wiki.

Site: http://www.ehcache.org/

Github: https://github.com/ehcache/ehcache3

172 questions
13
votes
2 answers

Difference between net.sf.ehcache and org.ehcache?

What is the difference between net.sf.ehcache and org.ehcache? The current version of net.sf.ehcache is 2.10.5 whereas same for org.ehcache is 3.5.2. Spring uses net.sf.ehcache's CacheManager, and org.ehcache's CacheManager isn't compatible for…
H S Raju
  • 380
  • 3
  • 12
10
votes
2 answers

Spring Boot 2.0 Hibernate 5 EhCache 3 with JCache

I'm trying to setup Hibernate with EhCache as the second level cache but the TTL is not working. Here are my dependencies: org.springframework.boot
George
  • 2,820
  • 4
  • 29
  • 56
10
votes
3 answers

EHCache 3.5 Get All Cache Keys / Entries

I'm using EHCache 3.5.2 and having trouble getting all cache keys and cache entries. I am using the CacheManager to create a cache. I'm then populating it with some data. I'd then like to retrieve all entries in the cache. Some sample…
robjwilkins
  • 5,462
  • 5
  • 43
  • 59
8
votes
1 answer

How do I resolve Could not find artifact javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 in central (https://repo1.maven.org/maven2)?

I'm migrating an app to use ehcache 3.10.0 but getting a build error: Could not find artifact javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 in central (https://repo1.maven.org/maven2) I see the file in my local .m2…
Kari
  • 121
  • 1
  • 5
8
votes
2 answers

Configuring caching for Hibernate with Spring Boot 2.1+

Context and question I'm trying to configure EHCache with Hibernate in Spring Boot 2.2, but it seems I'm doing something wrong. I've looked at several tutorials and SO questions but didn't find something that matched fully my approach. I chose the…
Chop
  • 4,267
  • 5
  • 26
  • 58
8
votes
1 answer

Spring Security ACL with EhCache 3

I tried to update to EhCache 3, but noticed that my AclConfig for spring-security-acl no longer works. The reason is EhCacheBasedAclCache still uses import net.sf.ehcache.Ehcache. EhCache moved to org.ehcache since version 3 and thus this no longer…
puelo
  • 5,464
  • 2
  • 34
  • 62
7
votes
2 answers

How to use spring boot 2 and ehcache 3 without xml?

For now I have following config: @Configuration @EnableCaching public class EhcacheConfig { @Bean public CacheManager cacheManager() throws URISyntaxException { return new…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
7
votes
6 answers

Spring Framework 5 and EhCache 3.5

I tried to use EhCache 3.5 caching features in our web application based on Spring Boot 2/Spring Framework 5. I added EHCache dependency: org.ehcache ehcache
Sergiy
  • 1,854
  • 4
  • 22
  • 34
6
votes
0 answers

SpringBoot + JPA enable second level caching for entity not working

I am using Springboot 2.1 and spring data-jpa for persistence using @RepositoryRestResource. I have enabled caching for my API calls and that works well with @Cacheable, But now I want to enable second-level cache for all my JPA entities and have…
Sushil
  • 364
  • 6
  • 22
6
votes
1 answer

Set up both TTL and TTI in Ehcache 3 XML configuration

What I am trying to accomplish is to set up both TTL (time to live) and TTI (time to idle) for a cache, so that the key either expires after TTL time or it can be expired earlier in case in hasn't been accessed for TTI period. In Ehcache 2 it was…
Scadge
  • 9,380
  • 3
  • 30
  • 39
5
votes
2 answers

ALL_CACHE_MANAGERS CacheManager net.sf.ehcache

Is there a replacement for net.sf.ehcache.CacheManager.ALL_CACHE_MANAGERS in org.ehcache ehcache
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
5
votes
1 answer

Configure EhCache 3 to Auto Create Needed Caches With Default Template

I want EhCache to create caches using the default template. Here's my ehcache.xml file:
George
  • 2,820
  • 4
  • 29
  • 56
5
votes
2 answers

How to initialize List<> of object for ehcache?

I need to initialize the Cache which needs to contain String in key List in value So i have CacheHelper class which has public class CacheHelper { private CacheManager cacheManager; private Cache>…
Ashwin Karki
  • 249
  • 4
  • 18
5
votes
2 answers

what is the equivalent xml tag for specifying disk path in ehcache 3.x version

How to specify the disk path when the cache need to be saved in disk in ehcache 3.x version.It can be specified in ehcache 2.x version with ,but i dont find any equivalent xml tag in 3.x version.
5
votes
2 answers

Spring 4.2.4 (not using spring boot) + EhCache 3 + Hibernate 4.2.1

Did anyone implemented EhCache 3 with Spring 4.2 (not using Spring boot). If so what are the steps to implement that? The problem is that spring-context-support (which adds Spring's cache annotations) expects the Ehcache's CacheManager to be on this…
Mohan
  • 699
  • 1
  • 11
  • 27
1
2 3
11 12