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.

2344 questions
0
votes
1 answer

Restrict call Spring Boot Rest end point till mapping from db will be fullfiled

I have Spring web application, and I need to create cache and put values there from database before I can allow any rest calls. Query to db can be executed 8 minutes and I'm executing them using…
Bohdan Myslyvchuk
  • 1,183
  • 2
  • 10
  • 28
0
votes
1 answer

Ehcache cache the data with support cluster disk storage (replication)

I am using Ehcache technologies in our application and it is working in single server data persist in disk, if we moving to production, we have two different server which is clustered in our application. if first request comes to server A, it will…
karthik elavan
  • 129
  • 1
  • 1
  • 7
0
votes
1 answer

EhCache - servlet caching

I am making caching solution for a method located in a servlet. Servlet looks like following: public class DataOptimizedServlet extends DataServlet { ... @Override @Cacheable(value = "dataOptimized", key = "#req.getRequestURI()") …
michal.jakubeczy
  • 4,457
  • 1
  • 30
  • 43
0
votes
0 answers

what is the alternate way for CacheManager.setName(String name)

when we upgrade ehcache 2.7.2 to 2.10.6 I am getting compile time error at cm.setName(cmName + "." + cm.hashCode()); public HibernateCacheJmxRegister(JmxSupport jmxSupport) throws MalformedObjectNameException { // Register the ehcache with…
Babu
  • 7
  • 2
0
votes
1 answer

Ehcache: unexpected behavior when evicting cache elements

I have two cached methods: @Cacheable(value = CacheName.CACHE_STATIC, key="'getImageUserLayer'.concat(':').concat(#layerId)") public byte[] getImageUserLayer(int layerId) { and @Cacheable(value = CacheName.CACHE_STATIC,…
Lev
  • 897
  • 1
  • 14
  • 36
0
votes
2 answers

infinispan hibernate 2nd level cache - XML Configuration format required

We are currently using ehcache as 2nd level cache with the following configuration in our application.
0
votes
1 answer

junit @SpringBootTest for org.springframework.cache.Cache

I already have spring ehcache in place in a spring-boot application. 1 api is implemented for cache eviction. And I am writing junits for this. Here is the config code of cacheManager in my Configuration.java @Bean public CacheManager…
Kusum
  • 131
  • 12
0
votes
1 answer

Can you iterate over caches managed by `org.ehcache.CacheManager`?

Is it possible to iterate over caches managed by org.ehcache.CacheManager?
Paul Reiners
  • 8,896
  • 30
  • 107
  • 178
0
votes
1 answer

EHCACHE 3.x spring boot no of value in cache

I am trying to use ehcache. @Configuration @EnableCaching public class CacheConfig { @Bean public JCacheCacheManager jCacheCacheManager() throws IOException { return new JCacheCacheManager(cacheManager()); } …
deepak PATRA
  • 51
  • 1
  • 6
0
votes
1 answer

Is there a replacement for `net.sf.ehcache.Statistics`?

Is there a replacement for net.sf.ehcache.Statistics? Something along the lines of org.ehcache.Statistics?
Paul Reiners
  • 8,896
  • 30
  • 107
  • 178
0
votes
1 answer

Problem connecting to Azure service bus using apache qpid-client

I am new to Azure service bus and apache qpid. I am trying to connect Azure service bus using AMPConnectionFactory in Tomcat context.xml as mentioned in…
0
votes
1 answer

Does ehcache 3.8 allow searching by anything other than key

I use Ehcache 3.8 to store elements, they are keyed by their id, but I would also like to be able to search by their name. For Ehcache 2.8 there is documentation about how to do this - https://www.ehcache.org/documentation/2.8/apis/search.html but I…
Paul Taylor
  • 12,050
  • 34
  • 149
  • 295
0
votes
0 answers

Ehcache Mbean not visible in Hawtio GUI

I have configured Ehcache with my Spring Boot project and JPA/Hibernate. I know, that I can try to monitor Ehcache via JMX. Ehcache is definitly working right now. I have also installed Hawtio GUI and can successfully monitor Embedded ActiveMQ but…
alexanoid
  • 19,599
  • 35
  • 160
  • 321
0
votes
1 answer

Java spring boot cache generation in docker container fails

Are there special configurations that have to be considered to run a java spring boot application inside Docker? The application I try to run in a Docker container fails with errors related to cache generation (full error log). Building and running…
Wlad
  • 1,856
  • 1
  • 19
  • 34
0
votes
0 answers

To have 2 ehcache.xml in web and service project

I have a services project and web project. I need to have eh-cache in both projects. Here some time service project work via batch as well. So we need a separate cache in web and service project. At this point, my web project also uses eh-cache for…
Bharathiraja S
  • 591
  • 1
  • 8
  • 19
1 2 3
99
100