jankotek / mapdb

MapDB provides concurrent Maps, Sets and Queues backed by disk storage or off-heap-memory. It is a fast and easy to use embedded Java database engine.
https://mapdb.org
Apache License 2.0
4.89k stars 873 forks source link

Insertion Order Persistence #1035

Closed qasimleoo closed 9 months ago

qasimleoo commented 10 months ago

Hey @jankotek. I hope you are doing well. I was storing the cache using Evicting Queue. When I redeploy my website, it clears the queue (cache). To handle the scenario, I am trying to replace the evicting Queue with Map DB to persist data in disk storage, but neither Btreemap nor Htreemap persists in the insertion order. So is there any data structure in MapDB that persists the insertion order?

qasimleoo commented 9 months ago

Solved using IndexTreeList.