Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Issue when configuring ABP Cache to Use Azure Redis Cache #10152


User avatar
0
razkhan78 created

AspNetZero (Paid) Product version --> 4.0 Product type --> MVC Product framework type --> .net core 2.1

We are trying to implement the redis cach for "Abp" using the following doc. https://docs.abp.io/en/abp/latest/Redis-Cache Note: We are using "Azure Redis Cache".

When we enable the this then we face the slowness. Can you please let us know wha we need to be looking at?

and also is there any we can move only specific data on redis like only abpsettings?


3 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @razkhan78

    First of all, you need to follow https://aspnetboilerplate.com/Pages/Documents/Caching.

    We have improved performance of Redis cache in the recent versions of AspNet Boilerplate. Could you upgrade your ABP NuGet packages ?

    Currently, it is not possible to only store Settings on a different cache by default. But, you can create your own implementation of https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp/Configuration/SettingManager.cs and use Redis cache for _applicationSettingCache, _tenantSettingCache and _userSettingCache.

  • User Avatar
    0
    razkhan78 created

    @ismcagdas Our question is for Abp related data cache not the entity data. Ex: Permissions, settings etc. When we use Redis Cache everything gets slower. and updating ABP packages can be huge change which we can not do right away. so any other suggestion for it?

    and thanks for SettingManager ref, we will look into it.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @razkhan78

    Do you use 4.x version of ABP NuGet packages ? If so, you can upgrade your ABP NuGet packages to latest 4.x version (4.21.0) ?