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

Error while setting Up Ehcahe 3 with spring boot 1.5

I have recently upgraded to spring boot 1.5.7 from 1.4 and found that Ehcache has been upgraded to 3.x from 2.x. The configurations have all changed. Now I am unable to set up the caching config. I tried following the steps on the official blog at…
Nikhil Sahu
  • 2,463
  • 2
  • 32
  • 48
2
votes
0 answers

ehcache leaving hundreds of "open files" crashing tomcat

First of all, I apologize if I use the wrong terminology here, I'm not particularly familiar with the inner workings of caching or Linux file systems. For that matter, I may be misunderstanding the problem and barking up the wrong tree. Currently…
Trebla
  • 1,164
  • 1
  • 13
  • 28
2
votes
2 answers

How does EhCache3 handle eviction when cache is full?

Eviction policies seem to be removed in EhCache3. There is an EvictionAdvisor interface that can be implemented, but what would be the default behaviour? I am using EhCache3 with SpringBoot.
Rando
  • 25
  • 7
2
votes
2 answers

Does ehCache cache have any option of auto refreshing? without any scheduler job?

In this cacheManager does not auto-refreshed when time limit exceed with getTimeToLive() private void setCacheInstance() { cacheManager .createCache("rateDataCached", CacheConfigurationBuilder …
SGG
  • 135
  • 1
  • 3
  • 15
2
votes
2 answers

How to cache null values with Ehcache 3

I need to cache null values with Ehcache 3. For Ehcache 2 I found examples like here: http://www.ehcache.org/documentation/2.8/recipes/cachenull.html // cache an explicit null value: cache.put(new Element("key", null)); Element element =…
timguy
  • 2,063
  • 2
  • 21
  • 40
1
vote
2 answers

Gradle could not find org.ehcache:ehcache:. after upgrading to Spring Boot 3.0.x

I'm currently in the progress of upgrading a Spring Boot Gradle project from 2.7.x to 3.0.x. In this project we've declarated the Ehcache library as a API dependency: api 'org.ehcache:ehcache' After reading the migration guide, I've changed this to…
Maarten1985
  • 123
  • 6
1
vote
2 answers

Ehcache integration in Spring Boot application fails

I try to integrate Ehcache 3 into a Spring Boot 2.7.7 application, but during startup, the application fails with the following error message: org.springframework.beans.factory.BeanCreationException: Error creating bean with name…
Oliver
  • 3,815
  • 8
  • 35
  • 63
1
vote
0 answers

EhCache 3 Configuration not working with simple configuration of springboot

Below is my Simple Config Class package com.mcd.restaurantmanager.product.config; import org.springframework.cache.annotation.EnableCaching; import org.springframework.context.annotation.Configuration; @EnableCaching @Configuration public class…
Yashwanth Potu
  • 346
  • 4
  • 19
1
vote
2 answers

Which Cache Manager/Cache library to use for Spring and EHCache 3?

Integrating EhCache3 cache provider for spring boot app. I need to decide which cache manager to use. Ideally I want to use Springs caching annotations on my caching methods such as @Cacheable instead of the jsr (@CacheResult) but for…
user10869670
  • 106
  • 6
1
vote
1 answer

Ehcache 3 spring boot not working in integration test

I need your help please. I integrated Ehcache 3 with springboot 2. everything works perfectly in production. integration tests also work if i execute them manualy ( I'm using Intellij IDE ). but when i run "mvn install", i get this error…
1
vote
0 answers

HttpComponentsClientHttpRequestFactory spring-web 5.3.12 does not support org.apache.hc.client5.http.classic.HttpClient

Hoping for a solution. Just ran into this and what a snowball. ehCache3 and HttpClient Cache 5.1.1 are compatible. Not so for a any permutation of previous and current versions. Now upgrading to Spring-Boot 2.5.6 i find that…
1
vote
2 answers

EhCache 3.9 -- Get All Cache Entries (working in EhCache 2.10)

The following code to fetch all caches is working in 2.10 (net.sf.ehcache.*) public Map> getCache() { Map> cachedData = new HashMap>(); …
Ali
  • 558
  • 7
  • 28
1
vote
0 answers

Ehcache3 Impact of persistence on performance, Disk Tier to be used anyways

Version: Ehcache 3.8 java.lang.String byte[]
Holy_diver
  • 377
  • 1
  • 15
1
vote
0 answers

EhCache 3 configuration class Unit Testing

I am using EhCache 3 with Spring and I want to do unit tests on this configuration class. @Configuration @EnableCaching public class EhCacheConfiguration { @Bean public JCacheManagerCustomizer cacheManagerCustomizer() { return…
CedricM
  • 11
  • 3
1
vote
0 answers

Ehcache 3.8 Threads stuck in get

Payload size 291KB Put = 500 Keys Get = 40000 (on same 500 keys i.e 80 get for each keys) 50 threads Put is fast But get is dead slow PUT STATS LongSummaryStatistics{count=500, sum=151, min=0, average=0.302000, max=41} GET STATS…
Holy_diver
  • 377
  • 1
  • 15