All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmMain.MemoryKeyValueStoreFactory.kt Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy