StackExchangeRedisOutputCacheServiceCollectionExtensions.AddStackExchangeRedisOutputCache Method

Definition

Adds Redis output caching services to the specified IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddStackExchangeRedisOutputCache(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.OutputCaching.StackExchangeRedis.RedisOutputCacheOptions> setupAction);
static member AddStackExchangeRedisOutputCache : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.OutputCaching.StackExchangeRedis.RedisOutputCacheOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddStackExchangeRedisOutputCache (services As IServiceCollection, setupAction As Action(Of RedisOutputCacheOptions)) As IServiceCollection

Parameters

services
IServiceCollection

The IServiceCollection to add services to.

setupAction
Action<RedisOutputCacheOptions>

An Action<T> to configure the provided RedisOutputCacheOptions.

Returns

The IServiceCollection so that additional calls can be chained.

Applies to