📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
0
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

NDK cache adapter for redis.

2.1.27
Source
npm
Version published
Weekly downloads
69
-63.68%
Maintainers
0
Weekly downloads
 
Created
Source

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

Keywords

nostr

FAQs

Package last updated on 13 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts