CoreServiceCollectionExtensions.AddCaching method
namespace: Serenity.Extensions.DependencyInjection assembly: Serenity.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. |