1 type derived from HybridCache
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
23internal sealed partial class DefaultHybridCache : HybridCache
36 references to HybridCache
Microsoft.Extensions.Caching.Abstractions (5)
Hybrid\HybridCache.cs (2)
85static async ValueTask ForEachAsync(HybridCache @this, IEnumerable<string> keys, CancellationToken cancellationToken) 109static async ValueTask ForEachAsync(HybridCache @this, IEnumerable<string> keys, CancellationToken cancellationToken)
Hybrid\HybridCacheEntryFlags.cs (1)
9/// Additional flags that apply to a <see cref="HybridCache"/> operation.
Hybrid\HybridCacheEntryOptions.cs (1)
10/// Specifies additional options (for example, expiration) that apply to a <see cref="HybridCache"/> operation. When options
Hybrid\IHybridCacheSerializer.cs (1)
9/// Provides per-type serialization and deserialization support for <see cref="HybridCache"/>.
Microsoft.Extensions.Caching.Hybrid (12)
HybridCacheBuilderExtensions.cs (1)
11/// Configuration extension methods for <see cref="IHybridCacheBuilder"/> / <see cref="HybridCache"/>.
HybridCacheOptions.cs (3)
7/// Options for configuring the default <see cref="HybridCache"/> implementation. 14/// Gets or sets the default global options to be applied to <see cref="HybridCache"/> operations; if options are 22/// Gets or sets a value indicating whether compression for this <see cref="HybridCache"/> instance is disabled.
HybridCacheServiceExtensions.cs (4)
13/// Configuration extension methods for <see cref="HybridCache"/>. 20/// <returns>A builder instance that allows further configuration of the <see cref="HybridCache"/> system.</returns> 32/// <returns>A builder instance that allows further configuration of the <see cref="HybridCache"/> system.</returns> 41services.TryAddSingleton<HybridCache, DefaultHybridCache>();
IHybridCacheBuilder.cs (1)
9/// Helper API for configuring <see cref="HybridCache"/>.
Internal\DefaultHybridCache.cs (2)
21/// The inbuilt implementation of <see cref="HybridCache"/>, as registered via <see cref="HybridCacheServiceExtensions.AddHybridCache(IServiceCollection)"/>. 64_logger = services.GetService<ILoggerFactory>()?.CreateLogger(typeof(HybridCache)) ?? NullLogger.Instance;
Internal\DefaultHybridCache.Stampede.cs (1)
99$"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")
Microsoft.Extensions.Caching.Hybrid.Tests (19)
BufferReleaseTests.cs (1)
23cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
FunctionalTests.cs (1)
17cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
RedisTests.cs (1)
50var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
SampleUsage.cs (1)
118public class SomeHCService(HybridCache cache)
ServiceConstructionTests.cs (12)
31Assert.IsType<DefaultHybridCache>(provider.GetService<HybridCache>()); 44var obj = Assert.IsType<DefaultHybridCache>(provider.GetService<HybridCache>()); 92var cache = provider.GetRequiredService<HybridCache>(); 105var cache = provider.GetRequiredService<HybridCache>(); 118var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 132var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 144var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 167var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 179var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 202var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
SizeTests.cs (2)
21var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>()); 66var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());
StampedeTests.cs (1)
28cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<HybridCache>());