0.0.3 • Published 9 months ago

req-cacher v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

req-cacher

一个方便易用的npm包,用于将HTTP请求缓存起来,以避免重复请求和提高应用程序的性.

demo

import { CacheFetch } from 'req-cacher'
import axios from 'axios'
let cacheFetch = new CacheFetch(1000)

export default { getOptions (params) { return cacheFetch.fetch({ url: portUri.options, method: 'get', params }, axios) } }

0.0.3

9 months ago

0.0.2

11 months ago

0.0.1

1 year ago