示例#1
0
/*
	funcs
*/
func characterNameKey(realm Entity.Realm, name string) string {
	return fmt.Sprintf("realm:%d:character:%s:id", realm.Id, Util.Md5Encode(name))
}
示例#2
0
/*
	funcs
*/
func regionNameKey(name string) string {
	return fmt.Sprintf("region:%s:id", Util.Md5Encode(name))
}
示例#3
0
/*
	funcs
*/
func realmNameKey(region Region, slug string) string {
	return fmt.Sprintf("region:%d:realm:%s:id", region.Id, Util.Md5Encode(slug))
}