jvmMain.MemoryKeyValueStoreFactory.kt Maven / Gradle / Ivy
package io.fluidsonic.raptor.keyvaluestore.memory
import io.fluidsonic.raptor.keyvaluestore.*
import kotlin.reflect.*
private object MemoryKeyValueStoreFactory : RaptorKeyValueStoreFactory {
override fun create(name: String, keyClass: KClass, valueClass: KClass): RaptorKeyValueStore =
MemoryKeyValueStore()
}
public fun RaptorKeyValueStoreFactory.Companion.memory(): RaptorKeyValueStoreFactory =
MemoryKeyValueStoreFactory