I have Replication with x slaves and 1 master.. I want that slaves can have their own local keys, this is already working... i want have the ability to delete that local keys from master with DEL <key>.
My issue is that since master does not have this <key> locally, it does not send the DEL command across all slaves. This is obviously a smart way of optimization. But is there a way to send all commands to all slaves even without having this key on master? I have tried with eval(...redis.call...), this also did the same.
thanks
Comment From: oranagra
Redis is not designed or meant to handle such a thing.
You can currently achieve that by setting the lua-replicate-commands config to no, which will cause the script to be propagated as a script to the replicas (if it did at least one modification on the master) rather than propagating the commands it executed.
But note that we intend to completely remove script propagation in the next version of Redis (7.0)