MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / GenerateCountCacheKey

Method GenerateCountCacheKey

internal/repository/cache/check.go:175–177  ·  view source on GitHub ↗

GenerateCountCacheKey 生成审核记录数量的缓存键

()

Source from the content-addressed store, hash-verified

173
174// GenerateCountCacheKey 生成审核记录数量的缓存键
175func (c *checkCache) GenerateCountCacheKey() string {
176 return "linkme:check:count"
177}
178
179// randomInt 生成 min 到 max 之间的随机整数,用于随机化 TTL
180func randomInt(min, max int) int {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected