encrypted-cache

1.0.1 • Public • Published

Encrypted Cache

Build Status

An enctypted filesystem cache.

Install

  npm install encrypted-cache

API

Api is based on convenient callbacks.

Create new store

  var store = new Store(path);

Write something to store

  store.write('my key', buffer, function(err) { });

Read it back

  store.read('my key', function(err, buffer) { });

Rename cache key

  store.rename(src, dst, function(err) { });

Remove cache entry

  store.remove('my key', function(err) { });

Additionnaly

  store.clean();
  store.pathHash(key);

LICENSE

BSD

Package Sidebar

Install

npm i encrypted-cache

Weekly Downloads

3

Version

1.0.1

License

BSD-2-Clause

Unpacked Size

8.11 kB

Total Files

7

Last publish

Collaborators

  • linuxenko