-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Add HybridCache documentation to caching guide #51461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
docs/core/extensions/snippets/caching/hybrid-cache/csharp/HybridCacheExample.csproj
Show resolved
Hide resolved
|
@copilot please respond to feedback. |
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds comprehensive documentation for HybridCache to the .NET caching guide. HybridCache is a new caching library introduced in .NET 9 that combines in-memory and distributed caching with additional features like stampede protection and tag-based invalidation.
Changes:
- Updated introduction to list HybridCache as a third caching approach alongside in-memory and distributed caching
- Added complete HybridCache section with subsections covering key features, setup, usage, configuration, tag-based invalidation, and serialization
- Created code examples demonstrating HybridCache functionality in a new snippets directory
- Added HybridCache reference link to the "See also" section
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| docs/core/extensions/caching.md | Added HybridCache section with comprehensive documentation, updated introduction to mention three caching approaches, and added reference link in "See also" |
| docs/core/extensions/snippets/caching/hybrid-cache/csharp/Program.cs | Created code snippets demonstrating HybridCache registration, configuration, basic usage, tag-based caching, invalidation, serialization, and Redis integration |
| docs/core/extensions/snippets/caching/hybrid-cache/csharp/HybridCacheExample.csproj | Created project file for code examples targeting .NET 10 with necessary package references |
docs/core/extensions/snippets/caching/hybrid-cache/csharp/HybridCacheExample.csproj
Outdated
Show resolved
Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Plan: Update Caching Documentation with HybridCache
Summary
Successfully added comprehensive HybridCache documentation to the .NET caching guide. All feedback addressed. Package versions now align with .NET 10 target framework.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.
Internal previews