Looking for a Perl module to store a Hash structure in shared RAM

后端 未结 3 1753
情书的邮戳
情书的邮戳 2021-02-06 12:59

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

3条回答
  •  遥遥无期
    2021-02-06 13:34

    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.

提交回复
热议问题