Cross.Cache
7.6.0
dotnet add package Cross.Cache --version 7.6.0
NuGet\Install-Package Cross.Cache -Version 7.6.0
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="Cross.Cache" Version="7.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Cross.Cache" Version="7.6.0" />
<PackageReference Include="Cross.Cache" />
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 Cross.Cache --version 7.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cross.Cache, 7.6.0"
#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 Cross.Cache@7.6.0
#: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=Cross.Cache&version=7.6.0
#tool nuget:?package=Cross.Cache&version=7.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Cross.Cache
A flexible and efficient caching library for .NET applications that provides:
Key Features
- Multiple cache provider support (In-Memory and Redis)
- Easy integration with dependency injection
- Asynchronous operations with TTL support
- Built-in monitoring and metrics (OpenTelemetry integration)
- Thread-safe operations
- Configurable through standard .NET configuration system
Storage Options
- In-Memory caching for single-server scenarios
- Redis support for distributed caching
- Automatic failover and connection management for Redis
Performance
- Thread-safe concurrent operations
- Optimized for high-performance scenarios
- Efficient memory usage
Integration
- Simple setup through extension methods
- Compatible with .NET 7.0 and higher
- Built-in Microsoft DI container support
Monitoring
- Detailed cache statistics
- OpenTelemetry metrics support
- Per-key performance tracking
This library is designed to provide a robust caching solution for both simple and complex .NET applications, offering flexibility in cache storage choices while maintaining high performance and reliability.
Roadmap:
- Implement functionality of
SlidingExpirationfromDistributedCacheEntryOptions options
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. 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 was computed. 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 was computed. 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.
-
net7.0
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 7.0.20)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 7.0.0)
- StackExchange.Redis.MultiplexerPool (>= 2.2.0)
-
net8.0
- Microsoft.Extensions.Caching.StackExchangeRedis (>= 8.0.24)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- StackExchange.Redis.MultiplexerPool (>= 2.2.0)
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 |
|---|---|---|
| 7.6.0 | 42 | 6/26/2026 |
| 7.6.0-preview.8 | 34 | 6/26/2026 |
| 7.6.0-preview.7 | 36 | 6/26/2026 |
| 7.6.0-preview.5 | 34 | 6/26/2026 |
| 7.5.1 | 182 | 2/24/2026 |
| 7.5.1-preview.4 | 69 | 2/24/2026 |
| 7.5.0 | 508 | 7/27/2025 |
| 7.5.0-preview.6 | 174 | 7/27/2025 |
| 7.5.0-preview.5 | 416 | 7/25/2025 |
| 7.4.0 | 3,663 | 4/21/2025 |
| 7.4.0-preview.9 | 189 | 4/21/2025 |
| 7.4.0-preview.8 | 188 | 4/21/2025 |
| 7.3.1 | 12,528 | 7/19/2024 |
| 7.3.1-preview.4 | 127 | 7/19/2024 |
| 7.3.1-preview.3 | 198 | 7/19/2024 |
| 7.3.1-preview.2 | 119 | 7/19/2024 |
Loading failed
- Fix CacheInMemoryProvider.RemoveCachesByPatternAsync(pattern, database) to remove keys when database is null.