tuweni / org.apache.tuweni.trie / StoredMerklePatriciaTrie / clearCache

clearCache

fun clearCache(): Unit (source)

Forces any cached trie nodes to be released, so they can be garbage collected.

Note: nodes are already stored using java.lang.ref.SoftReference's, so they will be released automatically based on memory demands.