func(lru *Lru)Set(k, v interface{})error { if lru.dlist == nil { return error.New("lrucache need init") }
//key exist, movetoFront, update value if pElement, ok := lru.cacheMap[k]; ok { lru.dlist.MoveToFront(pElement) pElement.Value.(*CacheNode).Value = v returnnil }