redis wait and legacy version