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

0.3.0 • Public • Published

@fedify/redis: Redis drivers for Fedify

JSR npm GitHub Actions

This package provides Fedify's KvStore and MessageQueue implementations for Redis:

import { createFederation } from "@fedify/fedify";
import { RedisKvStore, RedisMessageQueue } from "@fedify/redis";
import { Redis } from "ioredis";

const federation = createFederation({
  kv: new RedisKvStore(new Redis()),
  queue: new RedisMessageQueue(() => new Redis()),
});

Installation

Deno

deno add @fedify/redis

Node.js

npm install @fedify/redis

Bun

bun add @fedify/redis

Changelog

Version 0.3.0

Released on October 4, 2024.

  • Polling is now more efficient.
  • Renamed RedisMessageQueueOptions.loopInterval option to pollInterval option.

Version 0.2.0

Released on September 26, 2024.

  • Let RedisMessageQueue follow up the latest MessageQueue interface, which was updated in Fedify 1.0.0.
  • Added some example code.

Version 0.1.1

Released on June 22, 2024.

  • Exported @fedify/redis/mq module.

Version 0.1.0

Initial release. Released on June 22, 2024.

Readme

Keywords

Package Sidebar

Install

npm i @fedify/redis

Weekly Downloads

222

Version

0.3.0

License

MIT

Unpacked Size

52.9 kB

Total Files

29

Last publish

Collaborators

  • hongminhee