internal void AssertAvailable(RedisCommand command) { if (map[(int)command] == null) { throw ExceptionFactory.CommandDisabled(false, command, null, null); } }
internal void WriteHeader(RedisCommand command, int arguments) { var commandBytes = Multiplexer.CommandMap.GetBytes(command); if (commandBytes == null) { throw ExceptionFactory.CommandDisabled(Multiplexer.IncludeDetailInExceptions, command, null, Bridge.ServerEndPoint); } outStream.WriteByte((byte)'*'); // remember the time of the first write that still not followed by read Interlocked.CompareExchange(ref firstUnansweredWriteTickCount, Environment.TickCount, 0); WriteRaw(outStream, arguments + 1); WriteUnified(outStream, commandBytes); }