intelligent-cache

Community

Smart caching for faster data retrieval.

Authordadbodgeoff
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the need for efficient data retrieval by implementing a multi-layer caching system that reduces the load on expensive data generation processes and ensures data freshness.

Core Features & Use Cases

  • Type-Specific TTLs: Caches data with expiration times tailored to different content types.
  • Two-Layer Cache: Utilizes both in-memory and database layers for speed and persistence.
  • Get-or-Generate Pattern: A robust pattern that fetches from cache or generates data on a cache miss, preventing race conditions.
  • Generation Timing: Tracks the time taken for data generation to aid in optimization.
  • Graceful Invalidation: Allows for selective or type-wide cache invalidation without cache stampede.
  • Use Case: When generating complex AI analyses or aggregating data from multiple sources, this skill ensures that frequently accessed or slowly generated data is served quickly from cache, only regenerating when necessary.

Quick Start

Use the intelligent-cache skill to get or generate daily briefing data for today's date.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 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: intelligent-cache
Download link: https://github.com/dadbodgeoff/drift/archive/main.zip#intelligent-cache

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.