Layercache
Search
K
Docs
Playground
Theme
Playground
#
Basic Get/Set
Multi-Layer Stack
Stale-While-Revalidate
Tag Invalidation
Cache Policy
Stored Nulls & getEntry
Exact-Key APIs
Generation Rotation
Parallel Backfill
Namespaces
Stampede Prevention
Circuit Breaker
Write-Behind
Editor
Edit a preset, then run it in the worker sandbox.
Run
Idle
// Basic get/set operations const { cache } = createPlaygroundCache(); // Set a value await cache.set("user:1", { name: "Alice", role: "admin" }); console.log("Set user:1"); // Get it back const user = await cache.get("user:1"); console.log("Got user:", JSON.stringify(user)); // Check stats console.log("Stats:", JSON.stringify(cache.getStats()));
Output
Execution logs and layer state.
Logs
Layers
Run code to see output here