Redis utils: add the function to get the redis master slave chain.