CLAUDE.md for Redis: 13 Rules That Stop AI From Writing Cache Anti-Patterns
You ask Claude to "add caching to the user profile endpoint," and 30 seconds later you ship something that looks fine in review: SET user_42 — flat key, no namespace, collides the moment a second service shares the cluster. No TTL — the entry lives forever until maxmemory evicts your hottest keys. KEYS user_* in a cleanup job — single-threaded Redis stalls every other client for hundreds of ms. new Redis() inside the request handler — file descriptors leak and the box falls over at moderate load
Comment
Sign in to join the discussion.
Loading comments…