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

2.1.14 • 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

67

Version

2.1.14

License

MIT

Unpacked Size

15.8 kB

Total Files

10

Last publish

Collaborators

  • jinglescode
  • pablof7z