根据系统内存自动调节ttlcache的最大条目

This commit is contained in:
刘祥超
2021-10-04 09:12:17 +08:00
parent 1ca967534a
commit 3888565c0f
6 changed files with 55 additions and 4 deletions

View File

@@ -0,0 +1,11 @@
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package ttlcache
import "testing"
func TestSystemMemoryGB(t *testing.T) {
t.Log(systemMemoryGB())
t.Log(systemMemoryGB())
t.Log(systemMemoryGB())
}