kv / org.apache.tuweni.kv / MapKeyValueStore / open

open

@JvmStatic fun open(): MapKeyValueStore (source)

Open an in-memory key-value store.

This store will use a java.util.HashMap as a backing store.

Return
A key-value store.

@JvmStatic fun open(map: MutableMap<Bytes, Bytes>): MapKeyValueStore (source)

Open an in-memory key-value store.

Parameters

map - The backing map for this store.

Return
A key-value store.