what is the recommeded caching strategy in Blazor Server App?

biprism 46 Reputation points
2022-05-05T01:18:22.62+00:00

We have quite a good amount of referenced data that we need to use throughout our Blazor Server application. Also the application will be used on all devices - phones, tablets, and laptops.
What would be the best approach to cache those data, if possible.?
Does Blazor provide any caching strategy?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,400 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 56,846 Reputation points
    2022-05-11T15:24:37.673+00:00

    you should remember that blazor server is already memory heavy as it needs to keep state for every connection. You can use the asp.net cache

    https://learn.microsoft.com/en-us/aspnet/core/performance/caching/memory?view=aspnetcore-6.0&viewFallbackFrom=aspnetcore-2.2

    0 comments No comments