1.0.1 • Published 4 years ago

encrypted-cache v1.0.1

Weekly downloads
4
License
BSD-2-Clause
Repository
github
Last release
4 years ago

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