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

Spring, Hibernate EhCache with monitoring service

I am using Spring 4.3.7, Hibernate 5.2.9, hibernate-jcache 5.2.10 and ehcache 3.3.1. this is relevant JPA configuration properties: properties.put("hibernate.cache.use_second_level_cache", "true"); …
greengold
  • 1,184
  • 3
  • 18
  • 43
0
votes
1 answer

EHCache+Tomcat+Terracota+Jsr107+Spring+@CacheEvict(allEntries=true) = UnsupportedOperationException: Implement me

I managed to join EhCache with Terracota for distributed clustering (item at https://github.com/ehcache/ehcache3/releases/download/v3.4.0/ehcache-clustered-3.4.0-kit.zip) and make an Spring Configuration Integration like: import java.net.URI; import…
Fibman
  • 126
  • 9
0
votes
1 answer

In Ehcache3 is it possible to access TTL in custom implementation of the Expiry

I'm trying to extend the TTL when the cache is about to expiry and if downstream service(from which i read the objects and load to cahce) is down. I don't want to check if downstream service is down everytime as it will slow down us. So can we…
0
votes
2 answers

How to fetch all the elements in a MemoryStore of an existing cache [EHCache]

I'm new to EHCache. I have implemented EHCache for my application. I have configured all the cache configuration's. I found that in my cache's MemoryStore there are certain number of elements existing in it. I would like to fetch them all for…
0
votes
1 answer

Implementing Custom EhCache

We have a requirement to Cache requests to a max of upto 2 categories per userId-sessionID pair. We are planning to use EhCache for this approach. The project is a spring boot application. @Cacheable(value="products") ProductList getProducts(String…
Shireesha
  • 11
  • 1
  • 3
0
votes
1 answer

How to remove the entire cache, and then pre-populate the cache?

Can someone tell me what is the problem with below implementation. I'm trying to delete the entire cache, secondly, I then want to pre-populate/prime the cache. However, what I've below is only deleting both caches, but not pre-populating/priming…
Simple-Solution
  • 4,209
  • 12
  • 47
  • 66
0
votes
1 answer

anybody deployed terracotta 5 with security

did anyone implemented terracotta 5(5.3.2) cluster with some security. I don't find any documentation regarding this topic. Any help will be appreciated. Thanks
0
votes
1 answer

it is possible to use a system property to specify cluster url in ehcache 3

It is possible to use a system property in ehcache3.xml when configuring the cluster url? like:
0
votes
1 answer

Can I eagerly persist my Ehcache?

From the document, I saw: Ehcache 3 only offers persistence in the case of clean shutdowns (close() was called). If the JVM crashes there is no data integrity guarantee. At restart, Ehcache will detect that the CacheManager wasn’t cleanly…
anuni
  • 889
  • 10
  • 26
0
votes
1 answer

Java EHCache 3 listener and metaspace issue

We faced a metaspace leak problem in our JBoss EAP 7, and this leak occoured after every hot deployment. After some search, I've found…
thermz
  • 2,386
  • 3
  • 20
  • 28
0
votes
2 answers

Persistent caching in a Java web app?

I'm using Ehcache to cache the results of an expensive service call within a web application. I want the cache to persist across JVM restarts. I configured a 2-tier ehcache with heap and disk. Unfortunately Ehcache only saves the cache to disk when…
Alex R
  • 11,364
  • 15
  • 100
  • 180
0
votes
1 answer

Where does the filter for Ehcache 3 simple web page caching call the cache?

I am trying to cache a simple web page in Ehcache. Thanks to some help from another SO post I discovered that I need to implement my own filter based on Ehcache 2 code. When I look at the filter I don't understand it. Where does it ever call the…
Rilcon42
  • 9,584
  • 18
  • 83
  • 167
0
votes
1 answer

Where is the web.xml for Ehcache 3?

I am trying to implement basic webpage caching, but having trouble finding resources with explanations. I keep finding code with no explanations or or explanations (in the docs) with no code. Can anyone provide a simple tutorial? As far as I can…
Rilcon42
  • 9,584
  • 18
  • 83
  • 167
0
votes
1 answer

Ehcache 3.x configure key/value type error

I integrated SpringFramwork with Ehcache 3.x, and got exception when specified the key/value types in ehcache.xml. This is my configuration:
BuggyShow
  • 13
  • 1
  • 5
0
votes
2 answers

How to synchronize action of multiple threads in EhCache?

How to synchronize the action of multiple threads and make sure that only one thread can access the resource at a given point in time in EhCache.
Sibani
  • 63
  • 1
  • 9
1 2 3
11
12