npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

nestjs-power-redis

v1.0.18

Published

NestJS integration for power-redis: secure, scalable and production-ready Redis client wrapper with multi-connection support, TLS, utilities and high-performance helpers.

Readme

nestjs-power-redis

power-redis integration for NestJS

📚 Documentation

Full documentation is available here:
👉 https://nestjs-power-redis.docs.ihor.bielchenko.com

📦 Installation

npm install nestjs-power-redis

OR

yarn add nestjs-power-redis

🧪 Basic usage

For example, you may need to create two Redis connections in a NestJS application. Let's say these connection names are queues and cache. The number of connections can be arbitrary, and the names must use Latin characters without special symbols (hyphens and underscores are allowed).

1. Connection settings are specified in the .env file:

REDIS_QUEUES_HOST=127.0.0.1
REDIS_QUEUES_PORT=6379
REDIS_QUEUES_PASSWORD=
REDIS_QUEUES_DATABASE=0

REDIS_CACHE_HOST=127.0.0.1
REDIS_CACHE_PORT=6379
REDIS_CACHE_PASSWORD=
REDIS_CACHE_DATABASE=0

2. Register module with multiple Redis clients:

import { RedisModule } from 'nestjs-power-redis';

@Module({
	imports: [
		RedisModule.forRoot([ 'queues', 'cache' ]),
	],
})
export class AppModule {}

3. Inject Redis in a service:

import { Injectable } from '@nestjs/common';
import { 
	InjectRedis,
	RedisService, 
} from 'nestjs-power-redis';

@Injectable()
export class MyService {
	constructor(
		@InjectRedis('queues') private readonly queuesRedis: RedisService,
		@InjectRedis('cache') private readonly cacheRedis: RedisService,
	) {}

	async test() {
		await this.queuesRedis.setOne('hello', 'world');
	 
		const value = await this.cacheRedis.getOne('user:1');
		
		return value;
	}
}

🔐 Environment Variables

Everything is configured using environment variables:

REDIS_<NAME>_HOST=127.0.0.1
REDIS_<NAME>_PORT=6379
REDIS_<NAME>_PASSWORD=pass
REDIS_<NAME>_DATABASE=0

# TLS
REDIS_<NAME>_TLS_CRT=/etc/ssl/client.crt
REDIS_<NAME>_TLS_KEY=/etc/ssl/client.key
REDIS_<NAME>_TLS_CA_CRT=/etc/ssl/ca.crt

TLS fields are optional.

📜 License

MIT - free for commercial and private use.