msetting
Using MongoDB as a centralized configuration
Usage
var col = require('monk')('localhost/test').get('woot');
var setting = require('msetting')(col);
setInterval(function () {
console.log(444444444);
col.insert({ a: 'b', updateDate: new Date(), ts: Date.now() })
}, 1000);
setInterval(function () {
console.log(setting.get('a'));
}, 1000);
for more detail see source code and cofigstore
TODO
- bootstrap process
- error process