Memorizing openings is a waste of time unless/until you have a shot at good enough to make a living playing chess - about 1000 people and most of them live in poor countries where cost of living means they don't need to earn much to live.
learn your tactics and end games instead.