It will basically take anything that is read from disk and store it in RAM, so that it doesn't have to be read from disk a second time. A cache. Reading from memory is faster than reading from disk (even with today's speedy SSDs). Pretty much all modern operating systems do this (Windows/Linux/macOS). The oldest stuff in the RAM disk cache will be chucked if the system needs memory for anything else.