Class RedisCacheServicesExtension
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
servicesIServiceCollectionThe service collection.
Returns
- IServiceCollection
The same IServiceCollection, for chaining.