completed the redis API