public ProtocolEncoder(RedisSettings settings) : base(settings) { _sharedBuffer = new byte[settings.EncodingBufferSize]; _encodingBuffer = new byte[settings.EncodingBufferSize]; _encoding = settings.EncodingOverride ?? Encoding.UTF8; }
public RedisClientBase(RedisSettings settings) : base(settings) { _executor = new ImmediateExecutor(); _executor.Init(this); Reset(); }
public ProtocolReader(RedisSettings settings, ProtocolEncoder encoder, Stream stream) : base(settings) { _stream = stream; _reader = new RedisReader(stream, settings); _encoder = encoder; }
public RedisReader(Stream stream, RedisSettings settings) { SAssert.ArgumentNotNull(() => stream); SAssert.ArgumentSatisfy(() => stream, s => s.CanRead, "Stream must be readable."); SAssert.ArgumentNotNull(() => settings); _settings = settings; _stream = new BufferedStream(stream, _settings.ReadBufferSize); }
public ProtocolWriter(RedisSettings settings, ProtocolEncoder encoder, Stream stream) : base(settings) { _stream = stream; _writer = new RedisWriter(stream, settings); _encoder = encoder; AutoFlush = false; }
public RedisWriter(Stream stream, RedisSettings settings) { SAssert.ArgumentNotNull(() => stream); SAssert.ArgumentSatisfy(() => stream, s => s.CanWrite, "Stream must be writable."); SAssert.ArgumentNotNull(() => settings); _settings = settings; _stream = new BufferedStream(stream, _settings.WriteBufferSize); _strBuffer = new byte[_settings.EncodingBufferSize]; AutoFlush = false; }
public RedisClient(RedisSettings settings) : base(settings) { }
public RedisClientBase(string host = RedisSettings.DefaultHost, int port = RedisSettings.DefaultPort) : this(RedisSettings.Build().Host(host).Port(port)) { }
public ProtocolEncoder(RedisSettings settings) : base(settings) { _buffer = new byte[settings.EncodingBufferSize]; _encoding = settings.EncodingOverride ?? Encoding.UTF8; }
public ThreadwisePool(RedisSettings settings, int?db = null) : base(settings, db) { }
internal Builder(RedisSettings instance) { _settings = instance; }
public Builder() { _settings = new RedisSettings(); }
public AutoActivatingPool(RedisSettings settings) : base(settings) { }
public RedisClientBase(RedisSettings settings) : base(settings) { Reset(); }