msetting
v0.0.4
Published
using mongodb as centralized configuration service
Downloads
1
Maintainers
Readme
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