Install any skill in seconds. Free to start, no credit card required.
Get Started Free →tanstack/tanstack-ai-memory-redis
Use when wiring redis() from @tanstack/ai-memory/redis in production — covers client setup (ioredis or node-redis via fromNodeRedis), the storage model, client-side ranking limits, and troubleshooting.
Passed 22 of 23 test cases with the skill, and 9 of 23 without it.
and 12 more in the full report
13 fixed9 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
Which two primary method contracts does the `@tanstack/ai-memory` Redis adapter implement to allow memory middleware integration?
| Checked | Without skill | With skill |
|---|---|---|
| Implements the `recall` and `save` interface contract | Missed | Passed |
The instructions your model reads when the skill loads.
Production-grade recall/save adapter backed by plain Redis (no vector index
required). Ranks client-side (lexical + optional cosine + recency + importance).
Bring your own Redis client. ioredis wires in directly; redis (node-redis v4+) needs
a small wrapper.
ioredisimport Redis from 'ioredis'
import { memoryMiddleware } from '@tanstack/ai-memory'
import { redis } from '@tanstack/ai-memory/redis'
const client = new Redis(process.env.REDIS_URL ?? 'redis://localhost:6379')
const memory = redis({ redis: client, prefix: 'myapp:memory' })
// Resolve scope per request from the server-validated session — never from req.body.
function memoryFor(session: { userId: string; threadId: string }) {
return memoryMiddleware({
adapter: memory,
scope: { threadId: session.threadId, userId: session.userId },
})
}
redis (node-redis v4+)import { createClient } from 'redis'
import { memoryMiddleware } from '@tanstack/ai-memory'
import { redis, fromNodeRedis } from '@tanstack/ai-memory/redis'
const client = createClient({ url: process.env.REDIS_URL })
await client.connect()
const memory = redis({
test cases passed, vs 9 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.