ghosx

Results 3 comments of ghosx

如果某条记录被访问了,则移动到队尾,代码中的队首队尾搞反了吧 ``` func (c *Cache) Get(key string) (value Value, ok bool) { if ele, ok := c.cache[key]; ok { c.ll.MoveToFront(ele) kv := ele.Value.(*entry) return kv.value, true } return } ```

Do you have reproducible code and screenshots?