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
4
votes
2 answers

How to implement second-level caching in Spring Boot 3 using Ehcache 3?

I've been trying to find a way to implement second-level caching using Spring Boot 3 + Ehcache 3 + Hibernate 6 but it's been an unsuccessful ride so far. I tried looking it up on the internet but no tutorial exists. Maybe I'm the first one? Edit:…
HyperX Pro
  • 158
  • 2
  • 9
4
votes
2 answers

What is the equivalent configuration for setting size limit by heap percentage (maxBytesLocalHeap) in Ehcache 3.x?

There was a config called maxBytesLocalHeap in Ehcache 2.x where we could enter a heap percentage value. I couldn't find an equivalent in 3.x, but there's nothing about deprecation in release notes or migration guides. Is there a way to specify…
destan
  • 4,301
  • 3
  • 35
  • 62
4
votes
1 answer

Get age of cache entry in Ehcache 3.x

I'm using Ehcache 3.8.0 with my Spring 5.x application for caching long running data aggregation. The aggregated data is displayed in a web frontend. I'm now looking for a way to get the age of an cached element to display it alongside with the…
morten.c
  • 3,414
  • 5
  • 40
  • 45
4
votes
1 answer

Ehcache 3 and Spring Boot Admin statistics

I'm trying to migrate a Spring Boot project currently using Ehcache 2 to latest Ehcache 3.7. Everything seems fine except the missing Spring Boot Admin cache statistics. Here is the previous Ehcache 2 configuration:
4
votes
1 answer

Converting Ehcache CacheManager (v 3.x) to Spring CacheManager without XML configuration

I'm trying to use Ehcache manager in my application. I would like to setup it without xml configuration. I have next dependencies: org.ehcache ehcache
bovae
  • 312
  • 3
  • 12
4
votes
3 answers

Unable to cache using ehcache version 3.4.0 and spring boot 2.0.2.RELEASE

I have tried to implement caching on Spring boot app several ways and this seems to be the right approach but it just logs that CacheStatistics,CacheManager=urn.X-ehcache.jsr107-default-config,Cache=studentCache Registering Ehcache MBean…
Mike3355
  • 11,305
  • 24
  • 96
  • 184
4
votes
1 answer

Ehcache 3 size in memory

In Ehcache 2, it was possible to get the size in memory using calculateInMemorySize() e.g.: CacheManager manager = CacheManager.create(); Cache cache = new Cache( new CacheConfiguration("test", 100) .eternal(true) …
tanderson
  • 1,169
  • 12
  • 29
4
votes
0 answers

How to set up Spring to use ehcache with xml? and how to use JCache API to cache only one object without a key?

I'm trying to setup a Spring-MVC 4.2 xml-configured project to use JCache using xml-configured ehcache 3.5 implementation. How can I use @Cacheable from Spring or @CacheResult from JCache to call a method that doesn't have any parameters and returns…
admdev
  • 448
  • 2
  • 9
4
votes
3 answers

How to configure cache expiry to none and overflowToDisk="false" in ehcache 3.5 version?

In ehcache 2.x version I have following configuration.
Madhuri Haritha
  • 357
  • 1
  • 4
  • 13
4
votes
0 answers

EhCache in distributed mode

We are trying to use EhCache as a distributed cache in our application. EhCache instance are embedded in our server and we used a terracota cluster. All our server (and ehcache) instances successfully connect to this tc. We successfully inserts,…
Thibaud
  • 41
  • 2
4
votes
1 answer

How to store a nested Map structure in Ehcache?

I want to store a Variable of type Map < Integer, Map < String, Map < String, Integer >>> into Ehcache. How to store this nested Map structure in Ehcache as a value?
Sibani
  • 63
  • 1
  • 9
4
votes
3 answers

echache3 XML parsing issue

For some reason, I can't add the expiry element into the ehcache3 configuration xml. without the expiry element, it works fine.
user3277841
  • 339
  • 2
  • 6
  • 17
3
votes
1 answer

Terracotta server stuck at DIAGNOSTIC state

I am trying to run Terracotta server 10.11 from https://www.terracotta.org/downloads/ to connect it with Ehcache in my Spring boot application. But the problem is that when i run Terracotta server instance using the server\bin\start-tc-server.bat it…
3
votes
1 answer

Illegal reflective access warning for Ehcache when heap cache size is configured in MB

I am using Ehcache as the query cache for hibernate, and following is my Ehcache config. org.hibernate.cache.spi.QueryKey java.lang.Object
Lahiru Chandima
  • 22,324
  • 22
  • 103
  • 179
3
votes
0 answers

Ehcache 2 to Ehcache 3 Migration

We are planning to migrate to ehcache3 from ehcache2 to use offheap memory. Few Doubts related to the configurations: diskExpiryThreadIntervalSeconds : Ehcache 2 had a background thread for disk expiry whose timeout can be changed using this…
Holy_diver
  • 377
  • 1
  • 15
1
2
3
11 12