1 type derived from HybridCache
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
22
internal 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>
50
services.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)
101
throw 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)
89
static async ValueTask ForEachAsync(
HybridCache
@this, IEnumerable<string> keys, CancellationToken token)
114
static 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)
23
cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
RedisTests.cs (1)
67
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
SampleUsage.cs (1)
122
public class SomeHCService(
HybridCache
cache)
ServiceConstructionTests.cs (12)
27
Assert.IsType<DefaultHybridCache>(provider.GetService<
HybridCache
>());
40
var obj = Assert.IsType<DefaultHybridCache>(provider.GetService<
HybridCache
>());
85
var
cache = provider.GetRequiredService<
HybridCache
>();
98
var
cache = provider.GetRequiredService<
HybridCache
>();
111
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
125
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
137
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
159
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
171
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
193
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
StampedeTests.cs (1)
34
cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
Microsoft.Extensions.Caching.MicroBenchmarks (2)
HybridCacheBenchmarks.cs (2)
24
private readonly
HybridCache
_hybrid;
42
_hybrid = provider.GetRequiredService<
HybridCache
>();