# Agent-cache – Multi-tier LLM/tool/session caching for Valke…

Multi-tier exact-match cache for AI agents backed by Valkey or Redis. LLM responses, tool results, and session state behind one connection. Framework adapters for LangChain, LangGraph, and Vercel AI SDK. OpenTelemetry and Prometheus built in. No modules required - works on vanilla Valkey 7+ and Red…

- **Page:** https://magpie.gallery/i/agent-cache-multi-tier-llm-tool-session-caching-fo-lmsh
- **Type:** Link to an idea elsewhere
- **Category:** AI & dev
- **Tags:** cache, llm, redis, valkey, agents

## Source

Web · kaliades: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis

- **Original:** https://news.ycombinator.com/item?id=47792122

> Multi-tier exact-match cache for AI agents backed by Valkey or Redis. LLM responses, tool results, and session state behind one connection. Framework adapters for LangChain, LangGraph, and Vercel AI SDK. OpenTelemetry and Prometheus built in. No modules required - works on vanilla Valkey 7+ and Redis 6.2+. Shipped v0.1.0 yesterday, v0.2.0 today with cluster mode. Streaming support coming next. Existing options locked you into one tier (LangChain = LLM only, LangGraph = state only) or one framework. This solves both. npm: https://www.npmjs.com/package/@betterdb/agent-cache Docs: https://docs.betterdb.com/packages/agent-cache.html Examples: https://valkeyforai.com/cookbooks/betterdb/ GitHub: https://github.com/BetterDB-inc/monitor/tree/master/packages... Happy to answer questions.

## GitHub projects

- https://github.com/BetterDB-inc/monitor

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
