I was able to flash all keys from terminal using redis-cli flushdb
. I have been searching for a while, took me an hour in order to find the simple command to do it in php.
I didn't find it on stackoverflow so I wanted to post it to save someone precious time.
Library Used: Predis