Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoSimplicity/LinkMe
/ generateLockKey
Function
generateLockKey
internal/repository/cache/lotteryDraw.go:347–349 ·
view source on GitHub ↗
generateLockKey 生成分布式锁的键
(key string)
Source
from the content-addressed store, hash-verified
345
346
// generateLockKey 生成分布式锁的键
347
func
generateLockKey(key string) string {
348
return
fmt.Sprintf(
"%s%s"
, lockKeyPrefix, key)
349
}
Callers
2
GetLotteryDrawWithLock
Method · 0.85
GetSecondKillEventWithLock
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected