redis master and slave example commit