You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HybridCache is designed to check the memory cache then update the distributed cache, which isn't quite what I had in mind.
This presents a problem because two separate APIs in the distributed example (simulating multiple instances of an API in a cluster of some sort) have their memory cache with their own local counts and they never read from the distributed cache (Redis) when the memory one exists. This results in the two APIs constantly overwriting one another instead of relying on the Redis value.
It's possible to disable local cache (entirely, or just read, or just write) or to drastically lower its expiration to minimize the issue, but that requires knowing that we're using the IDistributedCache. I haven't found a way to determine that and want to avoid adding a configuration item.
The text was updated successfully, but these errors were encountered:
HybridCache
is designed to check the memory cache then update the distributed cache, which isn't quite what I had in mind.This presents a problem because two separate APIs in the distributed example (simulating multiple instances of an API in a cluster of some sort) have their memory cache with their own local counts and they never read from the distributed cache (Redis) when the memory one exists. This results in the two APIs constantly overwriting one another instead of relying on the Redis value.
It's possible to disable local cache (entirely, or just read, or just write) or to drastically lower its expiration to minimize the issue, but that requires knowing that we're using the
IDistributedCache
. I haven't found a way to determine that and want to avoid adding a configuration item.The text was updated successfully, but these errors were encountered: