mount -t ramfs -o size=50m ramfs /ramcache
This is a good resource:
http://www.thegeekstuff.com/2008/11/overview-of-ramfs-and-tmpfs-on-linux/