Rag.NET.Caching
1.3.7
dotnet add package Rag.NET.Caching --version 1.3.7
NuGet\Install-Package Rag.NET.Caching -Version 1.3.7
<PackageReference Include="Rag.NET.Caching" Version="1.3.7" />
<PackageVersion Include="Rag.NET.Caching" Version="1.3.7" />
<PackageReference Include="Rag.NET.Caching" />
paket add Rag.NET.Caching --version 1.3.7
#r "nuget: Rag.NET.Caching, 1.3.7"
#:package Rag.NET.Caching@1.3.7
#addin nuget:?package=Rag.NET.Caching&version=1.3.7
#tool nuget:?package=Rag.NET.Caching&version=1.3.7
Rag.NET.Caching
Part of Rag.NET — a modular RAG pipeline for .NET built on Microsoft.Extensions.AI. Ships as 74 packages; install only what you call. Documentation · Choosing packages
Retrieval caching for Rag.NET on HybridCache: UseCaching() switches on the embedding
cache (identical queries stop paying for embedding calls) and the result cache (repeated
questions skip the vector store entirely).
Install
dotnet add package Rag.NET.Caching
Setup
using Rag.NET.DependencyInjection;
services.AddRagNet(rag => rag.UseCaching());
Example
TTLs are the tuning surface — embeddings are stable (cache long), results go stale with every ingest (cache short):
using Rag.NET.DependencyInjection;
services.AddRagNet(rag => rag.UseCaching(o =>
{
o.EmbeddingTtl = TimeSpan.FromMinutes(30); // default
o.ResultTtl = TimeSpan.FromMinutes(5); // default
}));
Per request, RetrievalOptions.UseCacheEmbedding and UseCacheResult (both default
true) opt individual calls out.
Full guide
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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. |
-
net10.0
- Microsoft.Extensions.Caching.Hybrid (>= 10.11.0)
- Rag.NET (>= 1.3.7)
- Rag.NET.Abstractions (>= 1.3.7)
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 |
|---|---|---|
| 1.3.7 | 0 | 11/2/2026 |
| 1.3.6 | 0 | 11/2/2026 |
| 1.3.5 | 36 | 11/1/2026 |
| 1.3.4 | 46 | 10/30/2026 |
| 1.3.2 | 99 | 10/26/2026 |
| 1.3.1 | 84 | 10/25/2026 |
| 1.3.0 | 95 | 10/22/2026 |
| 1.2.0 | 84 | 10/22/2026 |
| 1.1.3 | 94 | 10/20/2026 |
| 1.1.2 | 90 | 10/19/2026 |
| 1.1.1 | 86 | 10/18/2026 |
| 1.1.0 | 110 | 10/16/2026 |
| 1.0.0 | 119 | 9/15/2026 |
| 0.1.0 | 139 | 8/11/2026 |