StackExchangeRedisCacheServiceCollectionExtensions.AddStackExchangeRedisCache(IServiceCollection, Action<RedisCacheOptions>) メソッド

定義

指定した IServiceCollection に Redis 分散キャッシュ サービスを追加します。Adds Redis distributed caching services to the specified IServiceCollection.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddStackExchangeRedisCache(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Caching::StackExchangeRedis::RedisCacheOptions ^> ^ setupAction);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddStackExchangeRedisCache (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Caching.StackExchangeRedis.RedisCacheOptions> setupAction);
static member AddStackExchangeRedisCache : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Caching.StackExchangeRedis.RedisCacheOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddStackExchangeRedisCache (services As IServiceCollection, setupAction As Action(Of RedisCacheOptions)) As IServiceCollection

パラメーター

services
IServiceCollection

サービスを追加する先の IServiceCollectionThe IServiceCollection to add services to.

setupAction
Action<RedisCacheOptions>

指定した Action<T> を構成する RedisCacheOptionsAn Action<T> to configure the provided RedisCacheOptions.

戻り値

追加の呼び出しをチェーンできるようにする IServiceCollectionThe IServiceCollection so that additional calls can be chained.

適用対象