优化ttlcache

This commit is contained in:
刘祥超
2022-04-09 18:28:22 +08:00
parent 02469f2886
commit ded2f98cce
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()