缓存条件增加最小内容尺寸配置

This commit is contained in:
刘祥超
2021-09-26 15:01:46 +08:00
parent 5a72c10d83
commit 8d28ba3426
2 changed files with 2 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ func TestNewCache(t *testing.T) {
t.Log(cache.Read("a"))
time.Sleep(2 * time.Second)
t.Log(cache.Read("d"))
t.Log(cache.Count(), "items")
}
func BenchmarkCache_Add(b *testing.B) {