updated redis handling