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.

15 lines
329 B
Go

package ckey
import "fmt"
func dataCacheKey(format string, a ...any) string {
return DataCache + fmt.Sprintf(format, a...)
}
func DataUserAppReward(cpnId int64, mark string) string {
if mark == "" {
return dataCacheKey("data_user_app_reward_%d", cpnId)
}
return dataCacheKey("data_user_app_reward_%d:%s", cpnId, mark)
}