How to save list items on disk instead of memory in Java

前端 未结 7 2048
眼角桃花
眼角桃花 2020-12-09 06:50

I\'m looking for a data structure same as ArrayList in Java that saves items on disk instead of memory. Does java have such a data structure? Thanks

I want to have a

7条回答
  •  旧时难觅i
    2020-12-09 07:14

    MapDB (mapdb.org) is a library that persists java objects to disk in various collections: Sets, Maps, Queues.

    It supports caching so you can have your most frequent items in memory.

提交回复
热议问题