(serverId int64, keys []string, time string, version int32, itemId int64)
| 21 | } |
| 22 | |
| 23 | func UniqueKey(serverId int64, keys []string, time string, version int32, itemId int64) string { |
| 24 | var keysData = strings.Join(keys, "$EDGE$") |
| 25 | return strconv.FormatUint(fnv.HashString(strconv.FormatInt(serverId, 10)+"@"+keysData+"@"+time+"@"+strconv.Itoa(int(version))+"@"+strconv.FormatInt(itemId, 10)), 10) |
| 26 | } |
| 27 | |
| 28 | func (this *Stat) UniqueKey(version int32, itemId int64) string { |
| 29 | return UniqueKey(this.ServerId, this.Keys, this.Time, version, itemId) |