Open Closed

Using distributed sql server cache instead of redis #5296


User avatar
0
alin.berce created

Hi,

Can Sql server cache be used instead of redis is the database is also on Sql server? Any drawbacks? Any advices on how to implement Sql server caching?

Thank you for your time.


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    It's not related to ABP, you can check the Microsoft document: https://learn.microsoft.com/en-us/aspnet/core/performance/caching/distributed?view=aspnetcore-7.0#distributed-sql-server-cache

  • User Avatar
    0
    alin.berce created

    Thank you for your answer and link.

    I think it's related to abp because when using the template with a public web site, abp uses redis. Would configuring sql server caching for an abp project break abp functionality that relates on redis? The idea is to not use redis at all in the solution.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Would configuring sql server caching for an abp project break abp functionality that relates on redis? The idea is to not use redis at all in the solution.

    No problem, you can safely use SQL Server instead of Redis.

    Abp does not depend on redis, it uses distributed cache, you can use any distributed cache implementation(Redis, SqlServer...etc)

    You can remove the Redis Nuget package from the project.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09