If I don't understand what you are saying, you are referring to the RAM memory, right? because this is precisely the memory that fulfills this function, if you were not referring to the RAM memory, I honestly do not know what you are referring to.
That would be RAM (Random Access Memory). It’s volatile, meaning all stored data is lost when the computer is powered off, unlike non-volatile memory like hard drives or SSDs that retain data.