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 __ = ; // configure redis host before using__; // variables are shared based on namespacevar foo = ; foo;// baz is now propogated to every// process on every machine // you only have to use set the first timefoodouble = '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
-
Add a test suite.