add a function to output the redis transfer command