netmash/NDB.Extensions.Caching/CachingExtensions.cs

15 lines
393 B
C#
Raw Normal View History

2021-04-25 03:50:14 +03:00
using Microsoft.Extensions.DependencyInjection;
using NDB.Extensions.Caching.Services;
namespace NDB.Extensions.Caching
{
public static class CachingExtensions
{
public static void SetCacheProvider(this IServiceCollection services)
{
services.AddDistributedMemoryCache();
services.AddScoped<ICacheService, CacheService>();
}
}
}