Skip to content

CoreServiceCollectionExtensions.AddCaching method

namespace: Serenity.Extensions.DependencyInjection   assemblySerenity.Net.Core

Adds memory caching as ILocalCache implementation and a distributed cache emulator as IDistributed cache implementation.

public static IServiceCollection AddCaching(this IServiceCollection collection)
parameter description
collection The service collection.

See Also