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