public RedisDecoder(int maximumInlineMessageLength, IRedisMessagePool messagePool) { Contract.Requires(maximumInlineMessageLength > 0 && maximumInlineMessageLength <= RedisConstants.MaximumMessageLength); Contract.Requires(messagePool != null); this.maximumInlineMessageLength = maximumInlineMessageLength; this.messagePool = messagePool; }
public RedisEncoder(IRedisMessagePool messagePool) { if (messagePool is null) { ThrowHelper.ThrowArgumentNullException(ExceptionArgument.messagePool); } this.messagePool = messagePool; }
public RedisDecoder(int maxInlineMessageLength, IRedisMessagePool messagePool, bool decodeInlineCommands) { if (maxInlineMessageLength <= 0 || maxInlineMessageLength > RedisConstants.RedisMessageMaxLength) { throw new RedisCodecException($"maxInlineMessageLength: {maxInlineMessageLength} (expected: <= {RedisConstants.RedisMessageMaxLength})"); } this.maxInlineMessageLength = maxInlineMessageLength; this.messagePool = messagePool; this.decodeInlineCommands = decodeInlineCommands; }
public RedisEncoder(IRedisMessagePool messagePool) { Contract.Requires(messagePool != null); this.messagePool = messagePool; }