database-cache-layer

Database plugin for database-cache-layer

View on GitHub
Author Jeremy Longshore
Namespace @jeremylongshore/claude-code-plugins-plus
Category database
Version 1.0.0
Stars 1,193
Downloads 2
self.md verified
Table of content

Database plugin for database-cache-layer

Installation

npx claude-plugins install @jeremylongshore/claude-code-plugins-plus/database-cache-layer

Contents

Folders: commands, skills

Files: LICENSE, README.md

Documentation

Database plugin for database-cache-layer

Installation

/plugin install database-cache-layer@claude-code-plugins-plus

Usage

/cache-layer

Features

Requirements

Files

License

MIT

Included Skills

This plugin includes 1 skill definition:

implementing-database-caching

|

View skill definition

Database Cache Layer

This skill provides automated assistance for database cache layer tasks.

Prerequisites

Before using this skill, ensure:

Instructions

Step 1: Analyze Caching Requirements

  1. Profile database queries to identify slow or frequently executed queries
  2. Determine which data is read-heavy vs write-heavy
  3. Identify data that can tolerate eventual consistency
  4. Calculate expected cache size and Redis memory requirements
  5. Document current database load and target performance metrics

Step 2: Choose Caching Strategy

  1. Cache-Aside (Lazy Loading): Application checks cache first, loads from DB on miss
    • Best for: Read-heavy workloads, unpredictable access patterns
    • Pros: Only caches requested data, simple to implement
    • Cons: Cache misses incur database hit, stale data possible
  2. Write-Through: Application writes to cache and database simultaneously
    • Best for: Write-heavy workloads needing consistency
    • Pros: Cache always consistent, no stale data
    • Cons: Write latency, unnecessary caching of rarely-read data
  3. **Write-Behind (Write-Back)

…(truncated)

Source

View on GitHub

Tags: database databasebackendcache