Put redis init in condition