Questions tagged [cachemanager]

CacheManager is a caching abstraction layer for .NET written in C#.

CacheManager is an open source caching abstraction layer for .NET written in C#. It supports various cache providers and implements many advanced features.

The main goal of the CacheManager package is to make developer’s life easier to handle even very complex caching scenarios. With CacheManager it is possible to implement multiple layers of caching, e.g. in-process caching in front of a distributed cache, in just a few lines of code.

CacheManager is not just an interface to unify the programming model for various cache providers, which will make it very easy to change the caching strategy later on in a project. It also offers additional features, like cache synchronization, concurrent updates, serialization, events, performance counters… The developer can opt-in to those features only if needed.

48 questions
0
votes
1 answer

Autowire CacheManger (Caffeine & Ehcache) without using @SpringBootApplication

I have a common caching module which has spring boot starter cache (version 2.2.4.RELEASE) and for caching has dependencies of ehcache & caffeine. Below is the pom file
Aky
  • 1
  • 1
  • 2
0
votes
0 answers

How to cache millions of records in cache of CacheManager when using JdbcPagingItemReader?

I want to take opportunity to ask the question further from: getting data from DB in spring batch and store in memory. In my case, I am loading data from different tables and create the Hierarchy of Data like Person deatils, Customer Address, Bank…
Jeff Cook
  • 7,956
  • 36
  • 115
  • 186
0
votes
1 answer

How can I cache username and login to display in the LoginSuccess class?

I tried to import the kivy cache object, append the key and the object of the username and retrieve it in the LoginSuccess class, but that seems to not append the object when I append in the LoginScreen class. When it's not appended within a class,…
0
votes
0 answers

Different Cache Managers in Different Configurations fail on getbean multiple beans

I have Two CacheManagers defined in different places (by different teams): eg: @Configuration @EnableCaching public ConfigClassOne { @Bean public CacheManager myCacheManager() { return new…
GilMos
  • 1
  • 2
0
votes
1 answer

CompositeCacheManager.getUnconfiguredInstance() API usage

Below is my class looks like . import org.apache.jcs.JCS; import org.apache.jcs.access.exception.CacheException; import org.apache.jcs.engine.control.CompositeCacheManager; private JavaCacheUPKStore(Connection conn) { props.put("jcs.default",…
0
votes
0 answers

CacheManager Redis Backplane not flushing clients

I've recently migrated my code away from a just using a distributed cache to using the CacheManager for 2 layers of caching to increase speed across my applications. I'm using InMemory and Redis as a backplane. All is working good so far as InMemory…
Chris Lomax
  • 137
  • 2
  • 12
0
votes
1 answer

How modify loaded configuration by CacheManager in runtime

I'm using @Victor P solution to manage the cache in my application. The configuration is loaded from the application settings, but we have a policy of not add sensitive information in the code, and on the other hand, the production instance of Redis…
Yasel
  • 2,920
  • 4
  • 40
  • 48
0
votes
1 answer

CacheManager handles with inproc and Redis as backplane is not synced

I have this this scenario using CacheManager (https://github.com/MichaCo/CacheManager): 1 console application (with inproc cache handle + Redis cache handle as backplane) 1 ASP.NET MVC web application (with inproc cache handle + Redis cache handle…
alkesos
  • 335
  • 2
  • 8
0
votes
1 answer

How to set the Redis Server pool size with the CacheManager?

[C#] How to set the Redis Server pool size with the CacheManager ? I got an error with high concurrency: No connection is available to service this operation: HMGET , How to set the connection pool size? No connection is available to service this…
BlueSky
  • 747
  • 6
  • 19
0
votes
1 answer

RoadOverlay in CacheManager OSMDroid

currently im developing an OSMDroid map mainly in offline mode. everything is ok except im trying to cache the route in offline using RoadManager. the route can be displayed in online but for offline it appeared as a straight line, not the lines of…
warabino
  • 21
  • 5
0
votes
0 answers

CacheManager.NET SCRIPT execution does not seem to honor SyncTimeout of StackExchange Redis

Under heavy load on the application server, occasionally we are getting following error while using CacheManager.NET and Redis as backend, Redis Connection Timeout Exception :Timeout performing SCRIPT, inst: 0, mgr: CheckForStaleConnections, err:…
jatanp
  • 3,982
  • 4
  • 40
  • 46
0
votes
1 answer

How to choose Redis databaseId in Azure for CacheManager?

I have a .NET application in Azure that uses Redis as cache through CacheManager. Application uses deployment slots. I want to have different Redis database IDs for different slots. Test/Staging/Prod slots use Redis databaseId 0/1/2. Is it anyhow…
Michael Chudinov
  • 2,620
  • 28
  • 43
0
votes
1 answer

How to Handle Multiple servers trying to clear the redis Database

I have four Severs connected to redis. When the redis server goes down and Comes up. I want to clear the redis database. Issue is that All the servers are firing the clear action. How to handle such that only one servers fires the clear and notifies…
user1844634
  • 1,221
  • 2
  • 17
  • 35
0
votes
1 answer

How to find the redis is up after it went down

Suppose due to network failure redis went down for some time . How will i figure out after it up. Is there any event that i can subscribe in the Client (StackExchange.Redis ) so that it notifies me?
user1844634
  • 1,221
  • 2
  • 17
  • 35
0
votes
0 answers

Error Adding an Cacheitem using CacheManager

I am using CacheManager.Net, I am trying to add a CacheItem to a ICacheManager object, but I get the following exception "Object reference not set to an instance of an object.". Following is some code snippet: public class ReaderController{ private…
MarioV
  • 108
  • 11