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
MemoryKeyValueStore
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
|
Improve this Doc
View Source
IKeyValueStore.Get(Byte[])
Declaration
byte[] IKeyValueStore.Get(byte[] key)
Parameters
Type |
Name |
Description |
Byte[] |
key |
|
Returns
|
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
IDisposable