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

Java, ehCache and timeToIdleExpiration

I'm using ehCache to store users information. I set it as usersDB = cacheManager.....withExpiry(ExpiryPolicyBuilder. timeToIdleExpiration(Duration.ofDays(1)))); My thought was that if a user won't use the system for 1…
Amos
  • 1,321
  • 2
  • 23
  • 44
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
  • 91
  • 1
  • 1
  • 7
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
  • 13,411
  • 42
  • 184
  • 351
0
votes
3 answers

HazelCast hibernate 2nd level-cache diskStore Configuration

As in ehcache we have diskstore where we could control the location of temp directory and I don’t see the equivalent in hazelcast. Is there a configuration we can add to the xml to control the location to…
ripunj2408813
  • 33
  • 1
  • 9
0
votes
1 answer

How to load ehCache.xml from external location in Spring boot 2 using EhCache3

In EhCache 3.0 how can I load EhCache.xml from external location. I have to start two server with same jar file. I get issue while starting second instance as persistence directory location is locked by first process. I have tried 3 approaches. 1)…
SauriBabu
  • 414
  • 6
  • 15
0
votes
1 answer

How to bootstrap caching in dependency module in Springboot?

I have a module that defines caches as per similar to this blog, which is being brought in as a dependency in another module. However the caching isn't being bootstrapped in the main application. How do I configure springboot app to bootstrap the…
Dark Star1
  • 6,986
  • 16
  • 73
  • 121
0
votes
1 answer

How to put all the Cache names and their data in List<> when cache is created?

I have used Ehcache 3 and I am new to Ehcache 3 and I have a cache Manager given as: private CacheManager cacheManager; Now when the object is created cacheManager is initialized: public ListPlanImpl() { System.out.println("constructore…
0
votes
1 answer

Exception in Ehcache when trying to remove all the caches

I already searched for the solution as other question has also posted java.lang.NullPointerExcpetion.But i am not able to find my problem.I am using Ehcache 3 and I have instantiated a cache which is putting the data into the cache. The class which…
0
votes
1 answer

Ehcache not able to initialize with the Generic class in java

I have used Ehcache 3 and Declared Cache as: private Cache> personCache; For example:I have many List of object to put in Cache which are coming from database: List
Ashwin Karki
  • 249
  • 4
  • 18
0
votes
3 answers

Is it possible to manually cache an entire web page?

I need to cache a web page and then for future requests, check the cache (using url as key) and if found, return the web page from the cache instead of making a request. I'm using Smiley's ProxyServlet and the method where the servlet writes to the…
0
votes
1 answer

Out of memory in embedded Hazelcast vs ehCache 3

I have tried to put in cache some objects. With Hazelcast I have an Out of memory when I put around 30 objects. However, with ehCache 3 I can put 1000 without problems. Am I using properly Hazelcast? HAZELCAST: Config config = new…
Hossain
  • 31
  • 6
0
votes
1 answer

Ehcache and CacheWriter (write-behind) relation

Suppose we have a Cache configured with a write-behind CacheWriter. Let's assume we put some object in the cache and later on the object is removed because of an eviction policy. What's is guaranteed regarding writing? More precisely, is write()…
IsaacLevon
  • 2,260
  • 4
  • 41
  • 83
0
votes
1 answer

Ehcache 3: Are keys that being written get locked?

Suppose we have a cache with a CacheLoaderWriter, so we are registered to the events: write and writeAll. What is the status of these keys at that time? i.e. If another thread tries to cache.get(keyThatBeingWritten), will it be blocked until the…
IsaacLevon
  • 2,260
  • 4
  • 41
  • 83
0
votes
1 answer

how to store key and value in ehcache3 using spring boot

I want to store key and value in ehcache3 using springboot. I want to store key as "passportNumber" and value as "name" similar to a Hashmap in java And later once it is cached, how to retrieve the value from …
vikas
  • 73
  • 1
  • 1
  • 5
0
votes
1 answer

ehcache-clustered not working in OSGi when project is installed several times

Having troubles with clustered ehcache in osgi/aem. Only with first project build/installation it works fine, but with second build/installation it stops working, generate a lot of errors. It looks like terracotta connection, cachemanager or…
mkovacek
  • 310
  • 2
  • 15