I need a small unstructured database for my Ruby scripts. Not Sqlite, something more like a persistent hashtables would work perfectly, as long as it can store basic Ruby structures (arrays, strings, hashes etc. - all serializable) and won't get corrupted when Ruby scripts crash.
I know there's plenty of solutions like that for Perl with Tie::Hash, so there's probably some gem like that for Ruby. What gem would that be?
EDIT: As far as I can tell PStore and yaml solutions are based on reading, unmarshaling, remarshaling and writing entire database on every change. That not only requires all of it to fit memory, it's O(n^2). So neither of them seem like a particularly good solution.