优化ttlcache

This commit is contained in:
GoEdgeLab
2022-04-09 18:28:22 +08:00
parent f8d14d879f
commit bad1e42ff6
10 changed files with 259 additions and 90 deletions

View File

@@ -24,7 +24,7 @@ type Cache struct {
}
func NewCache(opt ...OptionInterface) *Cache {
var countPieces = 128
var countPieces = 256
var maxItems = 2_000_000
var totalMemory = utils.SystemMemoryGB()