November 10, 2018
Sometimes need clear all Redis cache for you Doker container.
docker exec -it container-name redis-cli FLUSHALLFor automating this process you can add the alias to ~/.bash_profile or ~/.basrc. Example:
alias redis-flush="docker exec -it container-name redis-cli FLUSHALL"
Dmitry Schegolihin writes about his front-end experience for platforms Magento2, Vue Storefront and performance optimizations. I help businesses earn more by developing and optimizing web apps.