has anyone used mapdb as a state store in spring boot for a request lifecycle ? I mean set things like "isDebug", etc in mapdb for the particular request and then clear it out at the end of the request ?
mapdb sounds very much like how Redux, etc is used in React, so im trying to leverage similar patterns.
if you have done so, how do you manage the flushing of data at the end of a request, etc ?
The documentation of MapDb is rather sparse, but at a first glance
DB.close()seems to close the current transaction and write data to files, if it is actually backed by a file, which I guess you mean by "flushing".Of course this begs the question why you would want to perma
I'd assume it destroys an in memory database
Note: Just as M. Deinum I don't really see what you expect to gain from using mapdb.