Skip to content

Commit

Permalink
add support for MapDBStore, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Sep 5, 2020
1 parent a5c726f commit f29bdd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'kweb'
version '0.4.0'
version '0.4.1'

buildscript {
ext.kotlin_version = '1.4.0'
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/kweb/shoebox/stores/MapDBStore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import org.mapdb.Serializer
* Created by ian on 3/22/17.
*/
@ExperimentalSerializationApi
class MapDBStore<T : Any>(val db: DB, val name: String, val serializer: KSerializer<T>) : Store<T> {
class MapDBStore<T : Any>(private val db: DB, private val name: String, private val serializer: KSerializer<T>) : Store<T> {
private val map: HTreeMap<String, ByteArray> = db
.hashMap(name, Serializer.STRING, Serializer.BYTE_ARRAY)
.createOrOpen()
Expand Down

0 comments on commit f29bdd0

Please sign in to comment.