Bagwell’s VHashes are the best going, but they’re only purely functional in interface, not in implementation; and if you want to update an association for a key that’s already in the table, your options are to accept the space leak from keeping the old value around, or do an O(n) rewrite of the hash to get rid of it
If you actually want a permanent history of associations, there’s probably nothing better. I still want to make a bitemporal key-value database based on an on-disk vhash one day