@miniflare/kv
v2.14.4
Published
Workers KV module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
Downloads
359,410
Maintainers
Readme
@miniflare/kv
Workers KV module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers. See 📦 KV for more details.
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