Latest Code

This commit is contained in:
Dobie Wollert
2015-04-06 03:28:20 -04:00
parent 966152a631
commit d3089dcd17
105 changed files with 8731 additions and 96 deletions

22
node_modules/strong-store-cluster/lib/collection.js generated vendored Normal file
View File

@ -0,0 +1,22 @@
module.exports = collection;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var cluster = require('cluster');
if (cluster.isMaster)
var Collection = require('./master/Collection.js');
else
var Collection = require('./worker/Collection.js');
var collections = {};
function collection(name) {
if (!hasOwnProperty.call(collections, name))
return collections[name] = new Collection(name);
else
return collections[name];
}