Commit (something) to memory

To memorize something.

I worked hard to commit the names to memory.