Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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