Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/segment-boneyard/memoize-async
Memoize the result of async functions for node and component
https://github.com/segment-boneyard/memoize-async
Last synced: about 7 hours ago
JSON representation
Memoize the result of async functions for node and component
- Host: GitHub
- URL: https://github.com/segment-boneyard/memoize-async
- Owner: segment-boneyard
- Created: 2013-06-10T07:46:50.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-10-22T23:51:31.000Z (about 11 years ago)
- Last Synced: 2024-04-09T16:31:12.067Z (7 months ago)
- Language: JavaScript
- Size: 109 KB
- Stars: 4
- Watchers: 38
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# memoize-async
Memoize the results of async functions
## Installation
$ component install segmentio/memoize-async
## API
```javascript
var memoize = require('..');User.get = memoize(User.get);
User.get('[email protected]', function (err, user) {
// do some stuff
});// ... later we will immediately get the user
User.get('[email protected]', function (err, user) {
});
```
## License
MIT