abstracting redis