In this post I will show you the easiest way to Clear/Flush Redis Cache & Memcache Data what we are usually do in Magento cache server. It will be the same for hosting if you use for wordpress or joomla.
1. Clear/Flush Memcached
With memcached we will clear/flush cache via telnet like this
$ telnet 127.0.0.1 11211 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. flush_all OK quit Connection to localhost closed by foreign host. $
2. Clear/Flush Redis cache
With redis we flush cache via redis-cli
$ redis-cli $redis> flushall OK $redis> exit
If you look at more about redis document you will see these tips
FLUSHDB - Removes data from your connection's CURRENT database. FLUSHALL - Removes data from ALL databases.
That ‘s all, it ‘s quite easy to do. Hope it ‘s useful for you. Thanks and welcome any comment.