Skip to content
Back to skills

Caching And Data Access

ASecurity

Own the data-access layer: queries behind a repository, short explicit transaction boundaries (never across HTTP), kill ORM N+1 by eager-loading/batching, and cache-aside with a defined invalidation trigger plus stampede (single-flight) protection.

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentssqldatabase

Security analysis

A100/100

Scanned September 23, 2026

npx -y skills add mcorbett51090/RavenClaude --skill caching-and-data-access --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Caching And Data Access?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Caching And Data Access
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mcorbett51090-caching-and-data-access/badge)](https://www.skillsdirectory.com/skills/mcorbett51090-caching-and-data-access)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: caching-and-data-access
description: "Own the data-access layer: queries behind a repository, short explicit transaction boundaries (never across HTTP), kill ORM N+1 by eager-loading/batching, and cache-aside with a defined invalidation trigger plus stampede (single-flight) protection."
---

# Caching & Data Access

## Repository layer
Persistence behind a repository; no raw ORM in controllers. Transaction boundaries live here — **short**, never spanning an external HTTP call.

## Kill N+1
The #1 ORM perf bug. Eager-load/join/batch what you iterate; detect in tests. SQL-level tuning -> `database-engineering`.

## Cache-aside
Read-through; write invalidates/updates; TTL as a safety net. **No invalidation story = stale-data generator.**

## Stampede
On a hot-key miss, **single-flight**/lock so a thousand misses don't all hit the DB.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…