1.0.0 • Published 6 years ago
one-cache v1.0.0
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())
})
1.0.0
6 years ago