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
1
vote
1 answer

EhCache 3.8.1 BootstrapCacheLoader

I have a problem when using cache across different modules. At first, I was using Ehcache 2.10.6 so in my configuration ehcache.xml file I had something like this:
PanosMR
  • 131
  • 1
  • 14
1
vote
0 answers

Migrating from net.sf.ehcache-1.6.2 to ehcache 3.8.1

I am migrating from com.springsource.net.sf.ehcache-1.6.2.jar to org.ehcache ehcache
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
1
vote
2 answers

Creating a CacheManager from an XMLConfiguration using a StatisticsService

I know how to create a CacheManager using an XMLConfiguration in org.ehcache:ehcache:3.8.1: import org.ehcache.config.Configuration; import org.ehcache.xml.XmlConfiguration; import org.ehcache.config.builders.CacheManagerBuilder; . . . …
Paul Reiners
  • 8,576
  • 33
  • 117
  • 202
1
vote
1 answer

Ehcache3 defaultCache-configuration equivalent

In earlier versions of Ehcache you where able to define a default-cache configuration, which will be applied to caches created programmatically. Since Ehcache3 they changed the configuration xsd quite a lot and there doesn't seem to be an equivalent…
Sepultura
  • 997
  • 1
  • 9
  • 28
1
vote
1 answer

Load data to Ehcache 3 on Spring Boot start up

I would like to load data in cache when my Spring Boot application starts. I know there is an integrated way using BootstrapCacheLoader in Ehcache2. How to load data from database to Ehcache when the application starts But I don't see this in…
Mykeul
  • 498
  • 1
  • 6
  • 20
1
vote
1 answer
1
vote
2 answers

@cacheable not working with spring boot. Using ehcache3

*Ehcache3 not working with spring boot - I tried out with approach given below. Spring boot never caches the value mentioned in the component.It is getting called n - no of times no matter the cache is enable or not. In the logs it shows cache is…
vikas
  • 73
  • 1
  • 1
  • 5
1
vote
0 answers

Dependency for Spring-cache.xsd in spring-MVC application

I am trying to implement caching with the Ehcache and made the following configuration in the mvc-dispatcher-servlet.xml but I am getting "internal server error" when trying to invoke the REST API. xsi:schemaLocation=" …
pratRockss
  • 455
  • 8
  • 25
1
vote
1 answer

ClosedChannelException exception when using Ehcache

I am having a problem with Ehcache. It usually works fine but occasionally I get a ClosedChannelException when try to access the cache, and once that occurs I can only get round the problem by recreating the cache Here is my class package…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
1
vote
1 answer

When adding new entries in cache, the disk store put seems not asynchronous

I have set up an EHcache 3 configuration with OnHeap and Disk. However, it seems that when adding a new entry, the put goes through the disk store (this is normal) but not in a asynchronous way. This dramatically affects my performances on put. Did…
Eric
  • 11
  • 3
1
vote
1 answer

How to switch to TickingTimeSource for ehcache 3?

Below is configuration for ehcache, Assume that we are using ehcache version 3.7
a3.14_Infinity
  • 5,653
  • 7
  • 42
  • 66
1
vote
2 answers

ehcache3 - why cache doesn't expire?

I want to cache a few of my dao queries. And it works, but cache doesn't expire. What I'm doing wrong? My ehcache.xml:
thehespe
  • 97
  • 1
  • 12
1
vote
1 answer

In EhCache3 does a persistent cache mean that data always has to be written to the disk cache

With Ehcache 3 if I have a persistent cache does that mean that everything will be written to the disk cache even if the heap/offheap caches are full or not ? i.e I have this PersistentCacheManager cacheManager =…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
1
vote
1 answer

Configured JCache with Hibernate 5.3.7 throws exception Caused by: java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException

I try to migrate Hibernate 5.3.7.Final to use EhCache 3.5.1, but it throws error about missing class net.sf.ehcache.CacheException. I understand that this library was needed for EhCache 2.x, so I have removed it. Why it still needs this class? My…
Beacze
  • 534
  • 3
  • 8
  • 24
1
vote
1 answer

How to initialize ehCache for list using generics ?

I am trying implement EhCache. As my setup of CacheManger class uses generics thus I want my cache manager instance to be generics also. Initially I tried using array but that came to dead end as there is no generics sol for array types. If anyone…
JBaba
  • 590
  • 10
  • 30