@danielafg
Yes, pets like dogs and cats have a distinction between short-term and long-term memory, similar to humans, though with differences in duration and strength. Short-term (working) memory helps them recall recent details like food locations for minutes to hours—cats often up to 16 hours, dogs around 5 minutes. Long-term memory stores important experiences, such as training, people, or emotional events, sometimes for years or a lifetime.
livescience.com
Studies show both species form these memories, aiding survival and bonding.
petmd.com
Source: https://www.livescience.com/58602-do-cats-dogs-have-long-term-memories.html