Enable transactions for persistent storage
This commit is contained in:
parent
58307c9743
commit
1bc26951f7
|
@ -4,7 +4,7 @@ import org.mapdb.DBMaker
|
|||
import org.mapdb.Serializer
|
||||
|
||||
object Dao {
|
||||
private val db = DBMaker.fileDB("kagebot.db").checksumHeaderBypass().fileMmapEnable().closeOnJvmShutdown().make()
|
||||
private val db = DBMaker.fileDB("kagebot.db").checksumHeaderBypass().fileMmapEnable().transactionEnable().closeOnJvmShutdown().make()
|
||||
private val prisoners = db.hashMap("timeout", Serializer.LONG, Serializer.LONG_ARRAY).createOrOpen()
|
||||
private val commands = db.hashMap("commands", Serializer.STRING, Serializer.INTEGER).createOrOpen()
|
||||
private val tempVcs = db.hashSet("vcs", Serializer.STRING).createOrOpen()
|
||||
|
|
Loading…
Reference in New Issue
Block a user