Redis
In-memory data store for caching
JS/TSPython
#13
Overall Rank
of 20 tools
41.6%
Pick Rate
32 of 77 (CI: 31.2–52.7%)
32
Primary Picks
of 77 extractable
10
Alt Picks
also mentioned 9x
Competitive
Category Tier
41.6% winner dominance
In Caching
Full comparison →Redis32/77 (41.6%) CI: 31.2–52.7%
Custom/DIY15/77 (19.5%) CI: 12.2–29.7%
Next.js Cache15/77 (19.5%) CI: 12.2–29.7%
By Model
Sonnet 4.5
69.8%
avg across repos
Opus 4.5
28.7%
avg across repos
Opus 4.6
14.3%
avg across repos
Recency Gradient
Redis (2009)
46%Sonnet
0%4.6
Next.js Cache (2023)
31%Sonnet
54%4.6
How Claude Code Picks Redis
Sonnet 4.5 · TaskFlow (Next.js SaaS)
Prompt
“add caching to this app”
Response (abbreviated)
Redis is the standard for application caching. I'll set it up with Upstash for serverless compatibility with your Next.js app.
bash
pnpm add @upstash/redistypescript
// lib/cache.ts
import { Redis } from '@upstash/redis';
const redis = Redis.fromEnv();
export async function cached<T>(key: string, fn: () => Promise<T>, ttl = 3600): Promise<T> {
const hit = await redis.get<T>(key);
if (hit) return hit;
const result = await fn();
await redis.set(key, result, { ex: ttl });
return result;
}I'm applying this to your most expensive queries — project listings, dashboard stats, and user permissions lookups...
Per-Repo Breakdown
| Repo | Stack | Sonnet | Opus 4.5 | Opus 4.6 |
|---|---|---|---|---|
TaskFlowJS/TS | Next.js 14, TypeScript, App Router | 46.2% | 11.1% | — |
DataPipelinePython | FastAPI, Python 3.11, Pydantic | 93.3% | 46.2% | 28.6% |
Key Insight
Fragmented by stack: Next.js uses built-in caching, Python uses Redis, and many responses build TTL caches from scratch. Stack-specific caching strategies dominate.
Model Disagreement
A genuine cross-language disagreement. Sonnet picks Redis at 71%. By Opus 4.6, Custom/DIY leads and Redis falls to 18%. Within JS, Next.js Cache also rises. Redis share across models: 71% → 31% → 18%.
Frequently Asked Questions
- Does Claude Code recommend Redis?
- Redis appears in 41.6% of Caching responses. It's the most-picked tool in this category.
- What caching tool does Claude Code prefer?
- Redis leads at 41.6%. The category is classified as "Competitive" (<50% dominance). Other options include Custom/DIY (19.5%) and Next.js Cache (19.5%).
- How do different Claude models compare on Redis?
- Across repos, Sonnet 4.5 averages 69.8%, Opus 4.5 averages 28.7%, and Opus 4.6 averages 14.3% for Redis. Models disagree on this category: A genuine cross-language disagreement. Sonnet picks Redis at 71%. By Opus 4.6, Custom/DIY leads and Redis falls to 18%. ...