I'm looking for something that will allow me to have a store that is persisted on-disk, probably fully loaded into memory, and allows me to store key-value pairs where the value is an integer that can be atomically incremented and decremented or else compare-and-swapped.
I'm not finding anything immediately, does anybody have any suggestions?
Ah, yeah, I just realized that write transactions in redb block, so that would make it safe to manually increment a value during the transaction. Since the Iroh crate I'm using also uses redb, that's probably my best option.