Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eknkc/sentinel-redis
Redis Sentinel client for Node.JS
https://github.com/eknkc/sentinel-redis
Last synced: 9 days ago
JSON representation
Redis Sentinel client for Node.JS
- Host: GitHub
- URL: https://github.com/eknkc/sentinel-redis
- Owner: eknkc
- Created: 2014-01-31T18:14:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-11T23:07:52.000Z (almost 11 years ago)
- Last Synced: 2024-12-17T01:34:16.812Z (17 days ago)
- Language: JavaScript
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sentinel-redis
Redis Sentinel client for Node.JSnpm install sentinel-redis
##Usage
var rs = require("sentinel-redis")// Create a new sentinel manager with the array of sentinel server definitions
var sentinel = rs([
{ host: '127.0.0.1', port: 26379 },
{ host: '127.0.0.1', port: 26380 },
{ host: '127.0.0.1', port: 26381 }
]);// Create a new Redis client for given master and with the supplied options.
// This is a regular Redis client. You can do whatever you want with it at this point.
// In case of a failover, it will transparently switch to new master and keep working.
var client = sentinel.createClient("masterName", options);##license
MIT