19 references to Empty
Microsoft.Extensions.Caching.Hybrid (4)
Internal\HybridCachePayload.cs (1)
243TagSet pendingTags = TagSet.Empty;
Internal\TagSet.cs (3)
100return Empty; 109return Empty; 128return Empty;
Microsoft.Extensions.Caching.Hybrid.Tests (15)
BufferReleaseTests.cs (6)
132var arr = ArrayPool<byte>.Shared.Rent(HybridCachePayload.GetMaxBytes(key, TagSet.Empty, writer.CommittedBytes)); 135var bytes = HybridCachePayload.Write(arr, key, cache.CurrentTimestamp(), TimeSpan.FromHours(1), 0, TagSet.Empty, writer.AsSequence()); 201var arr = ArrayPool<byte>.Shared.Rent(HybridCachePayload.GetMaxBytes(key, TagSet.Empty, writer.CommittedBytes)); 204var bytes = HybridCachePayload.Write(arr, key, cache.CurrentTimestamp(), TimeSpan.FromHours(1), 0, TagSet.Empty, writer.AsSequence()); 258var obj = Assert.IsType<ImmutableCacheItem<string>>(CacheItem<string>.Create(12345, TagSet.Empty)); 273var obj = Assert.IsType<MutableCacheItem<Customer>>(CacheItem<Customer>.Create(12345, TagSet.Empty));
PayloadTests.cs (7)
45? TagSet.Empty : TagSet.Create(delimitedTags.Split(',')); 83TagSet tags = TagSet.Empty; 121byte[] framed = new byte[HybridCachePayload.GetMaxBytes(key, TagSet.Empty, payload.Length)]; 123HybridCachePayload.PayloadFlags.None, TagSet.Empty, new(payload), localCacheSize: 1); 162new(frozen), "frozen-key", TagSet.Empty, cache, 346var result = HybridCachePayload.TryParse(new(bytes), "whatever", TagSet.Empty, cache, out var parsed, out _); 593var result = HybridCachePayload.TryParse(new(oversized, 0, actualLength), key, TagSet.Empty, cache, out var parsed, out _);
StampedeTests.cs (1)
77var state = new DefaultHybridCache.StampedeState<string, string>(cache, in key, TagSet.Empty, true);
TagSetTests.cs (1)
13var tags = TagSet.Empty;