1.0.5 • Published 5 years ago

encrypt-async-cache v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Install

$ npm install encrypt-async-cache

Usage

const FileSystemCache = require("encrypt-async-cache").FileSystemCache;

Example

const myCache = new FileSystemCache("my-cache", "my-secret-key");

myCache.set("firstCache", "This is the data").then(success => {
  success === true;
  // item is put into cache
});


myCache.get("firstCache").then(cachedItem => {
  cachedItem === "This is the data";
  // item is retrieved from the cache
});


myCache.remove("firstCache").then(hasRemoved => {
  hasRemoved === true;
  // item is removed from the cache directory
});

myCache.clear().then(hasCleared => {
  hasCleared === true;
  // your cache directory has been cleared
});
1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago