public void Read(Stream destination, int bufferSize) // TODO: reconnect { try { _reader.ExpectType(RedisMessage.Bulk); _reader.ReadBulk(destination, bufferSize, false); } catch (IOException) { if (ReconnectAttempts == 0) { throw; } Reconnect(); Read(destination, bufferSize); } }
public override byte[] Parse(RedisReader reader) { return(reader.ReadBulk()); }
public void Read(Stream destination, int bufferSize) { _reader.ExpectType(RedisMessage.Bulk); _reader.ReadBulk(destination, bufferSize, false); }