memmify

0.0.0 • Public • Published

Memmify

A layer between your unserialized data and the file system.

API

FileCache(parse, serialize)

load(fname, next)

next is called with (err, data)

  • check cache
    • if nothing's there or if cache is older than the file, load and parse the file, updating the cache
    • otherwise give back the data as you received it

save(fname, data, next)

next is called with (err)

  • serialize the data
  • save it to the file
  • update the cache

JsonCache()

where parse and serialize are filled in as JSON.parse and JSON.stringify

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.0
    3

Package Sidebar

Install

npm i memmify

Weekly Downloads

3

Version

0.0.0

License

MIT

Last publish

Collaborators

  • jabapyth