2.9.0 • Published 2 years ago

@d1testflare/storage-redis v2.9.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@d1testflare/storage-redis

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

Example

import { KVNamespace } from "@d1testflare/kv";
import { RedisStorage } from "@d1testflare/storage-redis";
import IORedis from "ioredis";

const redis = new IORedis("redis://localhost:6379");
const ns = new KVNamespace(new RedisStorage(redis, "namespace"));
await ns.put("key", "value");
console.log(await ns.get("key")); // value