internal void SimulateConnectionFailure() { if (!Multiplexer.RawConfig.AllowAdmin) { throw ExceptionFactory.AdminModeNotEnabled(Multiplexer.IncludeDetailInExceptions, RedisCommand.DEBUG, null, ServerEndPoint); // close enough } physical?.RecordConnectionFailed(ConnectionFailureType.SocketFailure); }
public Task ScriptFlushAsync(CommandFlags flags = CommandFlags.None) { if (!multiplexer.RawConfig.AllowAdmin) { throw ExceptionFactory.AdminModeNotEnabled(multiplexer.IncludeDetailInExceptions, RedisCommand.SCRIPT, null, server); } var msg = Message.Create(-1, flags, RedisCommand.SCRIPT, RedisLiterals.FLUSH); return(ExecuteAsync(msg, ResultProcessor.DemandOK)); }