Questions tagged [ehcache]

Ehcache is an open source, standards compliant Java-based cache used to boost performance, offload the database and simplify scalability.

Ehcache is robust, proven and full-featured, which has made it the most popular Java-based cache with 100,000’s of production deployments.

It can scale from an in-process cache on one or more nodes through to a mixed in-process/out-of-process configuration capable of terabyte-sized caches. The open source Terracotta Server Array snaps in to provide a coherent distributed cache.

Ehcache is actively developed, maintained and supported as a professional open source project by Terracotta, Inc. and is available under an Apache 2 license.

For more information, see the EHCache website.

2379 questions
0
votes
0 answers

Orbeon Forms PE (Ehcache) replication without multicasting

We want to set up Orbeon Forms PE replication but we cannot use multicasting as proposed in the docs. We have two nodes - 172.13.238.241 and 172.13.238.242 and the problem seems to be with the EhCache part. I open the form, load balancer (haproxy)…
Master Drools
  • 728
  • 6
  • 18
0
votes
0 answers

How to resolve java.lang.ClassNotFoundException: org.hibernate.cache.ehcache.EhCacheRegionFactory

I made a simple java project with hibernate to understand that how hibernate and in hibernate second level cache works but error has occurred java.lang.ClassNotFoundException: org.hibernate.cache.ehcache.EhCacheRegionFactory and i have also…
0
votes
1 answer

caching system with search query option

I am looking for a distributed cache solution that will also support some sort of basic query languages like "get the objects which has object.id > 10" kind of. I did a hands on with terracotta enterprise edition it is perfectly fit but again it is…
Ananth Duari
  • 2,859
  • 11
  • 35
  • 42
0
votes
0 answers

EhCache with HashMap as values returns null on get when using off-heap cache

The following EhCache code, with maps as values and off-heap memory, fails a simple put/get unit test (see below). import org.ehcache.Cache; import org.ehcache.CacheManager; import org.ehcache.config.builders.CacheConfigurationBuilder; import…
0
votes
2 answers

search api for ehcache

I have just checked the Terracotta EHCache and found the open source version has not supporting the search queries on the cache. I just tried with small application but it is clearly throwing exception like it is supporting only on enterprise…
Ananth Duari
  • 2,859
  • 11
  • 35
  • 42
0
votes
1 answer

How to use and config caching in Spring MVC

I want to cache the following getMessagesList method. I want to call one time When user log into the system. Therefor I think caching is the best solution for that. And I need to remove when user log out. How I can do this. public List
Geeth
  • 541
  • 3
  • 12
0
votes
0 answers

0 nanoseconds spent performing 0 L2C hits;

As discussed in my previous post Too many mysql db call issue with spring boot rest service I have followed https://www.baeldung.com/spring-cache-tutorial this tutorial and enabled hibernate second level caching and ehcache. Example: I have one…
Tuhin Subhra Mandal
  • 473
  • 1
  • 5
  • 15
0
votes
1 answer

Hibernate ehcache/jcache custom expiry policy hangs after a few hundred select queries

The getResultList call in the findAll_test method is hanging after many hundreds of requests. public Session openSession() { return this.sessionFactory.openSession(); // org.hibernate.SessionFactory } public R with(Function
Nahydrin
  • 13,197
  • 12
  • 59
  • 101
0
votes
1 answer

Updating database without seriously screwing things up?

I've built apps in the past where in order to test things, I've had to manually issue SQL to the database and then try to read these changes via Hibernate. The problem is that an error is always thrown when I try to do this. I have a theory that…
Naftuli Kay
  • 87,710
  • 93
  • 269
  • 411
0
votes
2 answers

Ehcache 2.4.2 does not write all the values in the element to a file

I'm trying to do a simple test with ehcache - put an element into the cache, flush and shutdown the cache. Then reload all the beans with spring (also initializes cachemanager). Do a cache.get and retrieve previously written values. EhCache…
Romande
  • 561
  • 2
  • 4
  • 16
0
votes
1 answer

Can/Should I disable the cache expiry when backing data store is unavailable?

I'm just started out with Ehcache, and it seems pretty good so far. I'm using it in a simplistic fashion to speed up reads against a database, but I wonder whether I can also use it to let the application stay up if the database is unavailable for…
brabster
  • 42,504
  • 27
  • 146
  • 186
0
votes
1 answer

Spring Boot 2.x Batch application, how to access Micrometer cache metrics for logging?

Using Spring Boot 2.5.7, Micrometer 1.7.6, Ehcache 3.9.7, and have spring-boot-starter-actuator on the classpath. I'm building a batch application (not a web app, no exposed actuator APIs). I have an ehcache.xml configured to enable statistics: …
user944849
  • 14,524
  • 2
  • 61
  • 83
0
votes
1 answer

EhCache PooledBasedBackEnd in heap-dump is way larger than maxBytesLocalHeap

I have an application using EhCache with the following…
Nathan
  • 1,576
  • 8
  • 18
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
1 2 3
99
100