Netmash.Extensions.Caching - AddCacheService

This commit is contained in:
Tudor Stanciu 2023-04-15 22:28:25 +03:00
parent 6e2605e31f
commit ff2c7b7edf

View File

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