I'm trying to delete all keys on both redis master and slave, but when I'm executing flushall
or flushdb
from redis-cli
on master it deletes keys only on master, or vice versa if I'm deleting keys on slave it deletes keys only on slave.
What command should I use to delete all keys both on master and slave(s)?
Do I need to enable cluster support for this? Cause now it is desabled in my setup.
One more question, why there is no replication in case of using flushall
or flushdb
from redis-cli
?