@miniflare/storage-memory
v2.14.4
Published
In-memory storage module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
Downloads
439,892
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