Class HashNodeCache
A class used for internally caching hashed nodes of MerkleTries.
Inherited Members
System.Object.GetType()
System.Object.ToString()
Namespace: Libplanet.Store
Assembly: Libplanet.Store.dll
Syntax
public class HashNodeCache
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 | |
| Bencodex.Types.IValue | value |
TryGetValue(HashDigest<SHA256>, out 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 | |
| Bencodex.Types.IValue | value |
Returns
| Type | Description |
|---|---|
| System.Boolean |