예제 #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))
}