System.Runtime.Caching (8.0.0)

Published 2026-02-20 21:04:27 +03:30 by kayer

Installation

dotnet nuget add source --name kayer --username your_username --password your_token 
dotnet add package --source kayer --version 8.0.0 System.Runtime.Caching

About this package

Provides classes to use caching facilities.

Commonly Used Types: System.Runtime.Caching.CacheEntryChangeMonitor System.Runtime.Caching.CacheEntryRemovedArguments System.Runtime.Caching.CacheEntryUpdateArguments System.Runtime.Caching.CacheItem System.Runtime.Caching.CacheItemPolicy System.Runtime.Caching.ChangeMonitor System.Runtime.Caching.FileChangeMonitor System.Runtime.Caching.HostFileChangeMonitor System.Runtime.Caching.MemoryCache System.Runtime.Caching.ObjectCache

About

Packaged set of simple caching API's derived from those of the same namespace available in .NET Framework since 4.0. This package is intended for use as a bridge when porting .NET Framework applications to .NET.

Microsoft.Extensions.Caching.Memory/IMemoryCache is recommended over System.Runtime.Caching/MemoryCache because it's better integrated into ASP.NET Core. For example, IMemoryCache works natively with ASP.NET Core dependency injection.

Use System.Runtime.Caching/MemoryCache as a compatibility bridge when porting code from .NET 4.x to .NET Core.

Key Features

  • Use caching facilities like in ASP.NET, but without a dependency on the System.Web assembly.
  • Extensible caching mechanism
  • Possible to create custom caching providers

Main Types

The main types provided by this library are:

  • System.Runtime.Caching.MemoryCache

Additional Documentation

MemoryCache.PhysicalMemoryLimit property is only supported on windows.

Feedback & Contributing

System.Runtime.Caching is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.

Dependencies

ID Version Target Framework
System.Configuration.ConfigurationManager 8.0.0 .NETStandard2.0
System.Configuration.ConfigurationManager 8.0.0 net6.0
System.Configuration.ConfigurationManager 8.0.0 net7.0
System.Configuration.ConfigurationManager 8.0.0 net8.0
Details
NuGet
2026-02-20 21:04:27 +03:30
99
Microsoft
386 KiB
Assets (2)
Versions (2) View all
8.0.0 2026-02-20
6.0.0 2026-02-04