Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
- What is your product version? v9.2.0
- What is your product type (Angular or MVC)? Angular
- What is product framework type (.net framework or .net core)? .net core
If issue related with ABP Framework
- What is ABP Framework version? 5.13.0
I use Redis for caching in the application. Is it possible to keep the system running when the redis officer is not accessible? When there is a problem with Redis in the codes I have developed, I read it from the database. Can we use a structure like this in ASp.net zero in the fault tolerance structure?
Thanks.
1 Answer(s)
-
0
Hi,
If you want to use such a fallback mechanism, you need to modify ABP's redis cache implementation which you can find here https://github.com/aspnetboilerplate/aspnetboilerplate/tree/dev/src/Abp.RedisCache/Runtime/Caching/Redis.
You need to make similar implementations for AbpRedisCacheManager.cs and AbpRedisCache.cs. Then, use your implementation of AbpRedisCache.cs in your implementation of AbpRedisCacheManager.cs and finally insead of using UseRedis in your project, create a new extension similar to https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.RedisCache/Runtime/Caching/Redis/RedisCacheConfigurationExtensions.cs and use it.