0.0.5 • Published 6 years ago

valuecache v0.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Build Status

features

  • promise supports
  • ttl support
  • delete and get elements in the form of arrays
  • json format data storage and retrieval

install

npm i --save valuecache@latest

usage

const valuecache = require('valuecache')

const cache = valuecache({
  // redis configuration ..
})

(async () => {
  
  await cache.set('foo', 'bar')
  
  await cache.set('data', {
    foo: "bar"
  })
  
  await cache.get('data')
  
  // { "foo": "bar" }
  
  await cache.get('data')
  
  // "bar"
  
  await cache.get(['foo', 'data'])
  
  // [{ "foo": "bar" }, "bar"]
  
  await cache.del(['foo', 'data'])

})()
0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago