Class MemoryCacheServicesExtension
Extension methods to register the ICache implementation of the Arc4u.Caching.Memory package.
public static class MemoryCacheServicesExtension
- Inheritance
-
MemoryCacheServicesExtension
- Inherited Members
Methods
AddMemoryCacheKind(IServiceCollection)
Registers MemoryCache with the kind Memory as keyed ICache service, 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 AddMemoryCacheKind(this IServiceCollection services)
Parameters
servicesIServiceCollectionThe service collection.
Returns
- IServiceCollection
The same IServiceCollection, for chaining.