CLI tool to locally cache API responses with file based caching strategy.
Install the package globally with a node package manager.
npm i --global @shubhamkv/caching-proxy-cliUse the start command to start the proxy caching server, it requires the url
of the origin server and a port number for the proxy server:
caching-proxy start https://example.com -p 4000This will start the caching proxy server on the specified port & cache the responses.
Closing the terminal should stop the running proxy server.
Use the clear-cache command to clear the entire cache of the proxy server:
caching-proxy clear-cacheThanks to Roadmap.sh | Caching Proxy CLI.