# @txrx/redis-pool

> TxRx - Redis Pool Connector

Latest version **1.1.1** (published 2024-03-16) · ISC license · 0 weekly downloads

## Install

```sh
npm install @txrx/redis-pool
pnpm add @txrx/redis-pool
yarn add @txrx/redis-pool
bun add @txrx/redis-pool
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2024-03-16 |
| First published | 2023-12-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | klez |
| Maintainers | zelk-zelk |

## Links

- npm: https://www.npmjs.com/package/@txrx/redis-pool
- Repository: https://github.com/TxRx-Project/txrx-redis-pool
- Issues: https://github.com/TxRx-Project/txrx-redis-pool/issues
- npm.io page: https://npm.io/package/@txrx/redis-pool

## Dependencies (1)

- [ioredis](https://npm.io/package/ioredis.md) ^5.3.2

## Recent versions

- 1.1.1 (latest) — 2024-03-16
- 1.1.0 — 2024-03-04
- 1.0.0 — 2023-12-25

## README

# txrx-redis-pool

A simple `Redis` connection pool implementation.

## Synopsis

The pool is structured as a `category`, `url` tuple.

Where the category is an arbitrary string and the url is a valid Redis URL connection string.

```typescript
// local redis instance for streaming purposes
const streamingRedis = RedisConnector.get('streaming').get('redis://localhost');
// external redis instance for streaming purposes
const streamingExternalRedis = RedisConnector.get('streaming').get('redis://external');
// local redis instance for general purposes
const generalRedis = RedisConnector.get('general').get('redis://localhost');
// this won't create a new instance
const streamingRedis2 = RedisConnector.get('streaming').get('redis://localhost');
```

## Devel

Dev container is recommended, to run the `devel` container:

```
make build
make install
```

---
_Source: https://npm.io/package/@txrx/redis-pool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
