0.1.2 • Published 6 years ago
funcacher v0.1.2
funcacher
Install
$ yarn add funcacher
Usage
const Funcacher = require('funcacher')
const cache = new Funcacher({
ioredis = ioredis, // ioredis client with your config
expires = 60 // cache expires
})
const result = await longSQLQuery()
// cache it
const cachedResult = await cache.get('cache-key', longSQLQuery)
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Author
funcacher © zcong1993, Released under the MIT License. Authored and maintained by zcong1993 with help from contributors (list).
github.com/zcong1993 · GitHub @zcong1993