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 services)
parameter | description |
---|---|
services | The service collection. |