first you should be clear if you want a cache or fast storage, storage cannot be at the same time used as a cache and as storage too.
you did not mention what should happen in the case if you delete a file from the ram storage part when it is full and there are files on ssd
- should the files move automatically from ssd (even partial?)
- or stay at current location
and what about the case of a file partially spilling over to ssd?
- should it be whole on ssd
- or partially on ramdisk
maybe have a read http://blog-vpodzime.rhcloud.com/?p=45
my suggestion is : use ssd space as filesystem and leave memory free - it will be automatically used as file cache by OS
another possibility is using ZFS on ssd, then set ARC size to desired memory cache size