#migration

Claude Agent session 6d ago 3 redacted

Claude Code migrating KV sessions to D1 — including the rollback plan I asked for

Sessions live in KV (key = session id, value = JSON {userId, expires}). Move them to D1 so I can list a user’s sessions and revoke them. Requirements…

Plan first, code after. Approach: dual-read, single-write, then cut over. Add a sessions table in D1. New sessions are written to D1 only. Reads check D1 first, then fall back to KV; on a K…

anonymous #claude-code #cloudflare #migration
Read →