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
0 answers

Call to REST API gives Internal Server Error, How to Debug?

I have Spring MVC application, which I have build. The output or artifact is WAR file. The WAR file is deployed successfully in the WildFly. But when I make call to API, it throws the Internal Server Error. Below the changes which I made, Before…
0
votes
1 answer

How to cache entities which do not exist

I am using hibernate 5.3.7 with ehcache 3.7 and I would like to cache entities which do not exist. Example: I try to find an entity by id 10, if it does not exist it should return null/Optional.empty() until the cache is evicted. The reason for this…
Fabian Mendez
  • 512
  • 5
  • 15
0
votes
1 answer

Which type to choose among ehcache embedded, standalone, server with terracotta or without terracotta for my requirement

I have 2/3 Java/spring-boot application running in a system. I want to use common storage so that other java application can also use cache generated by any other Java/spring-boot application. Can I create in memory ehcache with common…
Satish Patro
  • 3,645
  • 2
  • 27
  • 53
0
votes
0 answers

Hibernate + jcache + ehcache integration not woking

In my application I want to enable second level cache by using Hibernate 5.4 and EHCache 3.7 but I am getting this error java.util.ServiceConfigurationError: javax.cache.spi.CachingProvider: Provider org.ehcache.jsr107.EhcacheCachingProvider could…
althor
  • 739
  • 2
  • 9
  • 21
0
votes
1 answer

In EhCache3 should I have a single CacheManager for all caches or one manager per cache

I am using Ehcache 3 I have one cache for storing one type of object, and another cache for a different type. These are in separate classes and each have their own cache manager. But Im now wondering if I have misunderstood the examples and it would…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
0
votes
1 answer

Ehcache - java.io.EOFException for disk persistent cache for removeAll operation

We are using ehcache in our spring boot application. Our spring boot version is 2.0.3.RELEASE and spring-boot-starter-cache 2.0.3.RELEASE uses ehcache 3.5.2. Our motivation to use ehcache was that it is both jsr107 compliant and provides offheap…
simpleusr
  • 354
  • 4
  • 23
0
votes
1 answer

When is the function called when there is a bean of its class?

I want to set up caching in Spring Boot using EhCache 3 and Spring Caching. How do I set up the cache creation? Under what circumstances is the customize() method of JCacheManagerCustomizer called? The cache is for Spring Security ACLs. At the end I…
Daniel
  • 458
  • 5
  • 16
0
votes
1 answer

Write cached data of Ehcache to local file(disk) after server start and on restart data should be picked up from file(disk)

I am creating a cache on server startup(server startup is taking 10 minutes everytime).Currently I am using the in memory caching(of Ehcache).Now I want to build a mechanism so that once the data is cached I should be able to start the server within…
0
votes
1 answer

Make Ehcache return expired data if LoaderWriter fails

Is it possible to set up Ehcache in such a way that cache will return "expired" data if the underlying CacheLoaderWriter fails (throws an Exception)? Accordingly to my tests, if a given cache entry is expired, and CacheLoaderWriter fails to load…
Robson Hermes
  • 425
  • 5
  • 12
0
votes
1 answer

Place ehCache 3 ehcache.xml outside of the Springboot 2 (Spring 5 ) project's jar file

Had spent quite some time figuring out how to externalize ehCache 3 ehcache.xml outside of the jar file of an Spring 5 (Springboot 2.x) project. This is important so that ehcache settings could be tweaked without having to redeploy the project.
Erikson
  • 549
  • 1
  • 6
  • 16
0
votes
1 answer

terracotta open source not working in ecache.xml - terracotta:clustered-shared

I am migrating from ehcache 2 to ehcache 3.5. I am trying to use terracotta open source for sharing the cache with clusters. Below is my java code, final CacheManagerBuilder clusteredCacheManagerBuilder = …
Ram Subramanian
  • 101
  • 1
  • 1
  • 4
0
votes
2 answers

valid ehcache.xml using ehcache3 plugin for grails3

grails version 3.3.1 cache-ehcache:3.0.0.M1 can somebody send me a valid ehcache.xmlplease? My file looks like this:
pebbles
  • 356
  • 1
  • 3
  • 19
0
votes
1 answer

grails ehcache - no configuration found

Grails 3.3.1 ehcache 3.0.0.M1 Since I am not able to create properly running caches programmatically, I try to create it via xml. But I don't know where to put the file. Every time I start the application the log output is like this: 2018-07-02…
pebbles
  • 356
  • 1
  • 3
  • 19
0
votes
1 answer

eh-cache with grails 3

Ehcache isn't working properly in my project. I run grails 3.3.1 "with org.grails.plugins:cache-ehcache:3.0.0.M1" and since i dont know where to put the ehcache.xml file and how the file should look like i tried to configure ehcache…
pebbles
  • 356
  • 1
  • 3
  • 19
0
votes
1 answer

Does ehcache calls LoaderWriter in an efficient way when dealing with concurrent requests?

(Context) I need to build a cache that loads information from database and make it available to the application. This data will not be changed in this application and will be heavily used (retrieved) by lots of threads. Data might be (rarely)…
Robson Hermes
  • 425
  • 5
  • 12