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
- Host: GitHub
- URL: https://github.com/brightleaf/cache
- Owner: brightleaf
- Created: 2019-04-28T01:34:11.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T17:50:44.000Z (over 3 years ago)
- Last Synced: 2024-12-26T15:37:04.745Z (over 1 year ago)
- Topics: javascript, performance, redis
- Language: JavaScript
- Homepage: https://brightleaf.github.io/cache
- Size: 812 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Cache
[](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')
})()
```