@d1testflare/durable-objects
v2.9.0
Published
Durable Objects module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers
Downloads
87
Maintainers
Readme
@d1testflare/durable-objects
Durable Objects module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers. See 📌 Durable Objects for more details.
Example
import { DurableObjectStorage } from "@d1testflare/durable-objects";
import { MemoryStorage } from "@d1testflare/storage-memory";
const storage = new DurableObjectStorage(new MemoryStorage());
await storage.put("key", "value");
console.log(await storage.get("key")); // value