2 instantiations of ImmutableCacheItem
Microsoft.Extensions.Caching.Hybrid (2)
Internal\DefaultHybridCache.CacheItem.cs (1)
115
internal static CacheItem<T> Create() => ImmutableTypeCache<T>.IsImmutable ? new
ImmutableCacheItem
<T>() : new MutableCacheItem<T>();
Internal\DefaultHybridCache.ImmutableCacheItem.cs (1)
28
obj =
new
();
8 references to ImmutableCacheItem
Microsoft.Extensions.Caching.Hybrid (8)
Internal\DefaultHybridCache.ImmutableCacheItem.cs (3)
13
private static
ImmutableCacheItem
<T>? _sharedDefault;
23
public static
ImmutableCacheItem
<T> GetReservedShared()
25
ImmutableCacheItem
<T>? obj = Volatile.Read(ref _sharedDefault);
Internal\DefaultHybridCache.StampedeStateT.cs (5)
266
bool skipSerialize = cacheItem is
ImmutableCacheItem
<T> && (Key.Flags & FlagsDisableL1AndL2Write) == FlagsDisableL1AndL2Write;
371
_ = _result.TrySetResult(
ImmutableCacheItem
<T>.GetReservedShared());
384
case
ImmutableCacheItem
<T> immutable:
412
case
ImmutableCacheItem
<T> immutable:
432
case
ImmutableCacheItem
<T> immutable: