2.0.0 • Published 4 years ago

@brightleaf/cache v2.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

Cache

npm version

Redis cache module.

const Cache = require('@brightleaf/cache')
const cache = new Cache()

;(async () => {
  const results = await expensiveCall()
  cache.set('results', results)

  const fromCache = await cache.get('results')
})()