An open API service indexing awesome lists of open source software.

https://github.com/brightleaf/cache

Redis cache module
https://github.com/brightleaf/cache

javascript performance redis

Last synced: 10 months ago
JSON representation

Redis cache module

Awesome Lists containing this project

README

          

# Cache

[![npm version](https://badge.fury.io/js/%40brightleaf%2Fcache.svg)](https://badge.fury.io/js/%40brightleaf%2Fcache)

Redis cache module.

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

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

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