# MapDB Quick Start Tutoriel

# Pourquoi MapDB

# Installation avec maven

<dependencies>
  <dependency>
    <groupId>org.mapdb</groupId>
    <artifactId>mapdb</artifactId>
    <version>3.0.8</version>
  </dependency>
</dependencies>
1
2
3
4
5
6
7

# Map

@Test
public void createFileDB(@TempDir Path tempDir) {
  Path dbPath = tempDir.resolve("store.mapdb");
  DB db =
      DBMaker.fileDB(dbPath.toFile().getAbsolutePath())
          .checksumHeaderBypass()
          .fileMmapEnable()
          .fileMmapPreclearDisable()
          .cleanerHackEnable()
          .fileDeleteAfterClose()
          .make();
}
1
2
3
4
5
6
7
8
9
10
11

# En mémoire (in memory)

# Fichier

# Cache

# Callbacks

Dernière mise à jour: 4/6/2022, 8:36:36 PM