Show / Hide Table of Contents

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 Source

AddOrUpdate(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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium