# Redis for Builders > Modern Redis patterns, guides, production code examples and builds. This site publishes posts in Markdown. A clean Markdown version of any post is available at the post's URL with `.md` appended. The full content of every post in one file is at `/llms-full.txt`. Author: Josh tried coding (https://www.xadd.dev) ## Recent posts - [Caching AI SDK v6 tool results with Redis](https://www.xadd.dev/builds/caching-ai-sdk-v6-tool-results-with-redis.md): Cache AI SDK v6 tool results in Redis by writing a simple, clean TypeScript wrapper. Working code with Upstash Redis and an example tool. - [Upstash vs Redis Cloud: A 2026 comparison](https://www.xadd.dev/comparison/upstash-vs-redis-cloud-a-2026-comparison.md): Upstash vs Redis Cloud in 2026: Latency & performance benchmarks, pros & cons, use cases, pricing comparison - [How do you store Vercel AI SDK chat history in Redis?](https://www.xadd.dev/builds/how-do-you-store-vercel-ai-sdk-chat-history-in-redis.md): Persist Vercel AI SDK chat history in Redis with onFinish, saveChat, loadChat, and createIdGenerator. Working AI SDK 6 + Upstash Redis code. - [Rate Limiting Algorithms Compared: Fixed Window, Sliding Window, Token Bucket, Leaky Bucket](https://www.xadd.dev/glossary/rate-limiting-algorithms-compared-fixed-window-sliding-window-token-bucket-leaky-bucket.md): Fixed window, sliding window, token bucket, and leaky bucket compared with Redis Lua scripts, measured boundary-burst numbers, and when each algorithm wins. - [Using Redis as a Session Store (2026 Guide)](https://www.xadd.dev/builds/how-do-you-use-redis-as-a-session-store-2026-guide.md): How to use Redis as a session store: opaque cookie IDs, sliding TTLs, hash-vs-string layout, global revocation, and Redis 7.4 HEXPIRE, with verified @upstash/redis code. - [How do I add rate limiting to a Next.js app with Upstash Redis (2026)?](https://www.xadd.dev/builds/how-do-i-add-rate-limiting-to-a-nextjs-app-with-upstash-redis-2026.md): How to rate limit a Next.js 16 app with and Upstash Redis: sliding window vs fixed window, proxy.ts vs Route Handlers, deny lists, costs. - [Building a high-speed Bloom Filter with Upstash Redis](https://www.xadd.dev/builds/how-do-you-use-bloom-filters-with-upstash-redis.md): Build a Bloom filter on Upstash Redis in ~50 lines of TypeScript using BITFIELD and the Upstash Redis SDK. Sizing math, working code examples, and a measured 1.45% false-positive rate. - [What is the Redis String Data Type?](https://www.xadd.dev/data-structures/what-is-the-redis-string-data-type.md): Deep dive into the Redis string data type: SDS internals, int/embstr/raw encodings, all 25 commands, atomic counters, and Upstash Redis SDK examples.