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
0
votes
1 answer

Caused by: org.ehcache.core.spi.ServiceLocator$DependencyException: Multiple factories for non-plural service

We are getting below error while initializing ehcache: Caused by: org.ehcache.core.spi.ServiceLocator$DependencyException: Multiple factories for non-plural service at…
Hanish Bansal
  • 151
  • 1
  • 2
  • 8
0
votes
0 answers

Caching nulls in Spring Boot with EhCache3

I had configured Spring Boot + Ehcache3 to cache i18n messages pulled from the database and everything was working fine until I expanded and encountered null results from the database for some keys. Ehcache barfed with a ClassCaseException saying…
Jeebus
  • 35
  • 4
0
votes
1 answer

How can I set expiry on Second Level Cache?

Problem I can't set expiry of second level cache with Ehcache. Is there any way to config expiry? My Codes build.gradle implementation 'org.springframework.boot:spring-boot-starter-cache' implementation…
HongJeongHyeon
  • 151
  • 2
  • 9
0
votes
1 answer

Dynamic configuration in Ehcache v3+

I want to use Ehcache dynamic configuration in version 3. As seen in the doc here https://www.ehcache.org/documentation/2.8/configuration/configuration.html#ehcache.xsd since Ehcache 2.0, certain cache configuration parameters can be modified…
0
votes
1 answer

Persistent storage with SimpleCacheManager

I got an issue where the method on my service has annotation that looks like the following: @Cacheable(value = "myCache", key = "'myCache' + #listType", unless = "#result.getMyList().size() == 0") On my EhCacheConfig I have that looks like the…
Paloma Schkrab
  • 301
  • 1
  • 4
  • 13
0
votes
1 answer

Jhipster EHCache3.x how could definded the disk persistence where in cachaManager

I was use the jhipster-generator 6.10.5 to generate a proj, use the ehcache as the cacheProvider. package com.xxx.generated.config; import java.time.Duration; import org.ehcache.config.builders.*; import org.ehcache.config.units.MemoryUnit; import…
Damien.J
  • 25
  • 4
0
votes
0 answers

Why would Spring Boot/EhCache NOT use the specified configuration file?

I'm trying to enable EhCache 3 caching inside a Spring Boot 2 application and as near as I can tell I've set this up correctly but caching is just...NOT working and I'm being given no information as to why. I've added to my maven POM:
Sloloem
  • 1,587
  • 2
  • 15
  • 37
0
votes
1 answer

How to schedule a task to call method that will subsequently call a JSON API

I am working on an application where I need to store a bunch of products' info from a corresponding JSON API call into a cache (eh-cache 3). The way it works is, http requests will come and trying to get the product's info. Internally a method will…
Slug
  • 67
  • 3
0
votes
1 answer

Ehcache + Terracotta: ConnectionClosedException

I'm setting up Terracotta cluster to support Ehcache. I'm following the basic example here I downloaded ehcache-clustered-kit version 3.8.0 from Maven Central and untarred it on my machine. I didn't modifiy anything, except for a fix to the sh…
Stefano Cazzola
  • 1,597
  • 1
  • 20
  • 36
0
votes
1 answer

Autowire CacheManger (Caffeine & Ehcache) without using @SpringBootApplication

I have a common caching module which has spring boot starter cache (version 2.2.4.RELEASE) and for caching has dependencies of ehcache & caffeine. Below is the pom file
Aky
  • 1
  • 1
  • 2
0
votes
1 answer

Can I Store my ehcache3.xml file in an external file

In ehcache2, I stored my properties externally and read them using a input stream which was an available option for configuring this, but the same option isn't present in ehcache3. ehcache2 code which works:…
Soccergods
  • 440
  • 5
  • 17
0
votes
2 answers

Spring Boot Property Launcher + EhCache Failed to read schema document

I am working on a Spring Boot(2.3.0.RELEASE) project where there is a need to use a external loader to load few proprietary libraries. Hence we are using Spring's Property Launcher as follows, org.springframework.boot
Srini
  • 420
  • 1
  • 5
  • 17
0
votes
1 answer

EhCache3 and Spring boot not keeping value on memory

I'm using springboot and echCache3 in order to keep in memory some parameters. I have configured in this way : echcache.xml
Antonio Diaz
  • 133
  • 1
  • 1
  • 14
0
votes
1 answer

How to implement clustered cache using terracotta server?

Can someone tell me how to implement Clustered Cache Sharing between two micro-services using terracota server any reference projects would be great to start with eh-cache.xml ehcache xml :
0
votes
1 answer

Spring Boot and EhCache 3 not working on Service layer

I am implementing Ehcache with a simple use case and I'm unable to make it work on @Service layer. I'm not sure whats wrong. This is my Service class: @Service public class AccountsServiceImpl implements AccountsService { private final…
Atreyu
  • 1
  • 1
  • 1