amino-driver-redis

0.3.5 • Public • Published

amino-pubsub-redis allows you to use redis as a pub/sub backend for amino.

Usage

publisher.js

// Tell other nodes my name when I start.
var amino = require('amino')
  .use(require('amino-pubsub-redis'), {host: 'localhost', port: 6379});
 
amino.publish('myname', 'amino99');

subscriber.js

// Greet other nodes as they come up.
var amino = require('amino')
  .use(require('amino-pubsub-redis'), {host: 'localhost', port: 6379});
 
amino.subscribe('myname', function(name) {
  console.log('hello, ' + name + '!');
});

Readme

Keywords

none

Package Sidebar

Install

npm i amino-driver-redis

Weekly Downloads

0

Version

0.3.5

License

none

Last publish

Collaborators

  • carlos8f