<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="11.0.0-rc.3.26522.148" />

Microsoft.Extensions.DependencyInjection.MemoryCacheServiceCollectionExtensions

namespace Microsoft.Extensions.DependencyInjection { public static class MemoryCacheServiceCollectionExtensions { public static IServiceCollection AddMemoryCache(this IServiceCollection services); public static IServiceCollection AddMemoryCache(this IServiceCollection services, Action<MemoryCacheOptions> setupAction); public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services); public static IServiceCollection AddDistributedMemoryCache(this IServiceCollection services, Action<MemoryDistributedCacheOptions> setupAction); } }