Skip to content

regality/double-under

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build status

Double Under

Double Under is a node.js utility that allows for shared objects between different node processes and machines. It is backed by redis using a pub/sub channel.

It is simple and fun to use.

var __ = require('double-under');

// configure redis host before using
__.configure({
  host: 'localhost'
});

// variables are shared based on namespace
var foo = __('foo');

foo.set('double', 'decker');
// double is now propogated to every
// process on every machine

// you only have to use set the first time
foo.double = 'under'; // this works

TODO

  • Add mutexes/semaphores or something to prevent race conditions.

  • Add atomic pop/push for arrays.

  • Allow atomic update of fields in sub objects.

  • Add expire option

About

node.js shared objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published