Description
This doc doesn't provide much details on how these 2 caches work together: https://learn.microsoft.com/en-us/aspnet/core/performance/caching/overview?view=aspnetcore-10.0#features
Here are my questions:
- In the case of different
Expiration and LocalCacheExpiration values, does HybridCache automagically refresh the L1 from L2 behind the scenes?
- Does
HybridCache populate the L1 when the process (re)starts, for example, in the k8s scaling out scenario?
- In case of L1 cache miss, does it check for L2 as other processes may have called
GetOrCreateAsync and loaded the L2?
[Enter feedback here]
Page URL
https://learn.microsoft.com/en-us/aspnet/core/performance/caching/overview?view=aspnetcore-10.0#hybridcache
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/performance/caching/overview.md
Document ID
e084ce18-78e0-0807-a3b1-d70a0c1a2686
Platform Id
ebbbc6a1-6d9e-5991-ffc9-80d924122afd
Article author
@tdykstra
Metadata
- ID: e084ce18-78e0-0807-a3b1-d70a0c1a2686
- PlatformId: ebbbc6a1-6d9e-5991-ffc9-80d924122afd
- Service: aspnet-core
- Sub-service: performance
Related Issues
Description
This doc doesn't provide much details on how these 2 caches work together: https://learn.microsoft.com/en-us/aspnet/core/performance/caching/overview?view=aspnetcore-10.0#features
Here are my questions:
ExpirationandLocalCacheExpirationvalues, doesHybridCacheautomagically refresh the L1 from L2 behind the scenes?HybridCachepopulate the L1 when the process (re)starts, for example, in the k8s scaling out scenario?GetOrCreateAsyncand loaded the L2?[Enter feedback here]
Page URL
https://learn.microsoft.com/en-us/aspnet/core/performance/caching/overview?view=aspnetcore-10.0#hybridcache
Content source URL
https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/performance/caching/overview.md
Document ID
e084ce18-78e0-0807-a3b1-d70a0c1a2686
Platform Id
ebbbc6a1-6d9e-5991-ffc9-80d924122afd
Article author
@tdykstra
Metadata
Related Issues