caffeine Questions

4

Solved

How to solve Spring Cloud LoadBalancer is currently working with the default cache. You can switch to using Caffeine cache, by adding it to the classpath. warning in spring boot?
Anastatius asked 10/12, 2020 at 2:24

3

Solved

I'm trying to further my understanding of the caffeine cache. I was wondering if there is a way to specify a timeout for an entry that's populated in the cache, but have no time based expiry for th...
Gavrah asked 11/5, 2020 at 2:31

2

Solved

I am working in a Kotlin and Spring Boot project and I am trying to use Caffeine for caching. I have a service with a suspending function that makes an http call. Here is my config: @Bean open fun ...
Oestrogen asked 15/10, 2020 at 13:26

1

I am using caffeine cache provider with spring annotations, I am not able to see the logs from caffeinecachemanager when the entry’s put in cache or evicted or any activities that happens on cache....
Disenchant asked 9/2, 2018 at 6:56

2

I need to use several caches in my service for different uses. I'm looking for a way to separate their configurations like maximumSize and expireAfterWrite. I'm using Spring and Kubernetes, and in ...
Broccoli asked 31/8, 2020 at 11:56

4

Solved

I'm looking to add several distinct LoadingCache's to a Spring CacheManager, however I don't see how this is possible using CaffeineCacheManager. It appears that only a single loader is possible fo...
Whereto asked 12/6, 2017 at 19:27

1

I am working on a large Spring Boot 2.1.5.RELEASE application, using Caffeine as a cache provider. To prevent I/O bottlenecks, I am using a Caffeine LoadingCache<K,V> in (essentially) the fol...
Hixson asked 21/5, 2019 at 13:14

1

Solved

I'm using Caffeine cache to store data received from an external system. LoadingCache<String, String> clientCache = Caffeine.newBuilder().expireAfterWrite(1, TimeUnit.MINUTES).build(id -&gt...
Borderline asked 20/5, 2020 at 11:43

1

Solved

I have implemented a Caffeine cache as follows: private static Cache<String, MyObject> MyObjectCache = Caffeine.newBuilder() .build(); How can I ensure that the cache has no max size and ...
Contrapuntist asked 18/12, 2019 at 16:47

1

I have implemented caffeine cache in my application. I am caching data from few static tables. But i want to know if i can refresh / clear / reload cache manually or on demand using a REST API or a...
Pronghorn asked 1/3, 2018 at 13:43

1

I'm using Spring Boot caching support in my web application and I set Caffeine as cache provider. I have several caches in my project, most of them have common configuration, but for two specific ...
Danais asked 19/4, 2017 at 16:7

1

Solved

According to these micro benchmarks it turns out that Caffeine is a way faster than Guava cache in both read and write operations. What is the secret of Caffeine implementation? How it differs fro...
Nefertiti asked 3/4, 2019 at 11:51

1

Solved

I know Cache2k having a CacheEntryExpiredListener that is only triggered if a cache entry self-expires (not when being invalidated explicit). Cache<String, Object> cache = Cache2kBuilder.of...
Nestorius asked 7/3, 2019 at 14:17

1

I have a very small table which is not updated frequently. I want to add this to cache such that it updates every day. I am using spring and caffeine to implement this. I able to load a startup b...
Nightjar asked 28/10, 2018 at 10:0

2

Solved

I have a computationally intensive one-off offline processing task that takes me few hours to run and I am using Caffeine as my in-memory cache. What is a good heuristic to set the maximum cache si...
Kaddish asked 15/9, 2016 at 4:26

1

Solved

I'm trying to use Caffeine as LRU cache, so entries that were added first will be evicted first. Ran this code: final Cache<Object, Object> map = Caffeine.newBuilder() .maximumSize(10) .in...
Pagano asked 9/1, 2016 at 14:51
1

© 2022 - 2024 — McMap. All rights reserved.