15 lines
401 B
C#
15 lines
401 B
C#
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
using Netmash.Extensions.Caching.Services;
|
|||
|
|
|||
|
namespace Netmash.Extensions.Caching
|
|||
|
{
|
|||
|
public static class CachingExtensions
|
|||
|
{
|
|||
|
public static void SetCacheProvider(this IServiceCollection services)
|
|||
|
{
|
|||
|
services.AddDistributedMemoryCache();
|
|||
|
services.AddScoped<ICacheService, CacheService>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|