NULL Scratch vs Redis: Capability-Keyed Agent Handoffs vs In-Memory Cache
NULL Scratch is an HTTPS/MCP burn-after-read state API with per-record cryptographic capability keys and zero infrastructure management. Redis is a general-purpose, ultra-low-latency in-memory datastore for high-throughput application caching and pub/sub.
| Capability / Criterion | NullPK | Redis |
|---|---|---|
| Setup Overhead | Zero setup — instant HTTPS & MCP endpoint | Requires managed instance or self-hosted server |
| Access Control | Per-record salted HMAC capability tokens | Connection-level AUTH / ACLs |
| Burn-After-Read | Built-in atomic max_reads counter | Requires custom Lua script or GETDEL |
| Payload & TTL Limits | Up to 32 KB, 60s–24h TTL | Up to 512 MB per value, optional persistence |
When to Choose NullPK
- You need burn-after-read handoffs between loosely coupled AI agents without provisioning or securing a Redis server.
- You want per-record cryptographic read/delete tokens so agents cannot enumerate other records.
- You want native MCP tool access out of the box.
When to Choose Redis
- You need sub-millisecond VPC-local caching, pub/sub, sorted sets, or millions of operations per second.
- You need persistent data structures larger than 32 KB or TTLs longer than 24 hours.
Frequently Asked Questions
Should I replace my production Redis cache with NULL Scratch?
No. Use Redis for high-throughput application caching; use NULL Scratch for zero-ops ephemeral AI agent handoffs and burn-after-read state.