RedisCacheServiceCollectionExtensions.AddDistributedRedisCache(IServiceCollection, Action<RedisCacheOptions>) 메서드

정의

지정된 IServiceCollection에 Redis 분산 캐싱 서비스를 추가합니다.Adds Redis distributed caching services to the specified IServiceCollection.

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

매개 변수

services
IServiceCollection

서비스를 추가할 IServiceCollection입니다.The IServiceCollection to add services to.

setupAction
Action<RedisCacheOptions>

제공된 RedisCacheOptions를 구성하는 Action<T>입니다.An Action<T> to configure the provided RedisCacheOptions.

반환

추가 호출을 연결할 수 있도록 하는 IServiceCollection입니다.The IServiceCollection so that additional calls can be chained.

적용 대상