wsy6543

Results 1 comments of wsy6543

this is shit,set twice and get nil func TestTinyLFU(t *testing.T) { lfu := cache.NewTinyLFU(100, 300) lfu.Set("a", []byte("a")) lfu.Set("a", []byte("b")) lfu.Set("a", []byte("c")) value, ok := lfu.Get("a") if !ok { t.Errorf("expected=true got=false")...