caching-dotnet-redis-distributed

Configure Redis distributed caching for Jarvis ASP.NET Core applications.

12|2|Updated May 4, 2020
One-click install
npx skills add https://github.com/hoangnh2412/jarvis --skill caching-dotnet-redis-distributed
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: caching-dotnet-redis-distributed
Source: https://github.com/hoangnh2412/jarvis/tree/main/.opencode/skills/caching-dotnet/providers/redis-distributed
Command: npx skills add https://github.com/hoangnh2412/jarvis --skill caching-dotnet-redis-distributed

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill eliminates the manual effort and potential configuration errors when setting up Redis distributed caching for Jarvis .NET 9 backend applications, providing a standardized, framework-aligned way to add scalable L2 caching to reduce database load.

Core Features & Use Cases

  • Framework-Aligned Integration: Seamlessly adds Redis distributed cache support to Jarvis projects using the official UseRedisDistributedCache extension method, following the framework's layer extension conventions.
  • Grouped Cache Management: Supports configurable distributed cache groups, making it easy to manage cache instances for multi-tenant or clustered deployment scenarios.
  • Use Case: For a high-traffic e-commerce Jarvis API that serves product data across multiple app instances, this Skill enables consistent cached product data across all nodes to reduce duplicate database queries.

Quick Start

Use this skill to configure Redis distributed caching for your Jarvis project by adding the required Jarvis.Caching.Redis and StackExchange.Redis NuGet packages, then calling the UseRedisDistributedCache method in your Program.cs file after adding the Jarvis caching layer.

Frequently Asked Questions about caching-dotnet-redis-distributed

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

FAQPage Schema
How do I set up Redis distributed caching in ASP.NET Core to reduce database load?

You can configure Redis distributed caching by adding Jarvis.Caching.Redis and StackExchange.Redis NuGet packages, then calling the UseRedisDistributedCache extension method in Program.cs after adding the Jarvis caching layer.

What does L2 distributed cache do for multi-instance ASP.NET Core deployments?

L2 distributed cache provides consistent cached data across all application nodes in multi-instance ASP.NET Core deployments, reducing duplicate database queries and lowering overall database load.

Does Jarvis framework support grouped cache management for multi-tenant scenarios?

Yes, Jarvis framework supports configurable distributed cache groups via the UseRedisDistributedCache extension, allowing you to organize and manage cache instances for multi-tenant or clustered deployment scenarios.

Can I use StackExchange.Redis with Jarvis .NET 9 backend applications?

Yes, you can use StackExchange.Redis with Jarvis .NET 9 backend applications by integrating the Jarvis.Caching.Redis package to enable Redis-backed distributed cache functionality through the framework's layer extension conventions.

Why configure distributed cache groups in a clustered ASP.NET Core deployment?

Configuring distributed cache groups in a clustered ASP.NET Core deployment allows you to logically organize cache entries, making it easier to manage cache instances across multiple tenants or application clusters.