コード例 #1
0
 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);
     }
 }
コード例 #2
0
 public override byte[] Parse(RedisReader reader)
 {
     return(reader.ReadBulk());
 }
コード例 #3
0
 public void Read(Stream destination, int bufferSize)
 {
     _reader.ExpectType(RedisMessage.Bulk);
     _reader.ReadBulk(destination, bufferSize, false);
 }