Table of Contents

Class MemoryCacheServicesExtension

Namespace
Arc4u.Caching.Memory
Assembly
Arc4u.Caching.Memory.dll

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

services IServiceCollection

The service collection.

Returns

IServiceCollection

The same IServiceCollection, for chaining.