16 references to Empty
Microsoft.Extensions.Caching.Hybrid (5)
Internal\DefaultHybridCache.ImmutableCacheItem.cs (1)
33obj = new(0, TagSet.Empty); // timestamp doesn't matter - not used in L1/L2
Internal\HybridCachePayload.cs (1)
196TagSet pendingTags = TagSet.Empty;
Internal\TagSet.cs (3)
100return Empty; 109return Empty; 128return Empty;
Microsoft.Extensions.Caching.Hybrid.Tests (11)
BufferReleaseTests.cs (6)
132var arr = ArrayPool<byte>.Shared.Rent(HybridCachePayload.GetMaxBytes(key, TagSet.Empty, writer.CommittedBytes)); 133var bytes = HybridCachePayload.Write(arr, key, cache.CurrentTimestamp(), TimeSpan.FromHours(1), 0, TagSet.Empty, writer.AsSequence()); 195var arr = ArrayPool<byte>.Shared.Rent(HybridCachePayload.GetMaxBytes(key, TagSet.Empty, writer.CommittedBytes)); 196var bytes = HybridCachePayload.Write(arr, key, cache.CurrentTimestamp(), TimeSpan.FromHours(1), 0, TagSet.Empty, writer.AsSequence()); 246var obj = Assert.IsType<ImmutableCacheItem<string>>(CacheItem<string>.Create(12345, TagSet.Empty)); 261var obj = Assert.IsType<MutableCacheItem<Customer>>(CacheItem<Customer>.Create(12345, TagSet.Empty));
PayloadTests.cs (3)
45? TagSet.Empty : TagSet.Create(delimitedTags.Split(',')); 213var result = HybridCachePayload.TryParse(new(bytes), "whatever", TagSet.Empty, cache, out var parsed, out _); 361var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, TagSet.Empty, cache, out var parsed, out _);
StampedeTests.cs (1)
76var state = new DefaultHybridCache.StampedeState<string, string>(cache, in key, TagSet.Empty, true);
TagSetTests.cs (1)
13var tags = TagSet.Empty;