area-Extensions-Cachingbughelp wanted
仓库指标
- Star
- (17,886 star)
- PR 合并指标
- (平均合并 12天 11小时) (30 天内合并 661 个 PR)
描述
As noticed by @gfoidl in https://github.com/dotnet/runtime/pull/45962/files#r541573802
It's possible that when the following code responsible for propagating the options to the linked cache entry:
calls the parent.AddExpirationToken method:
is using _expirationTokens which might be used without a lock in the CheckForExpiredTokens method at the same time
Adding a lock to CheckForExpiredTokens would be trivial, but it would hurt the perf...