4 writes to _refCount
Microsoft.Extensions.Caching.Hybrid (4)
Internal\DefaultHybridCache.CacheItem.cs (4)
41
internal int RefCount => Volatile.Read(ref
_refCount
);
64
int newCount = Interlocked.Decrement(ref
_refCount
);
81
int oldValue = Volatile.Read(ref
_refCount
);
89
var updated = Interlocked.CompareExchange(ref
_refCount
, oldValue + 1, oldValue);