memory-chunk-store

In memory chunk store that is abstract-chunk-store compliant

MIT License

Downloads
14.1K
Stars
21

memory-chunk-store build status

In memory chunk store that is abstract-chunk-store compliant

Install

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

Package Rankings
Top 28.99% on Repo1.maven.org
Top 2.82% on Npmjs.org
Badges
Extracted from project README
build status abstract chunk store
Related Projects