1.0.1 • Published 6 years ago
encrypted-cache v1.0.1
Encrypted Cache
An enctypted filesystem cache.
Install
npm install encrypted-cacheAPI
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