Extend RedisRepository to accept expiring objects.