I'm looking into using BerkeleyDB Java Edition for a project. I've only read some of the documentation so far (not written any code) but it looks like a good match.
One of the functions I would like is an append-only log for a particular key. e.g.
«my key» => «snapshot 1»
=> «snapshot 2»
=> «snapshot 3»
The Duplicate Data items documentation looks like if I set the DB_DUP
flag I can write a number of items for a key (in configurable order) and then retrieve them with a cursor.
Is this a sensible / suitable use for BerkeleyDB?
(I do have other reasons for wanting to use BerkeleyDB in the project, this isn't my primary use case. I am aware of all of the capabilities in Redis but in-memory isn't suitable)