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