@nostr-dev-kit/ndk-cache-redis
TypeScript icon, indicating that this package has built-in type declarations

0.1.22 • Public • Published

ndk-cache-redis

NDK cache adapter for redis.

This cache is mostly a skeleton; the cache hit logic is very basic and only checks if a query is using precisely kinds and authors filtering.

Usage

Install

npm add @nostr-dev-kit/ndk-cache-redis

Add as a cache adapter

import NDKRedisCacheAdapter from "@nostr-dev-kit/ndk-cache-redis";

const cacheAdapter = new NDKRedisCacheAdapter();
const ndk = new NDK({ cacheAdapter });

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @nostr-dev-kit/ndk-cache-redis

Weekly Downloads

124

Version

0.1.22

License

MIT

Unpacked Size

445 kB

Total Files

6

Last publish

Collaborators

  • jinglescode
  • pablof7z