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

2.14.2 • Public • Published

@miniflare/storage-redis

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

Example

import { KVNamespace } from "@miniflare/kv";
import { RedisStorage } from "@miniflare/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

Package Sidebar

Install

npm i @miniflare/storage-redis

Weekly Downloads

492

Version

2.14.2

License

MIT

Unpacked Size

18.3 kB

Total Files

5

Last publish

Collaborators

  • wrangler-publisher