RCommon.Persistence.Caching.MemoryCache
2.3.2-alpha.0.2
This is a prerelease version of RCommon.Persistence.Caching.MemoryCache.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package RCommon.Persistence.Caching.MemoryCache --version 2.3.2-alpha.0.2
NuGet\Install-Package RCommon.Persistence.Caching.MemoryCache -Version 2.3.2-alpha.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RCommon.Persistence.Caching.MemoryCache" Version="2.3.2-alpha.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RCommon.Persistence.Caching.MemoryCache" Version="2.3.2-alpha.0.2" />
<PackageReference Include="RCommon.Persistence.Caching.MemoryCache" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RCommon.Persistence.Caching.MemoryCache --version 2.3.2-alpha.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: RCommon.Persistence.Caching.MemoryCache, 2.3.2-alpha.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RCommon.Persistence.Caching.MemoryCache@2.3.2-alpha.0.2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RCommon.Persistence.Caching.MemoryCache&version=2.3.2-alpha.0.2&prerelease
#tool nuget:?package=RCommon.Persistence.Caching.MemoryCache&version=2.3.2-alpha.0.2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
RCommon.Persistence.Caching.MemoryCache
Wires memory-based caching into RCommon's persistence caching decorators, providing AddInMemoryPersistenceCaching() and AddDistributedMemoryPersistenceCaching() extension methods that register the appropriate ICacheService implementation and all caching repository decorators.
Features
AddInMemoryPersistenceCaching()-- registersInMemoryCacheService(backed byIMemoryCache) as the cache provider for persistence caching decoratorsAddDistributedMemoryPersistenceCaching()-- registersDistributedMemoryCacheService(backed byIDistributedCachein-memory store) as the cache provider- Automatically registers all open-generic caching repository decorators (
CachingGraphRepository<>,CachingLinqRepository<>,CachingSqlMapperRepository<>) - Configures
CachingOptionswith caching enabled by default - Strategy-based factory resolves the correct
ICacheServiceviaPersistenceCachingStrategy
Installation
dotnet add package RCommon.Persistence.Caching.MemoryCache
Usage
using RCommon;
using RCommon.Persistence.Caching.MemoryCache;
services.AddRCommon(builder =>
{
builder.WithPersistence<EfCorePeristenceBuilder>(persistence =>
{
// Option 1: In-process IMemoryCache for persistence caching
persistence.AddInMemoryPersistenceCaching();
// Option 2: Distributed memory cache for persistence caching
persistence.AddDistributedMemoryPersistenceCaching();
});
});
Key Types
| Type | Description |
|---|---|
IPersistenceBuilderExtensions |
Provides AddInMemoryPersistenceCaching() and AddDistributedMemoryPersistenceCaching() on IPersistenceBuilder |
Documentation
For full documentation, visit rcommon.com.
Related Packages
- RCommon.Persistence.Caching - Core persistence caching decorators and abstractions
- RCommon.MemoryCache - Underlying
InMemoryCacheServiceandDistributedMemoryCacheServiceimplementations - RCommon.Persistence.Caching.RedisCache - Redis-backed alternative for persistence caching
License
Licensed under the Apache License, Version 2.0.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- RCommon.MemoryCache (>= 2.3.2-alpha.0.2)
- RCommon.Persistence.Caching (>= 2.3.2-alpha.0.2)
-
net8.0
- RCommon.MemoryCache (>= 2.3.2-alpha.0.2)
- RCommon.Persistence.Caching (>= 2.3.2-alpha.0.2)
-
net9.0
- RCommon.MemoryCache (>= 2.3.2-alpha.0.2)
- RCommon.Persistence.Caching (>= 2.3.2-alpha.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.4.1 | 17 | 2/18/2026 |
| 2.3.2-alpha.0.3 | 26 | 2/18/2026 |
| 2.3.2-alpha.0.2 | 23 | 2/18/2026 |
| 2.3.2-alpha.0.1 | 44 | 2/9/2026 |
| 2.3.1 | 90 | 2/5/2026 |
| 2.3.0 | 82 | 2/3/2026 |
| 2.2.2-alpha.0.1 | 383 | 12/11/2025 |
| 2.2.1-alpha.0.2 | 123 | 10/24/2025 |
| 2.2.1-alpha.0.1 | 134 | 10/24/2025 |
| 2.1.11-alpha.0.2 | 121 | 10/24/2025 |
| 2.1.11-alpha.0.1 | 86 | 7/18/2025 |
| 2.1.10 | 266 | 7/17/2025 |
| 2.1.9-alpha.0.1 | 146 | 7/17/2025 |
| 2.1.2.4 | 199 | 5/21/2025 |
| 2.1.2.3 | 192 | 5/1/2025 |
| 2.1.2.2 | 278 | 1/23/2025 |
| 2.1.2.1 | 140 | 1/17/2025 |
| 2.1.2 | 136 | 1/17/2025 |
| 2.1.1.4 | 144 | 1/7/2025 |
| 0.0.0-alpha.0 | 142 | 7/17/2025 |
Loading failed