func DeleteGroup(ctx appengine.Context, group *event.Group) { key := datastore.NewKey(ctx, "ProxyGroup", group.Name, 0, nil) datastore.delete(ctx, key) key1 := GROUP_CACHE_KEY_PREFIX + group.Name GroupTable[key1] = nil, false memcache.Delete(key1) }
func DeleteUser(ctx appengine.Context, user *event.User) { key := datastore.NewKey(ctx, "ProxyUser", user.Email, 0, nil) datastore.delete(ctx, key) key1 := USER_CACHE_KEY_PREFIX + User.Email key2 := USER_CACHE_KEY_PREFIX + User.AuthToken UserTable[key1] = nil, false UserTable[key2] = nil, false memcache.Delete(key1) memcache.Delete(key2) }