Cross.Cache
7.5.1
dotnet add package Cross.Cache --version 7.5.1
NuGet\Install-Package Cross.Cache -Version 7.5.1
<PackageReference Include="Cross.Cache" Version="7.5.1" />
<PackageVersion Include="Cross.Cache" Version="7.5.1" />
<PackageReference Include="Cross.Cache" />
paket add Cross.Cache --version 7.5.1
#r "nuget: Cross.Cache, 7.5.1"
#:package Cross.Cache@7.5.1
#addin nuget:?package=Cross.Cache&version=7.5.1
#tool nuget:?package=Cross.Cache&version=7.5.1
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. |
-
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.5.1 | 76 | 2/24/2026 |
| 7.5.1-preview.4 | 40 | 2/24/2026 |
| 7.5.0 | 325 | 7/27/2025 |
| 7.5.0-preview.6 | 152 | 7/27/2025 |
| 7.5.0-preview.5 | 400 | 7/25/2025 |
| 7.4.0 | 3,483 | 4/21/2025 |
| 7.4.0-preview.9 | 175 | 4/21/2025 |
| 7.4.0-preview.8 | 169 | 4/21/2025 |
| 7.3.1 | 12,506 | 7/19/2024 |
| 7.3.1-preview.4 | 109 | 7/19/2024 |
| 7.3.1-preview.3 | 179 | 7/19/2024 |
| 7.3.1-preview.2 | 103 | 7/19/2024 |
| 7.3.1-preview.1 | 115 | 7/18/2024 |
| 7.3.0 | 10,627 | 6/22/2024 |
| 7.3.0-preview.6 | 119 | 6/22/2024 |
| 7.2.5 | 13,648 | 5/16/2024 |
- Added multi-targeting for net7.0 and net8.0 with aligned package dependencies.
- Improved unit test coverage for caching services, in-memory provider and DI registration.
- Updated build and packaging configuration for better tooling and coverage integration.