Skip to content

Commit

Permalink
cache: reset MinCapacity to BucketCount * 256
Browse files Browse the repository at this point in the history
  • Loading branch information
qianbin committed May 4, 2022
1 parent 21bac7b commit 6485a30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const (
// BucketCount is the count of buckets in a Cache instance.
BucketCount = 256
// MinCapacity is the minimum capacity in bytes of the Cache.
MinCapacity = 1024 * 1024
MinCapacity = BucketCount * 256
)

// Cache caches key-value entries of type []byte.
Expand Down

0 comments on commit 6485a30

Please sign in to comment.