copy the files you want to it, then copy things back when done.The simplest option is probably to mount a tmpfs filesystem and
eg:
# mkdir /ramdisk
# mount -t tmpfs tmpfs /ramdisk
# cp -R /somedir /ramdisk
the tmpfs will grow and shrink as necessary, so watch out if you
put too much data on there and use up all your ram...