I'm looking for some sort of persistent hash, or object store for ruby.
I just need some advice about what works well & doesn't, so I don't
attempt to *re-invent the wheel.
I'd be using it for a some small client-server apps, maybe web front
end, maybe not, but either way, I'm guessing multiple processes will
want to access the data simultaneously.
The options I've come up with are
1 DBM/SDBM + YAML
2 PStore
3 Marshall
4 ActiveRecord
1 I really didn't see much in the way of DBM/SDBM documentation, but
may be I was looking in the wrong places. All the same, I can see
pretty easily how I could do something like a persistent hash by
combining yaml and DBM, but it does make me wonder, has anyone already
done something like that?
2 PStore seems a little clunky, but rather effective: How is it with
medium sized data sets (hashes of a few thousand elements)? How is
over the longer term, data resiliency wise?
3 Marshalling and un-marshalling I know will work, but at the same
time it seems... well a bit prosaic.
4 ActiveRecord I know will work, and I've played with before, but I
really don't like how it forces you to hammer your data structure into
it's mold.
*yes re-inventing the wheel is a time honored and important past-time
for programmers. It's fun, it teaches you things, but when you really
want to work on another part of a project, you have to force yourself
not to.