fixed missing frontload on read

This commit is contained in:
Brannon King 2021-07-20 11:36:06 -04:00
parent d74924992a
commit b6cf5f2665

View file

@ -48,6 +48,7 @@ func newNodeCache(size int) *nodeCache {
func (nc *nodeCache) Get(key string) *Node {
element := nc.elements[key]
if element != nil {
nc.data.MoveToFront(element)
return element.Value.(nodeCacheLeaf).node
}
return nil