I donโt immediately care about the fifo or filo options, but in the future it may be nice.
What I'm looking for is a quick, quick, easy way to store (no more than one gigabyte of data or tens of millions of records) on disk, which can be obtained and installed by several processes. Entries are just 40 byte strings, not python objects. Not all shelve functionality is needed.
I saw this http://code.activestate.com/lists/python-list/310105/ It looks simple. It must be updated to the new version of Queue.
I wonder if something is better? I am concerned that in the event of a power failure, the entire pickled file becomes corrupt, not just one record.
source share