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