one-cache
v1.0.0
Published
Isomorphic caching for network calls
Downloads
2
Maintainers
Readme
One Cache
Isomorphic caching for network calls
- You're developing against an API
- You don't want to be rate-limited
- You're developing isomorphically or just don't care 😎
Install
yarn add one-cache
Usage
let json = oneCache('my-users-cache', () => {
return fetch('some-api.foo/users')
.then(response => response.json())
})