Netmash.Extensions.Caching - AddCacheService

master
Tudor Stanciu 2023-04-15 22:28:25 +03:00
parent 6e2605e31f
commit ff2c7b7edf
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ namespace Netmash.Extensions.Caching
{ {
public static class CachingExtensions public static class CachingExtensions
{ {
public static void SetCacheProvider(this IServiceCollection services) public static void AddCacheService(this IServiceCollection services)
{ {
services.AddDistributedMemoryCache(); services.AddDistributedMemoryCache();
services.AddScoped<ICacheService, CacheService>(); services.AddScoped<ICacheService, CacheService>();