1 type derived from HybridCache
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
22internal sealed partial class DefaultHybridCache : HybridCache
35 references to HybridCache
Microsoft.Extensions.Caching.Hybrid (17)
HybridCacheBuilderExtensions.cs (1)
10/// Configuration extension methods for <see cref="IHybridCacheBuilder"/> / <see cref="HybridCache"/>.
HybridCacheOptions.cs (3)
7/// Options for configuring the default <see cref="HybridCache"/> implementation. 14/// Default global options to be applied to <see cref="HybridCache"/> operations; if options are 22/// Disallow compression for this <see cref="HybridCache"/> instance.
HybridCacheServiceExtensions.cs (4)
12/// Configuration extension methods for <see cref="HybridCache"/>. 19/// <returns>A builder instance that allows further configuration of the <see cref="HybridCache"/> system.</returns> 35/// <returns>A builder instance that allows further configuration of the <see cref="HybridCache"/> system.</returns> 50services.TryAddSingleton<HybridCache, DefaultHybridCache>();
IHybridCacheBuilder.cs (1)
9/// Helper API for configuring <see cref="HybridCache"/>.
Internal\DefaultHybridCache.cs (2)
20/// The inbuilt ASP.NET implementation of <see cref="HybridCache"/>. 60_logger = services.GetService<ILoggerFactory>()?.CreateLogger(typeof(HybridCache)) ?? NullLogger.Instance;
Internal\DefaultHybridCache.Stampede.cs (1)
101throw new InvalidOperationException($"All calls to {nameof(HybridCache)} with the same key should use the same data type; the same key is being used for '{existingType.FullName}' and '{newType.FullName}' data")
Runtime\HybridCache.cs (2)
89static async ValueTask ForEachAsync(HybridCache @this, IEnumerable<string> keys, CancellationToken token) 114static async ValueTask ForEachAsync(HybridCache @this, IEnumerable<string> keys, CancellationToken token)
Runtime\HybridCacheEntryFlags.cs (1)
9/// Additional flags that apply to a <see cref="HybridCache"/> operation.
Runtime\HybridCacheEntryOptions.cs (1)
10/// Additional options (expiration, etc.) that apply to a <see cref="HybridCache"/> operation. When options
Runtime\IHybridCacheSerializer.cs (1)
9/// Per-type serialization/deserialization support for <see cref="HybridCache"/>.
Microsoft.Extensions.Caching.Hybrid.Tests (16)
BufferReleaseTests.cs (1)
23cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
RedisTests.cs (1)
67var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
SampleUsage.cs (1)
122public class SomeHCService(HybridCache cache)
ServiceConstructionTests.cs (12)
27Assert.IsType<DefaultHybridCache>(provider.GetService<HybridCache>()); 40var obj = Assert.IsType<DefaultHybridCache>(provider.GetService<HybridCache>()); 85var cache = provider.GetRequiredService<HybridCache>(); 98var cache = provider.GetRequiredService<HybridCache>(); 111var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 125var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 137var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 159var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 171var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 193var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
StampedeTests.cs (1)
34cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
Microsoft.Extensions.Caching.MicroBenchmarks (2)
HybridCacheBenchmarks.cs (2)
24private readonly HybridCache _hybrid; 42_hybrid = provider.GetRequiredService<HybridCache>();