looking for light-weight data persistence solution in perl

后端 未结 6 1443
离开以前
离开以前 2021-02-14 11:29

In my app I need to store some simple data both in memroy and in disk. A real database will be overkill in my case, so I need lighter one to handle the simple data persistence r

6条回答
  •  礼貌的吻别
    2021-02-14 11:58

    Storable lets you serialize any Perl data structure and read it back in. For in-memory storage, just use IO::Scalar to store into a string, that way you only need to write the code once and for writing to disk you just pass in another I/O handle.

提交回复
热议问题