@brightleaf/cache

Redis cache module.

Usage no npm install needed!

<script type="module">
  import brightleafCache from 'https://cdn.skypack.dev/@brightleaf/cache';
</script>

README

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