Fix update_meta, do not update empty fields and uptodate fields value
remove some unused gems
move ENV for redis to initializer, also explicitly cast to int
fix value-type assertion