ZibStack.NET.Aop.HybridCache
3.1.5
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 ZibStack.NET.Aop.HybridCache --version 3.1.5
NuGet\Install-Package ZibStack.NET.Aop.HybridCache -Version 3.1.5
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="ZibStack.NET.Aop.HybridCache" Version="3.1.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ZibStack.NET.Aop.HybridCache" Version="3.1.5" />
<PackageReference Include="ZibStack.NET.Aop.HybridCache" />
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 ZibStack.NET.Aop.HybridCache --version 3.1.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ZibStack.NET.Aop.HybridCache, 3.1.5"
#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 ZibStack.NET.Aop.HybridCache@3.1.5
#: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=ZibStack.NET.Aop.HybridCache&version=3.1.5
#tool nuget:?package=ZibStack.NET.Aop.HybridCache&version=3.1.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ZibStack.NET.Aop.HybridCache
HybridCache aspect for ZibStack.NET.Aop — L1 memory + L2 distributed caching via Microsoft.Extensions.Caching.Hybrid.
Install
dotnet add package ZibStack.NET.Aop
dotnet add package ZibStack.NET.Aop.HybridCache
Setup
builder.Services.AddHybridCache(); // Microsoft's HybridCache
builder.Services.AddAop(); // built-in aspects
builder.Services.AddAopHybridCache(); // [HybridCache] handler
var app = builder.Build();
app.Services.UseAop();
For L2 (distributed) caching, add a distributed cache provider:
builder.Services.AddStackExchangeRedisCache(o => o.Configuration = "localhost:6379");
Usage
[HybridCache(DurationSeconds = 120)]
public async Task<Product> GetProductAsync(int id) { ... }
// Custom cache key:
[HybridCache(KeyTemplate = "user:{userId}:orders")]
public async Task<List<Order>> GetOrdersAsync(int userId) { ... }
Async methods only (IAsyncAroundAspectHandler). For sync in-memory caching, use the built-in [Cache] attribute.
Documentation
Full documentation: mistykuu.github.io/ZibStack.NET/packages/aop/
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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 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.
-
net9.0
- Microsoft.Extensions.Caching.Hybrid (>= 9.4.0)
- ZibStack.NET.Aop.Abstractions (>= 3.1.5)
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 |
|---|---|---|
| 3.2.4 | 98 | 4/21/2026 |
| 3.2.3 | 98 | 4/21/2026 |
| 3.2.2 | 89 | 4/21/2026 |
| 3.2.1 | 91 | 4/21/2026 |
| 3.2.0 | 97 | 4/21/2026 |
| 3.1.5 | 87 | 4/20/2026 |
| 3.1.4 | 93 | 4/20/2026 |
| 3.1.3 | 97 | 4/20/2026 |
| 3.1.2 | 105 | 4/20/2026 |
| 3.1.1 | 88 | 4/20/2026 |
| 3.1.0 | 98 | 4/20/2026 |
| 3.0.6 | 92 | 4/20/2026 |
| 3.0.5 | 97 | 4/20/2026 |
| 3.0.4 | 93 | 4/20/2026 |
| 3.0.3 | 88 | 4/20/2026 |
| 3.0.2 | 90 | 4/20/2026 |
| 3.0.1 | 92 | 4/20/2026 |
| 3.0.0 | 100 | 4/20/2026 |
| 2.82.0 | 93 | 4/20/2026 |
| 2.8.1 | 93 | 4/18/2026 |
Loading failed