1.0.5 • Published 5 years ago

xhr-cache-with-ttl v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 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

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago