@d1testflare/kv
v2.9.0
Published
Workers KV module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
Downloads
82
Maintainers
Readme
@d1testflare/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 "@d1testflare/kv";
import { MemoryStorage } from "@d1testflare/storage-memory";
const ns = new KVNamespace(new MemoryStorage());
await ns.put("key", "value");
console.log(await ns.get("key")); // value