Back to Dotnet

PACKAGE

src/libraries/System.Runtime.Caching/src/PACKAGE.md

11.0.1002.2 KB
Original Source

About

<!-- A description of the package and where one can find more documentation -->

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

<!-- The key features of this package -->
  • 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 in this library -->

The main types provided by this library are:

  • System.Runtime.Caching.MemoryCache

Additional Documentation

<!-- Links to further documentation -->

MemoryCache.PhysicalMemoryLimit property is only supported on windows.

<!-- The related packages associated with this package -->

Feedback & Contributing

<!-- How to provide feedback on this package and contribute to it -->

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