core/vars/cache.go

18 lines
363 B
Go
Raw Normal View History

2025-02-07 13:01:38 +08:00
package vars
import "time"
var (
// cache def value
MemGcDuration time.Duration = 10 * time.Minute
MemLRUMaxNumber int = 1024
MemShardings int = 64
RedisShardings int = 256
2025-10-03 19:55:20 +08:00
// CacheKeyPrefix 缓存键前缀
CacheKeyPrefix = "bsm:"
// DefaultTTL 默认缓存过期时间
DefaultTTL = 30 * time.Minute // 30分钟
2025-02-07 13:01:38 +08:00
)