lisaogren / axios-cache-adapter

Caching adapter for axios. Store request results in a configurable store to prevent unneeded network requests.
MIT License
725 stars 108 forks source link

Custom Invalidate Function - Type Error on removeItem, uuid #271

Open KumarSumitD opened 2 years ago

KumarSumitD commented 2 years ago

Hi, As per the Readme https://github.com/RasCarlito/axios-cache-adapter/blob/master/README.md?plain=1#L366. Custom invalidate function can be defined and the cache can be busted by - await config.store.removeItem(config.uuid)

There are two types issue -

We can try making as unknow as any and as any, but this will error prone. So if we correct types for both.

arthurfiorette commented 1 year ago

Hey, axios-cache-adapter unmaintained, axios-cache-interceptors offers this same feature for less problems :)

I'm the maintainer of https://axios-cache-interceptor.js.org, you should check it out...