Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Redis-backed memory adapter for TanStack AI with client-side lexical, recency, and importance ranking; supports ioredis and node-redis.
39% 96%+57 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 9 of 23 without it.
3 of 3 safety checks passed
Not used yet
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({
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.