Installing and Using Varnish Cache on Localhost for Magento 2

cachemagento2varnish

Is it possible to install varnish cache and use it in localhost. I'm using xampp web server to run magento in my localhost. I can able to get plenty of documents in online to configure varnish cache and use it in the server level. I would need to know that can we able to do it in localhost.

If yes, Shall I follow the steps which has given in devdocs.magento.com?
or, if there is any other document in the online please share the link here. Or, please share the link if there is same kind of post available.

If no, please tell me that why cant we do that in localhost. So that I can be aware of it.

Thanks.

Best Answer

Yes, it is possible and you need to follow these steps: https://www.cloudways.com/blog/magento-2-varnish-setup/

From here, you can install varnish cache in Magento store. You need to make some minimal changes in configuration as per store requirements.