Module for simple key/value store, with just one key. It'a wrapper around node-persist, in sync mode.
npm install @piemme/cachinggg --save
Example:
var cachinggg = require ('cachinggg')
cachinggg.put('beep')
var content = cachinggg.get()
// obtain 'beep'
// and now refresh cache with a new content
// cache system verify if value is the same in cache
cachinggg.refresh(someContent, function () {
var content = cachinggg.get()
})
MIT