Skip to content

piemme/cachinggg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cachinggg

Module for simple key/value store, with just one key. It'a wrapper around node-persist, in sync mode.

Install

npm install @piemme/cachinggg --save

API


put(someStuff)

get()

refresh(someStuff)

answer(clear)

disable

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()
})

License

MIT

About

node js module, wrapper around node-persist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published