ehcache Questions
5
I'm trying to setup ehcache in my Spring boot application. I have the following ehcache.xml and configuration file:
<?xml version="1.0" encoding="UTF-8"?>
<config xmlns...
Garate asked 24/7, 2023 at 1:12
8
Solved
I am using 2nd level cache and query cache.
May I know how to programmatically clear all caches ?
8
I am getting an error intermittently when I build my Java project in Intellij.
Internal caches are corrupted or have outdated format, forcing project rebuild: java.io.FileNotFoundException: C:\tar...
Manganite asked 20/10, 2013 at 17:24
6
Solved
I want to have @Cacheable annotation on method with no parameter. In that case, I use @Cacheable as follows
@Cacheable(value="usercache", key = "mykey")
public string sayHello(){
return "test"
}...
Leotaleotard asked 28/10, 2015 at 5:13
4
Solved
I want to clear the cache using JAVA code.
and for this goal I write this code:
public void clearCache(){
CacheManager.getInstance().clearAll();
}
is this code correct?
and is there a way to...
10
Solved
My error is :
Exception in thread "main" java.lang.IllegalArgumentException: Cannot find cache named 'getActionsBycasId' for CacheableOperation[public java.util.List com.codinko.database.DataBaseC...
7
Solved
I'm getting a no CacheManager bean found... But i have not tried to do anything with CacheManager!
Here's my error!
org.springframework.beans.factory.BeanCreationException: Error creating bean wi...
3
I am initializing my cache in the following way:
CacheManager cacheManager;
cacheManager = CacheManagerBuilder.newCacheManagerBuilder().build();
cacheManager.init();
Cache<String, SmsMessageDt...
Disorient asked 26/9, 2016 at 13:9
3
Solved
I have problems with save some values in @Service method.
My code:
@Service(value = "SettingsService")
public class SettingsService {
...
public String getGlobalSettingsValue(Settings setting) {...
Peptone asked 22/8, 2016 at 5:59
4
Solved
I'm working with ehcache 2.5.4.
I have an object that needs to be cached through out the day and refreshed with a new value at 00:00am every day.
Currently with ehcache configurations I can only ...
6
I tried to use EhCache 3.5 caching features in our web application based on Spring Boot 2/Spring Framework 5.
I added EHCache dependency:
<dependency>
<groupId>org.ehcache</group...
Rodl asked 1/3, 2018 at 10:21
15
Solved
Spring cache is not working when calling cached method from another method of the same bean.
Here is an example to explain my problem in clear way.
Configuration:
<cache:annotation-driven cac...
2
Did anyone try to get hibernate-ehcache to work with latest Spring Boot 3 and hibernate 6? Taken from the last updates to the library (6.0.0-alpha7 with last update in 2021) this seems not to be co...
Menell asked 7/3, 2023 at 8:31
2
Solved
I have a similar problem which but sometimes it works. The error described only happens once in a while.
I am using spring 3.2.5 and ehcache 2.6.5.
Exception trace:
org.springframework.expressio...
Subsequent asked 19/6, 2014 at 7:30
2
Solved
There was a config called maxBytesLocalHeap in Ehcache 2.x where we could enter a heap percentage value. I couldn't find an equivalent in 3.x, but there's nothing about deprecation in release notes...
1
Solved
I've looked through a lot of similar questions asked here but I'm still not able to find a solution so here's my issue:
I'm trying to setup Ehcache on springboot.
Spring 2.2.6.RELEASE
Ehcache 3.8.1...
Maryannamaryanne asked 23/6, 2022 at 0:47
4
Solved
I am trying to load some context from an RSS feed and pass it as a cache to the client using ehcache library in spring. here is my code :
import org.springframework.cache.annotation.Cacheable;
@S...
Diplex asked 26/2, 2014 at 17:2
5
Solved
Getting java.net.SocketException when trying to start a multicast provider:
2013-09-11 11:45:44,204 [main] ERROR net.sf.ehcache.distribution.MulticastRMICacheManagerPeerProvider: Error starting he...
Albright asked 11/9, 2013 at 17:0
5
Solved
Before you mark this as duplicate please read the question first. I've read all the stuff about this exception however it does not solve the issue for me. And I do get a slightly different exceptio...
Candlefish asked 22/2, 2013 at 10:7
3
Solved
I am using ehcache with Spring. Noticed the below error recently. Also the XSD file is missing now at http://ehcache-spring-annotations.googlecode.com/svn/schema/ehcache-spring/ehcache-spring-1.1.x...
1
Solved
In my pom i have ehcache 2 dependency
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>${ehcache.version}</version...
Gannie asked 19/4, 2022 at 20:43
2
Solved
In my application I use the hibernate-core-4.1.8 jar and would like to take an ehCache as 2nd level cache.
The jar I am currently using is ehcache-core-2.5.0. I placed it in my WebContetn/WEB-INF/...
3
Solved
I have a service with multiple methods and am attempting to cache them using Spring @Cacheable annotations. Everything works fine except I've found the methods with an array as a method parameter a...
Huonghupeh asked 1/8, 2013 at 17:57
5
Solved
I am using Spring3.1 in standalone Env.
I am caching my entry using @Cachable annotation.
Sometimes I need to iterate on the caching list in order to get specific value(not key).
So I managed to ...
5
Solved
I am working with Spring and EhCache
I have the following method
@Override
@Cacheable(value="products", key="#root.target.PRODUCTS")
public Set<Product> findAll() {
return new LinkedHashSe...
Soulsearching asked 24/7, 2014 at 18:7
1 Next >
© 2022 - 2024 — McMap. All rights reserved.