As other people have said, you don't actually need to do anything here. Your computer automatically uses up as much as possible memory as cache.
8Gb of RAM is lots, so most of the time, 5-6GB of that memory is probably being used purely for cache, all without you even having to bat an eyelid :D