ffc

flat-file-cache

Store objects in a flat file as JSON

Showing:

Popularity

Downloads/wk

2

Maintenance

No Maintenance Data Available

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

flat-file-cache

Storing objects in a flat file as JSON

Installing from npm

$ npm install flat-file-cache

Using it

  1. Require the flat-file-cache class

    var Flat = require('flat-file-cache');

  2. Create a new cache object. The only parameter is the directory to use

    var cache = new Flat('storage');

  3. Storing data

    cache.set('keyname', {my: data}, function callback(err) {});

  4. Getting data

    cache.get('keyname, function callback(result) {});

  5. Sync

There is also a setSync() and getSync() version.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial