You can remember the meaning of 记忆 with this easy mnemonic:
I can't remember (记) my address no matter how many times I try to memorize it. At this point, it's a miracle I even remember (忆) my name!
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.