echo -e "select 0\n flushdb\n select 1\n flushdb\n" | redis-cli

 

Сисадмин