mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-12-02 05:50:25 +08:00
根据系统内存自动调节ttlcache的最大条目
This commit is contained in:
11
internal/ttlcache/system_test.go
Normal file
11
internal/ttlcache/system_test.go
Normal 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())
|
||||
}
|
||||
Reference in New Issue
Block a user