You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gee-cache/day1-lru/geecache/lru/lru_test.go中的 20-21 行,
if _, ok := lru.Get("key2"); ok {
t.Fatalf("cache miss key2 failed")
}
这里应该是!ok吧?返回false才代表没命中缓存。
The text was updated successfully, but these errors were encountered:
gee-cache/day1-lru/geecache/lru/lru_test.go中的 20-21 行,
if _, ok := lru.Get("key2"); ok {
t.Fatalf("cache miss key2 failed")
}
这里应该是!ok吧?返回false才代表没命中缓存。
The text was updated successfully, but these errors were encountered: