- ABP Framework version: v7.0.3 Microservices
- UI type: Angular
- DB provider: MongoDB
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace:
- Steps to reproduce the issue:"
Is it possible to remove Volo.Abp.Caching.StackExchangeRedis from microservices solution or any alternative implementations?. I have Implemented MondoDb cache for IDistributed cache but it seems like all core module use this package to cache all data.
7 Answer(s)
-
0
hi
This is possible. You can remove all
Volo.Abp.Caching.StackExchangeRedispackages andAbpCachingStackExchangeRedisModulefrom Microservices project.Remove:
using Volo.Abp.Caching.StackExchangeRedis;context.Services.AddSingleton<IDistributedLockProvider>(_ => new RedisDistributedSynchronizationProvider(redis.GetDatabase()));Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
. I have Implemented MondoDb cache for IDistributed cache but it seems like all core module use this package to cache all data.
You can replace this with your implementation
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
It seems like when I disable cache . Its still using local cache for each microservice ? PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:Saas.Editions [13:11:59 DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:Saas.Tenants [13:11:59 DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:Saas.Editions [13:11:59 DBG] PermissionStore.GetCacheItemAsync: pn:R,pk:admin,n:Saas.Tenants [13:11:59 DBG] Found in the cache: pn:R,pk:admin,n:Saas.Tenants [13:11:59 DBG] Found in the cache: pn:R,pk:admin,n:Saas.Editions [13:11:59 DBG] Found in the cache: pn:R,pk:admin,n:Saas.Tenants [13:11:59 DBG] Found in the cache: pn:R,pk:admin,n:Saas.Editions [13:11:59 DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:WpayConnect_Angular,n:Saas.Editions [13:11:59 DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:WpayConnect_Angular,n:Saas.Editions [13:11:59 DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:WpayConnect_Angular,n:Saas.Tenants [13:11:59 DBG] Found in the cache: pn:C,pk:WpayConnect_Angular,n:Saas.Editions [13:11:59 DBG] PermissionStore.GetCacheItemAsync: pn:C,pk:WpayConnect_Angular,n:Saas.Tenants [13:11:59 DBG] Found in the cache: pn:C,pk:WpayConnect_Angular,n:Saas.Editions [13:11:59 DBG] Found in the cache: pn:C,pk:WpayConnect_Angular,n:Saas.Tenants [13:11:59 DBG] Found in the cache: pn:C,pk:WpayConnect_Angular,n:Saas.Tenants
Above logs from dotnet when no Redis or Mongo cache enabled ? Can you please confirm that's the case ?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)