You can set up partitions on your memory. So if you get a 8gb you can partition 4 for a game, web browser, etc.
It caches whatever you want to use it for. It will clear when you reboot, but it will be put back on.
Bottom line:
Pretty much you can use your ram as a storage device, but being a lot faster than a SSD.