caching-strategies

Implement caching patterns for ASP.NET Core Razor Pages with Redis and HybridCache.

10|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill caching-strategies-agibuild
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caching-strategies
Source: https://github.com/AGIBuild/Agibuild.Fulora/tree/main/.cursor/skills/caching-strategies
Command: npx skills add https://github.com/AGIBuild/Agibuild.Fulora --skill caching-strategies-agibuild

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexities of implementing effective caching in ASP.NET Core Razor Pages applications, preventing performance bottlenecks and ensuring data freshness.

Core Features & Use Cases

  • Comprehensive Caching Patterns: Covers output caching, response caching, memory caching, distributed caching (Redis), and HybridCache (.NET 9+).
  • Cache Invalidation: Provides strategies for tag-based, event-driven, and time-based invalidation.
  • Use Case: Implement a robust caching strategy for a high-traffic e-commerce site to reduce database load and improve page load times for product listings and user profiles.

Quick Start

Configure output caching for a Razor Page to expire after 60 seconds.

Frequently Asked Questions about caching-strategies

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement caching in ASP.NET Core Razor Pages to reduce database load?

This Skill provides comprehensive caching patterns for ASP.NET Core Razor Pages, including output, response, memory, and distributed caching with Redis and HybridCache to reduce database load and improve page load times.

What is the best way to invalidate cache in ASP.NET Core when data changes?

Cache invalidation in ASP.NET Core is handled through tag-based, event-driven, and time-based invalidation strategies, ensuring data freshness while addressing anti-patterns for performance optimization.

Does HybridCache work with ASP.NET Core and Redis for distributed caching?

HybridCache works with ASP.NET Core for distributed caching alongside Redis, providing modern caching patterns that require .NET 8+ with modern features and nullable reference types enabled.

How do I configure output caching for a Razor Page to expire after 60 seconds?

You can configure output caching for a Razor Page to expire after 60 seconds by applying the output caching patterns provided, optimizing performance for ASP.NET Core applications.

What caching anti-patterns should I avoid in ASP.NET Core performance optimization?

Caching anti-patterns to avoid in ASP.NET Core include improper invalidation and over-caching, which are addressed alongside comprehensive caching patterns to prevent performance bottlenecks and ensure data freshness.

Do I need .NET 8 to use modern caching features like HybridCache in ASP.NET Core?

Modern caching features like HybridCache require .NET 8+ with modern features and nullable reference types enabled to implement comprehensive caching patterns in ASP.NET Core Razor Pages applications.