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.
See the code
MapDB combines embedded database engine and Java collections. It is free under Apache 2 license. MapDB is fplexible and can be used in many roles:
<dependency>
<groupId>org.mapdb</groupId>
<artifactId>mapdb</artifactId>
<version>VERSION</version>
</dependency>
Hello world:
//import org.mapdb.*
DB db = DBMaker.memoryDB().make();
ConcurrentMap map = db.hashMap("map").make();
map.put("something", "here");
Continue at Quick Start or at Documentation.
More details.
MapDB is written in Kotlin. You will need Intellij Idea 15 Community Edition to edit it.
Use Maven to build MapDB: mvn install
MapDB comes with extensive unit tests, by default only tiny fraction is executed, so build finishes under 10 minutes.
Full test suite has over million test cases and runs several hours/days.
To run full test suite set -Dmdbtest=1 property.
(top 24 of 70)
504 followers · starred Aug 2012
503 followers · starred Aug 2012
1,450 followers · starred Apr 2018
180 followers · starred Aug 2013
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.
See the code
MapDB combines embedded database engine and Java collections. It is free under Apache 2 license. MapDB is fplexible and can be used in many roles:
<dependency>
<groupId>org.mapdb</groupId>
<artifactId>mapdb</artifactId>
<version>VERSION</version>
</dependency>
Hello world:
//import org.mapdb.*
DB db = DBMaker.memoryDB().make();
ConcurrentMap map = db.hashMap("map").make();
map.put("something", "here");
Continue at Quick Start or at Documentation.
More details.
MapDB is written in Kotlin. You will need Intellij Idea 15 Community Edition to edit it.
Use Maven to build MapDB: mvn install
MapDB comes with extensive unit tests, by default only tiny fraction is executed, so build finishes under 10 minutes.
Full test suite has over million test cases and runs several hours/days.
To run full test suite set -Dmdbtest=1 property.
(top 24 of 70)
504 followers · starred Aug 2012
503 followers · starred Aug 2012
1,450 followers · starred Apr 2018
180 followers · starred Aug 2013