1 type derived from HybridCache
Microsoft.Extensions.Caching.Hybrid (1)
Internal\DefaultHybridCache.cs (1)
23
internal sealed partial class DefaultHybridCache :
HybridCache
36 references to HybridCache
Microsoft.Extensions.Caching.Abstractions (5)
Hybrid\HybridCache.cs (2)
85
static async ValueTask ForEachAsync(
HybridCache
@this, IEnumerable<string> keys, CancellationToken cancellationToken)
109
static 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>
41
services.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)
23
cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
FunctionalTests.cs (1)
17
cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
RedisTests.cs (1)
50
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
SampleUsage.cs (1)
118
public class SomeHCService(
HybridCache
cache)
ServiceConstructionTests.cs (12)
31
Assert.IsType<DefaultHybridCache>(provider.GetService<
HybridCache
>());
44
var obj = Assert.IsType<DefaultHybridCache>(provider.GetService<
HybridCache
>());
92
var
cache = provider.GetRequiredService<
HybridCache
>();
105
var
cache = provider.GetRequiredService<
HybridCache
>();
118
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
132
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
144
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
167
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
179
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
202
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
SizeTests.cs (2)
21
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
66
var cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());
StampedeTests.cs (1)
28
cache = Assert.IsType<DefaultHybridCache>(provider.GetRequiredService<
HybridCache
>());