内存缓存增加最大数量限制

This commit is contained in:
GoEdgeLab
2021-09-19 16:11:46 +08:00
parent 6201de75e9
commit 8e76e53283
2 changed files with 2 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ type Cache struct {
func NewCache(opt ...OptionInterface) *Cache {
countPieces := 128
maxItems := 1_000_000
maxItems := 10_000_000
for _, option := range opt {
if option == nil {
continue