File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
model-client/src/commonMain/kotlin/org/modelix/model/client2
model-datastructure/src/commonMain/kotlin/org/modelix/model/persistent Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ import org.modelix.model.lazy.ObjectStoreCache
42
42
import org.modelix.model.lazy.RepositoryId
43
43
import org.modelix.model.lazy.computeDelta
44
44
import org.modelix.model.persistent.HashUtil
45
- import org.modelix.model.persistent.MapBaseStore
45
+ import org.modelix.model.persistent.MapBasedStore
46
46
import org.modelix.model.server.api.ModelQuery
47
47
import org.modelix.model.server.api.v2.VersionDelta
48
48
import kotlin.time.Duration.Companion.seconds
@@ -54,7 +54,7 @@ class ModelClientV2(
54
54
private var clientId: Int = 0
55
55
private var idGenerator: IIdGenerator = IdGeneratorDummy ()
56
56
private var userId: String? = null
57
- private val kvStore = MapBaseStore ()
57
+ private val kvStore = MapBasedStore ()
58
58
val store = ObjectStoreCache (kvStore) // TODO the store will accumulate garbage
59
59
60
60
suspend fun init () {
Original file line number Diff line number Diff line change @@ -18,7 +18,10 @@ package org.modelix.model.persistent
18
18
import org.modelix.model.IKeyListener
19
19
import org.modelix.model.IKeyValueStore
20
20
21
- open class MapBaseStore : IKeyValueStore {
21
+ @Deprecated(" Use MapBasedStore, without a typo." , ReplaceWith (" MapBasedStore" ))
22
+ open class MapBaseStore : MapBasedStore ()
23
+
24
+ open class MapBasedStore : IKeyValueStore {
22
25
private val map: MutableMap <String ?, String ?> = HashMap ()
23
26
override fun get (key : String ): String? {
24
27
return map[key]
You can’t perform that action at this time.
0 commit comments