package
My hunky-dory module
npm install cachaGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Cache on file-system
$ npm install --save cachaconst Cache = require('cacha');
const cache = new Cacha('.my/cache');
cache.set('id', 'content');
//=> Promise
cache.get('id');
//=> Promise with 'content'Type: string
Directory in HOME or TMP directory of current user.
If namespace begins with / it will be interpreted as absolute path.
Type: Number
Default: 86400000
How long (in milliseconds) keep entries in cache.
Get and set methods for cache entries. options are passed to fs write and read methods (for example to specify encoding).
Removes outdated entries in cache.
MIT © Vsevolod Strukchinsky
Estimated unpacked size across 7 packages.
123.9 kB
Includes dependencies.
5 direct · 4 outdated
^2.3.0
6.1.0
^0.5.1
3.0.1
^2.0.0
4.0.0
^2.0.0
2.0.1
^1.0.0
2.0.0