1 write to _tokens
Microsoft.Extensions.Caching.Memory (1)
CacheEntry.cs (1)
320
return Interlocked.CompareExchange(ref
_tokens
, result, null) ?? result;
16 references to _tokens
Microsoft.Extensions.Caching.Memory (16)
CacheEntry.CacheEntryTokens.cs (2)
116
Debug.Assert(entry.
_tokens
!= null);
117
List<PostEvictionCallbackRegistration>? callbackRegistrations = Interlocked.Exchange(ref entry.
_tokens
._postEvictionCallbacks, null);
CacheEntry.cs (14)
142
[MemberNotNull(nameof(
_tokens
))]
148
[MemberNotNull(nameof(
_tokens
))]
226
_tokens
?.PropagateTokens(parent);
237
|| (
_tokens
!= null &&
_tokens
.CheckForExpiredTokens(this));
246
_tokens
?.DetachTokens();
278
internal void AttachTokens() =>
_tokens
?.AttachTokens(this);
291
internal void InvokeEvictionCallbacks() =>
_tokens
?.InvokeEvictionCallbacks(this);
295
if ((
_tokens
== null || !
_tokens
.CanPropagateTokens()) && _absoluteExpirationTicks < 0 || _current.Value is not CacheEntry parent)
308
_tokens
?.PropagateTokens(parent);
311
[MemberNotNull(nameof(
_tokens
))]
314
if (
_tokens
!= null)
316
return
_tokens
;