2 interfaces inheriting from IOutputCacheStore
Microsoft.AspNetCore.OutputCaching (1)
IOutputCacheBufferStore.cs (1)
12public interface IOutputCacheBufferStore : IOutputCacheStore
Microsoft.AspNetCore.OutputCaching.Tests (1)
TestUtils.cs (1)
405public interface ITestOutputCacheStore : IOutputCacheStore
3 implementations of IOutputCacheStore
Microsoft.AspNetCore.OutputCaching (1)
Memory\MemoryOutputCacheStore.cs (1)
9internal sealed class MemoryOutputCacheStore : IOutputCacheStore
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
235sealed class DummyStore : IOutputCacheStore
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (1)
RedisOutputCacheStore.cs (1)
22internal partial class RedisOutputCacheStore : IOutputCacheStore, IOutputCacheBufferStore, IDisposable
30 references to IOutputCacheStore
Aspire.StackExchange.Redis.OutputCaching.Tests (4)
AspireRedisOutputCacheExtensionsTests.cs (2)
21var cacheStore = host.Services.GetRequiredService<IOutputCacheStore>();
OutputCacheConformanceTests.cs (2)
62var cacheStore = host.Services.GetRequiredService<IOutputCacheStore>();
Aspire.StackExchange.Redis.Tests (4)
AspireRedisExtensionsTests.cs (4)
229var cacheStore = host.Services.GetRequiredService<IOutputCacheStore>(); 360var outputCache = host.Services.GetRequiredService<IOutputCacheStore>();
Microsoft.AspNetCore.OutputCaching (8)
OutputCacheEntryFormatter.cs (3)
14/// Formats <see cref="OutputCacheEntry"/> instance to match structures supported by the <see cref="IOutputCacheStore"/> implementations. 24public static async ValueTask<OutputCacheEntry?> GetAsync(string key, IOutputCacheStore store, CancellationToken cancellationToken) 38public static async ValueTask StoreAsync(string key, OutputCacheEntry value, HashSet<string>? tags, TimeSpan duration, IOutputCacheStore store, ILogger logger, CancellationToken cancellationToken)
OutputCacheMiddleware.cs (4)
25private readonly IOutputCacheStore _store; 36/// <param name="outputCache">The <see cref="IOutputCacheStore"/> store.</param> 42IOutputCacheStore outputCache, 58IOutputCacheStore cache,
OutputCacheServiceCollectionExtensions.cs (1)
31services.TryAddSingleton<IOutputCacheStore>(sp =>
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (4)
EndToEndBenchmarks.cs (4)
24private IOutputCacheStore _store = null!; 241ValueTask IOutputCacheStore.EvictByTagAsync(string tag, CancellationToken cancellationToken) => default; 243ValueTask<byte[]?> IOutputCacheStore.GetAsync(string key, CancellationToken cancellationToken) 252ValueTask IOutputCacheStore.SetAsync(string key, byte[]? value, string[]? tags, TimeSpan validFor, CancellationToken cancellationToken)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (4)
RedisOutputCacheStore.cs (3)
165async ValueTask IOutputCacheStore.EvictByTagAsync(string tag, CancellationToken cancellationToken) 188async ValueTask<byte[]?> IOutputCacheStore.GetAsync(string key, CancellationToken cancellationToken) 237ValueTask IOutputCacheStore.SetAsync(string key, byte[] value, string[]? tags, TimeSpan validFor, CancellationToken cancellationToken)
StackExchangeRedisCacheServiceCollectionExtensions.cs (1)
34services.AddSingleton<AspNetCore.OutputCaching.IOutputCacheStore, RedisOutputCacheStoreImpl>();
Microsoft.AspNetCore.OutputCaching.Tests (5)
TestUtils.cs (5)
191IOutputCacheStore? cache = null, 222internal static OutputCacheContext CreateTestContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null, OutputCacheOptions? options = null, ITestSink? testSink = null) 225serviceProvider.Setup(x => x.GetService(typeof(IOutputCacheStore))).Returns(cache ?? new SimpleTestOutputCache()); 242internal static OutputCacheContext CreateUninitializedContext(HttpContext? httpContext = null, IOutputCacheStore? cache = null, OutputCacheOptions? options = null, ITestSink? testSink = null) 245serviceProvider.Setup(x => x.GetService(typeof(IOutputCacheStore))).Returns(cache ?? new SimpleTestOutputCache());
OutputCachingSample (1)
Startup.cs (1)
36app.MapPost("/purge/{tag}", async (IOutputCacheStore cache, string tag) =>