'how to clear cache in apicache when bodyform data change?

Am using apicache (https://www.npmjs.com/package/apicache) package to store the server-side cache. whenever the API is called the first time that will store the cache and send the same response for that API call for the next 5 minutes. But based on the parameter change in the body form data I have to clear the cache and send a response from database data.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source