Show / Hide Table of Contents

Class MemoryKeyValueStore

Volatile in-memory key-value store.

It is useful for storing temporal small chains, e.g., fixtures for unit tests of game logic.

Inheritance
Object
MemoryKeyValueStore
Implements
IKeyValueStore
IDisposable
Namespace: Libplanet.Store.Trie
Assembly: Libplanet.dll
Syntax
public sealed class MemoryKeyValueStore : object, IKeyValueStore, IDisposable

Explicit Interface Implementations

| Improve this Doc View Source

IKeyValueStore.Delete(Byte[])

Declaration
void IKeyValueStore.Delete(byte[] key)
Parameters
Type Name Description
Byte[] key
| Improve this Doc View Source

IKeyValueStore.Exists(Byte[])

Declaration
bool IKeyValueStore.Exists(byte[] key)
Parameters
Type Name Description
Byte[] key
Returns
Type Description
Boolean
| Improve this Doc View Source

IKeyValueStore.Get(Byte[])

Declaration
byte[] IKeyValueStore.Get(byte[] key)
Parameters
Type Name Description
Byte[] key
Returns
Type Description
Byte[]
| Improve this Doc View Source

IKeyValueStore.ListKeys()

Declaration
IEnumerable<byte[]> IKeyValueStore.ListKeys()
Returns
Type Description
IEnumerable<Byte[]>
| Improve this Doc View Source

IKeyValueStore.Set(Byte[], Byte[])

Declaration
void IKeyValueStore.Set(byte[] key, byte[] value)
Parameters
Type Name Description
Byte[] key
Byte[] value

Implements

IKeyValueStore
IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2021 Planetarium