netmash/Netmash.Extensions.Caching/CachingExtensions.cs

15 lines
401 B
C#
Raw Normal View History

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