Table of Contents

Class SqlCacheServicesExtension

Namespace
Arc4u.Caching.Sql
Assembly
Arc4u.Caching.Sql.dll

Extension methods to register the ICache implementation of the Arc4u.Caching.Sql package.

public static class SqlCacheServicesExtension
Inheritance
SqlCacheServicesExtension
Inherited Members

Methods

AddSqlCacheKind(IServiceCollection)

Registers SqlCache with the kind Sql 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 AddSqlCacheKind(this IServiceCollection services)

Parameters

services IServiceCollection

The service collection.

Returns

IServiceCollection

The same IServiceCollection, for chaining.