redis-cluster-url
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

redis-cluster-url

Create a redis cluster client or redis standalone client with a single url string.

Usage

Install:

npm install --save redis-cluster-url

Create a redis client:

import { createRedisClientOrCluster } from 'redis-cluster-url';

const client = createRedisClientOrCluster('redis://localhost:6379');
const cluster = createRedisClientOrCluster('redis-cluster://redis://192.168.0.1:6379/,redis://192.168.0.2:6379/');

Copyright

(c) 2022, Jean-Christophe Hoelt

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i redis-cluster-url

Weekly Downloads

10

Version

0.1.1

License

MIT

Unpacked Size

13.6 kB

Total Files

9

Last publish

Collaborators

  • jchoelt