Questions specific to Ehcache version 2, for general question about Ehcache use Ehcache tag
Questions tagged [ehcache-2]
41 questions
0
votes
2 answers
Spring Cacheable return copy of object
I have a Cached method that return object of some class. My app is multithreading. When one thread get cached object and process it, another thread also can get and modify this object and first thread has a…

Max Valeev
- 75
- 5
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…

Developer KE
- 71
- 1
- 2
- 14
0
votes
1 answer
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
- 679
- 4
- 12
- 26
0
votes
1 answer
Configure Broadleaf with Terracotta
How to configure the broadleaf demo with Terracotta 4.3.6?
EhCache version I am using in broadleaf is 2.10.4.
Broadleaf demo version is 5.2.0-GA.

Jebus
- 51
- 7
0
votes
1 answer
ehcache RMI replication: java.rmi.NoSuchObjectException: no such object in table
I've been looking for a solution online but could not find one to solve the issue I have with an ehcache replication. I'm using the manual rmi replication between 2 servers (server 1 = A.A.A.A and server 2 = B.B.B.B) and I'm getting this…

marcaurele
- 502
- 1
- 6
- 14
0
votes
2 answers
Ehcache not removing an element from cache even after timeToLiveSeconds and/or timeToIdleSeconds
Need a help here.
I am working on a project where I have to delete elements(keys) when it is not used for a certain time. I tried with both timeToLiveSeconds and timeToIdleSeconds as 60 seconds. Also tried with only timeToLiveSeconds=60 and with…

SK.
- 1,390
- 2
- 28
- 59
0
votes
1 answer
ehcache search API - in case of joining two tables
i am trying to new cache configuration with new DB tables. following are sample table structure and sample Data.
TABLE_DEPT:
Dept Id Detp Name Dept Dtls
111 SALES A1
112 MARKET A2
TABLE_EMP:
Emp Id Emp…

pradeep cs
- 513
- 4
- 9
- 34
0
votes
1 answer
How to calculate memory size in Ehcache?
import java.util.ArrayList;
import java.util.List;
import net.sf.ehcache.pool.sizeof.UnsafeSizeOf;
public class EhCacheTest {
private List testList = new ArrayList();
public static void main(String[] args) {
…

Guangheng Xu
- 149
- 1
- 10
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…

Knight
- 57
- 1
- 8
-2
votes
1 answer
ehCache is evicting the entries even though eternal is set to true
. The cache objects values are hibernate entities bear in mind it had stored in level 2 cache as well. When we see the Ehcache statistics , it is always twice the no of objects . We thought we set eternal to true to our cache , but it seems keys…

Chukkani
- 1
- 1