You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
254 B
Go

package ckey
import "fmt"
func userKey(format string, a ...any) string {
return User + fmt.Sprintf(format, a...)
}
// UserStoreOnce 一个账号并发创建锁
func UserStoreOnce(username string) string {
return userKey("store_once:%s", username)
}