Add retention to the Redis client.

Sorry about the commit noise. I must have forgotten to do a pull for a long time.