Socket
Socket
Sign inDemoInstall

encrypted-cache

Package Overview
Dependencies
0
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    encrypted-cache

Encrypted filesystem key-value store.


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 08 Nov 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc