mirror of
https://dev.azure.com/tstanciu94/Packages/_git/Netmash
synced 2025-06-21 19:22:38 +03:00
15 lines
393 B
C#
15 lines
393 B
C#
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>();
|
|
}
|
|
}
|
|
}
|