What problem does it solve?
This Skill eliminates the manual effort of configuring and implementing scalable caching systems for ASP.NET Core backend projects built with the Jarvis framework, removing the need to write repetitive cache registration, configuration, and invalidation logic from scratch.
Core Features & Use Cases
- Multi-Tier Caching Support: Configure in-memory L1 cache and Redis L2 distributed cache for optimal performance and scalability.
- Cache-Aside Pattern Implementation: Built-in GetOrSetAsync method for automatic cache population and post-write invalidation for database and external API data.
- Multi-Instance Cache Sync: Pub/sub based memory cache invalidation across multiple server nodes to prevent stale data in distributed deployments.
- Use Case: For a multi-instance Jarvis e-commerce backend, use this Skill to cache product query results, sync cache invalidation across all instances when product data is updated, and add OpenTelemetry tracing for Redis connections.
Quick Start
Use the caching-dotnet skill to initialize memory caching for your Jarvis Infrastructure layer and enable Redis distributed cache support for your Host project.