This commit is contained in:
zhaoxiaorong
2025-02-07 13:01:38 +08:00
parent ebcdfe1ee8
commit 57a0d8ae81
52 changed files with 3313 additions and 0 deletions

11
vars/cache.go Normal file
View File

@@ -0,0 +1,11 @@
package vars
import "time"
var (
// cache def value
MemGcDuration time.Duration = 10 * time.Minute
MemLRUMaxNumber int = 1024
MemShardings int = 64
RedisShardings int = 256
)