Class HashNodeCache
A class used for internally caching hashed nodes of MerkleTries.
Inheritance
System.Object
HashNodeCache
Namespace: Libplanet.Store
Assembly: Libplanet.Store.dll
Syntax
public class HashNodeCache : object
Methods
| Improve this Doc View SourceAddOrUpdate(HashDigest<SHA256>, IValue)
A class used for internally caching hashed nodes of MerkleTries.
Declaration
public void AddOrUpdate(HashDigest<SHA256> hash, IValue value)
Parameters
| Type | Name | Description |
|---|---|---|
| HashDigest<SHA256> | hash | |
| IValue | value |
TryGetValue(HashDigest<SHA256>, out Nullable<IValue>)
A class used for internally caching hashed nodes of MerkleTries.
Declaration
public bool TryGetValue(HashDigest<SHA256> hash, out IValue? value)
Parameters
| Type | Name | Description |
|---|---|---|
| HashDigest<SHA256> | hash | |
| System.Nullable<IValue> | value |
Returns
| Type | Description |
|---|---|
| System.Boolean |