You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.
First things first: make sure that the settings.paths.cache is correctly set; that the corresponding paths exists and are writable; and that the specific test for the cache mocha -g 'core:cache' does not throw any error (Cfr. mocha documentation for more info about testing with mocha).
The namespace options is compulsory and it define the subfolder where the cached file should be written.
reading
``` js
helpers.cache.read({
namespace: 'services',
ref: 'Rome, Italy'
}, function (err, contents) {
// contents variable contains JSON parsed data or raw data if JSON parsing failed
console.log(contents.results)
done();
})
``` js