adding redis api