encrypted-cache

Encrypted filesystem key-value store.

Usage no npm install needed!

<script type="module">
  import encryptedCache from 'https://cdn.skypack.dev/encrypted-cache';
</script>

README

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