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>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|