UNPKG

cluster-store

Version:

A wrapper to enable the use of any in-process store with node cluster via cluster process and worker messages (i.e. for Raspberry Pi servers).

10 lines (7 loc) 165 B
'use strict'; var cluster = require('cluster'); if (cluster.isMaster) { module.exports = require('./master'); } else { module.exports = require('./worker'); }