revolver
v0.2.0
Published
A simple generic round-robin resource manager. Great for database connections pools.
Downloads
2
Readme
revolver
A simple generic round-robin. Great for database connections pools.
Sample Usage:
var test_revolver = require('./revolver.js');
//Load bullets
test_revolver.load('Hai');
test_revolver.load('OMG');
//fire the bullets(They don't really disappear, just moves to the end of the line)
console.log(db_revolver.fire())
console.log(db_revolver.fire())
This can be used to store strings or anymost anything.