@miniflare/storage-memory
v2.14.2
Published
In-memory storage module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
Downloads
525,785
Maintainers
Readme
@miniflare/storage-memory
In-memory storage module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers.
Example
import { KVNamespace } from "@miniflare/kv";
import { MemoryStorage } from "@miniflare/storage-memory";
const ns = new KVNamespace(new MemoryStorage());
await ns.put("key", "value");
console.log(await ns.get("key")); // value