0021-laravel-caching-strategies

Community

Speed up Laravel apps with safe caching.

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It prevents slow database-heavy requests by showing how to cache Laravel results correctly while avoiding stale data, stampedes, and broken invalidation.

Core Features & Use Cases

  • Cache patterns and lifecycles: Use remember, rememberForever, put/get/forget, and flexible stale-while-revalidate for high-traffic keys.
  • Grouped invalidation: Apply cache tags for Redis/Memcached so you can flush related entries together.
  • Concurrency control: Use atomic locks and memoization patterns to stop duplicate regeneration and redundant cache lookups.
  • Practical correctness: Establish cache key conventions and handle null/empty caching with explicit strategies.
  • Real invalidation workflows: Invalidate cached model entries on save/delete and invalidate query-result caches by tag.

Quick Start

Ask an AI to produce a Laravel caching plan for a dashboard that needs fast reads, safe refresh behavior, and correct invalidation when posts or user profiles change.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0021-laravel-caching-strategies
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0021-laravel-caching-strategies

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.