And here is the code I have in order to migrate to axios-cache-interceptor:
const axios = require('axios')
const { setupCache } = require('axios-cache-interceptor')
const axiosInstance = axios.create()
const api = setupCache(axiosInstance, { /* here I would like to set maxAge just like I did with `axios-cache-adapter` */ })
Hi! I was using
axios-cache-adapter
and now I want to migrate toaxios-cache-interceptor
.Here is the code I have to handle
axios-cache-adapter
+axios
:And here is the code I have in order to migrate to
axios-cache-interceptor
:Can someone help me? Thanks