1.0.5 • Published 4 years ago

xhr-cache-with-ttl v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

xhr-cache-with-ttl

Helper function to enable Local Storage caching of XHR requests in a browser with a specified TTL

Usage

import {xhrCache} from 'xhr-cache-with-ttl'
const result = await xhrCache('get', url, {ttl: 45})

This library uses Axios, so all methods available to Axios are available here, although generally you'll be using get

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago