Table of Contents

Class RedisCacheServicesExtension

Namespace
Arc4u.Caching.Redis
Assembly
Arc4u.Caching.Redis.dll

Extension methods to register the ICache implementations of the Arc4u.Caching.Redis package.

public static class RedisCacheServicesExtension
Inheritance
RedisCacheServicesExtension
Inherited Members

Methods

AddRedisCacheKinds(IServiceCollection)

Registers RedisCache and RedisSentinelCache with the kinds Redis and RedisSentinel as keyed ICache services, so that the caches declared with this Kind in the caching configuration section can be resolved by the ICacheContext. Calling it more than once has no effect.

public static IServiceCollection AddRedisCacheKinds(this IServiceCollection services)

Parameters

services IServiceCollection

The service collection.

Returns

IServiceCollection

The same IServiceCollection, for chaining.