jvmMain.RaptorKeyValueStoreFactory.kt Maven / Gradle / Ivy
package io.fluidsonic.raptor.keyvaluestore
import kotlin.reflect.*
public interface RaptorKeyValueStoreFactory {
public fun create(
name: String,
keyClass: KClass,
valueClass: KClass,
): RaptorKeyValueStore
public companion object
}
public inline fun RaptorKeyValueStoreFactory.create(name: String): RaptorKeyValueStore =
create(name = name, keyClass = Key::class, valueClass = Value::class)