I\'d like to store a data structure persistently in RAM and have it accessible from pre-forked web server processes in Perl.
Ideally I would like it to behave like memc
Use Cache::FastMmap and all you need is a file. It uses mmap to provide a shared in-memory cache for IPC, which means it is quite fast. See the documentation for possible issues and caveats.