Skip to content

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

License

Notifications You must be signed in to change notification settings

hackergrrl/memory-chunk-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memory-chunk-store build status

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

abstract chunk store

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%