http, cache: Track evictions

This commit is contained in:
Martin Polden
2020-09-11 21:55:09 +02:00
parent b7ed233452
commit 832f3655e8
4 changed files with 34 additions and 16 deletions

View File

@ -187,7 +187,7 @@ func TestCacheHandler(t *testing.T) {
if err != nil {
t.Fatal(err)
}
want := `{"size":0,"capacity":100}`
want := `{"size":0,"capacity":100,"evictions":0}`
if got != want {
t.Errorf("got %q, want %q", got, want)
}