System.Runtime.Caching
10.0.7
50 download(s)
public
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
PackageReference
<PackageReference Include="System.Runtime.Caching" Version="10.0.7" />
.NET CLI
dotnet add package System.Runtime.Caching --version 10.0.7
Dependencies
net10.0
| Package | Version range |
|---|---|
| System.Configuration.ConfigurationManager | [10.0.7, ) |
net8.0
| Package | Version range |
|---|---|
| System.Configuration.ConfigurationManager | [10.0.7, ) |
net9.0
| Package | Version range |
|---|---|
| System.Configuration.ConfigurationManager | [10.0.7, ) |
netstandard2.0
| Package | Version range |
|---|---|
| System.Configuration.ConfigurationManager | [10.0.7, ) |
Readme
## 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](https://www.nuget.org/packages/Microsoft.Extensions.Caching.Memory/)/[IMemoryCache](https://learn.microsoft.com/aspnet/core/performance/caching/memory?view=aspnetcore-7.0) 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](https://learn.microsoft.com/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-7.0). **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](https://learn.microsoft.com/dotnet/api/system.runtime.caching.memorycache.physicalmemorylimit?view=dotnet-plat-ext-7.0) property is only supported on windows. * [Caching in .NET](https://learn.microsoft.com/dotnet/core/extensions/caching) * [Cache in-memory in ASP.NET Core](https://learn.microsoft.com/aspnet/core/performance/caching/memory?view=aspnetcore-7.0 ) ## Related Packages <!-- The related packages associated with this package --> * [Microsoft.Extensions.Caching.Memory](https://www.nuget.org/packages/Microsoft.Extensions.Caching.Memory/) ## 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](https://licenses.nuget.org/MIT). Bug reports and contributions are welcome at [the GitHub repository](https://github.com/dotnet/runtime).
Versions
Target frameworks
net10.0
net8.0
net9.0
netstandard2.0
Metadata
- Published
- Size
- 381.92 KB
- Authors
- Microsoft
- License
- MIT
- Project
- https://dot.net/
- Repository
- https://github.com/dotnet/dotnet commit b16286c2284fecf303dbc12a0bb152476d662e44
- Flags
- SemVer 1
- SHA512
- oRUZ7A8INsGNGT6dH6tQ9Ck9Pg+4YUYRqOcgF+Xdyi8XeGaS+78KesJrS9TgvCFKEP11G40lm6AB5gw8UYXPWg==
Release notes
https://go.microsoft.com/fwlink/?LinkID=799421