Skip to content

brightleaf/cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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