In psychology, short-term memory is the ability to store information for a short period of time, while long-term memory is the ability to store information for a longer period of time:
Short-term memory
This type of memory lasts for 15–30 seconds, and can hold around seven pieces of information at a time. It's often described as the brain's "working space" and is used for tasks like language comprehension and reasoning.
Long-term memory
This type of memory lasts for weeks, months, or years, and has an essentially unlimited capacity. It stores a person's knowledge, events, facts, rules, and concepts.
Short-term memories are more vulnerable to disruption than long-term memories. For example, if someone is in a car accident and loses consciousness, they may not remember the events that led up to the accident. However, long-term memories are not affected by these types of events.
Mnemonics, such as rhymes, abbreviations, or phrases, can help move information from short-term memory to long-term memory.