memory-chunk-store
abstract-chunk-store compliant
In memory chunk store that isInstall
npm install memory-chunk-store
Usage
var mem = require('memory-chunk-store')
var chunks = mem(10)
chunks.put(0, new Buffer('01234567890'), function (err) {
if (err) throw err
chunks.get(0, function (err, chunk) {
if (err) throw err
console.log(chunk) // '01234567890' as a buffer
})
})
License
MIT