Meaning of the word "commit to memory" in English

What does "commit to memory" mean in English? Explore the meaning, pronunciation, and specific usage of this word with Lingoland.

commit to memory

US /kəˈmɪt tuː ˈmɛməri/
UK /kəˈmɪt tuː ˈmɛməri/

Idiom

to learn something by heart; to memorize something

Example:
Students are expected to commit these historical dates to memory.
I need to commit this poem to memory before the recitation.