CacheFlow 0.0.5
See the version list below for details.
dotnet add package CacheFlow --version 0.0.5
NuGet\Install-Package CacheFlow -Version 0.0.5
<PackageReference Include="CacheFlow" Version="0.0.5" />
paket add CacheFlow --version 0.0.5
#r "nuget: CacheFlow, 0.0.5"
// Install CacheFlow as a Cake Addin #addin nuget:?package=CacheFlow&version=0.0.5 // Install CacheFlow as a Cake Tool #tool nuget:?package=CacheFlow&version=0.0.5
CacheFlow
High-performance, thread-safe, multi-layer caching library for .NET applications.
Key Features
Multi-Layer Caching
- Fast in-memory caching
- Distributed cache support
- Automatic layer synchronization
Cache Stampede Protection
- Automatic concurrent request handling
- Performance optimization under load
- Smart caching strategies
Advanced Configuration
- Flexible serialization options
- Tag-based caching
- Customizable cache providers
- Comprehensive logging
Quick Start
// Register services
services.AddCacheFlow();
// Basic usage
public class ProductService
{
private readonly ICacheFlow _cache;
public ProductService(ICacheFlow cache)
{
_cache = cache;
}
public async Task<Product> GetProductAsync(int id)
{
return await _cache.GetOrCreateAsync(
$"product:{id}",
async (state, token) => await FetchProductAsync(id),
new CacheFlowEntryOptions
{
SlidingExpiration = TimeSpan.FromMinutes(10),
AbsoluteExpirationRelativeToNow = TimeSpan.FromHours(1)
});
}
}
Configuration Options
services.AddCacheFlow(options =>
{
options.MaximumKeyLength = 256;
options.ReportTagMetrics = true;
options.DisableCompression = false;
options.MaximumPayloadBytes = 1024 * 1024; // 1MB
});
Advanced Features
- Priority-based caching
- Thread-safe operations
- Distributed caching support
- Tag-based cache operations
- Absolute and sliding expiration
- Comprehensive logging and metrics
- Size limits and memory pressure handling
For detailed documentation, visit cacheflow.soferity.com
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. 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 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. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 is compatible. net481 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.8
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
.NETFramework 4.8.1
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
.NETStandard 2.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
.NETStandard 2.1
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
net6.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
net7.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
net8.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
-
net9.0
- Microsoft.Extensions.Caching.Memory (>= 9.0.1)
- Microsoft.Extensions.Logging (>= 9.0.1)
- System.Text.Json (>= 9.0.1)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CacheFlow:
Package | Downloads |
---|---|
CacheFlow.CircuitBreaker
CacheFlow.CircuitBreaker extends CacheFlow with robust circuit breaker capabilities: - Thread-safe circuit breaker implementation - Configurable failure thresholds - Adjustable sampling windows - Automatic recovery mechanisms - Sliding window failure counting - Comprehensive failure tracking - Intelligent state management - Exception-based circuit breaking - Decorator pattern integration - Detailed failure logging Perfect for applications requiring resilient caching with failure protection. |
GitHub repositories
This package is not used by any popular GitHub repositories.
All changes are detailed at https://github.com/Taiizor/CacheFlow/wiki/Changelog.