@d1testflare/storage-memory
TypeScript icon, indicating that this package has built-in type declarations

2.9.0 • Public • Published

@d1testflare/storage-memory

In-memory storage module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers.

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

/@d1testflare/storage-memory/

    Package Sidebar

    Install

    npm i @d1testflare/storage-memory

    Weekly Downloads

    0

    Version

    2.9.0

    License

    MIT

    Unpacked Size

    17.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • oconnorct1