decred / dcrwallet

A secure Decred wallet daemon written in Go (golang).
https://decred.org
ISC License
211 stars 153 forks source link

lru: Implement Map type #2343

Closed jrick closed 2 months ago

jrick commented 3 months ago

Map is like Cache but records both a key and a value.

A new Get method is added to receive the value for a key, if present. When found, the item is moved to the front of the most-recently-used list. Another method Hit is similar, marking the item (if any) as the most recently used, but discards the value.