Write to redis