aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/config
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-03-12 11:03:25 -0700
committerAnton Tananaev <anton@traccar.org>2023-03-12 11:03:25 -0700
commit08612944b879861c37b34688e0e9ef2d4a8c11a2 (patch)
treee6811c830a51dde18d6b5ef719af368003e6ea48 /src/main/java/org/traccar/config
parent4fc5d0b58b3667ee1bb81515deef6440225af76b (diff)
downloadtrackermap-server-08612944b879861c37b34688e0e9ef2d4a8c11a2.tar.gz
trackermap-server-08612944b879861c37b34688e0e9ef2d4a8c11a2.tar.bz2
trackermap-server-08612944b879861c37b34688e0e9ef2d4a8c11a2.zip
Implement memory storage
Diffstat (limited to 'src/main/java/org/traccar/config')
-rw-r--r--src/main/java/org/traccar/config/Keys.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/config/Keys.java b/src/main/java/org/traccar/config/Keys.java
index 6aa41f85b..1b4b3a5b4 100644
--- a/src/main/java/org/traccar/config/Keys.java
+++ b/src/main/java/org/traccar/config/Keys.java
@@ -386,6 +386,13 @@ public final class Keys {
25.0);
/**
+ * Enable in-memory database instead of an SQL database.
+ */
+ public static final ConfigKey<Boolean> DATABASE_MEMORY = new BooleanConfigKey(
+ "database.memory",
+ List.of(KeyType.CONFIG));
+
+ /**
* Path to the database driver JAR file. Traccar includes drivers for MySQL, PostgreSQL and H2 databases. If you use
* one of those, you don't need to specify this parameter.
*/