示例#1
0
        public async Task <IActionResult> ClearCache()
        {
            var token = JwtUser.GetToken(authenticationConfig.Jwt.Key
                                         , authenticationConfig.Jwt.Issuer
                                         , authenticationConfig.Jwt.Issuer
                                         , authenticationConfig.Jwt.Duration);

            foreach (var server in appSettingsConfig.GameServices)
            {
                await gameServiceClient.ClearCache(server.Url, token);
            }

            await memcachedClient.FlushAllAsync();

            return(GetResult());
        }