title: Redis cache InvalidOperationException: Reading is not allowed after reader was completed
body: <p>I have one webjob that is continously inserting data into redis
  I have another time trigger function to read data from the same redis cache after every 5 minutes.</p>
  <pre><code>  public static void ProcessData([TimerTrigger(&quot;0 */5 * * * *&quot;)] TimerInfo myTimer)
          {
              var newCacheclient = new RedisCacheClient(Program.spRedisCacheConnectionPoolMgr, Program.serializer, Program.redisConfiguration).Db0;
  
              var cachedData = newCacheclient.GetAsync&lt;List&lt;MyObject&gt;&gt;(&quot;mydata&quot;).Result;
  </code></pre>
  <p>after executing 10-15minutes I'm getting below error from time trigger function .anyone know how to tackle this?</p>
  <blockquote>
  <p>InvalidOperationException: Reading is not allowed after reader was
  completed.</p>
  </blockquote>
  <p>I raised the same issue with github as well.</p>
  <p>nuget version details -
  <a href="https://i.stack.imgur.com/LWSss.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LWSss.png" alt="enter image description here" /></a></p>
  <p>Error Stack -
  Inner Exception 1:</p>
  <pre><code>InvalidOperationException: Reading is not allowed after reader was completed.
  
  
     at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
     at MyData.Functions.ExecuteTrade(TimerInfo myTimer) in C:\Users\\Functions.cs:line 27
     at Microsoft.Azure.WebJobs.Host.Executors.VoidMethodInvoker`1.InvokeAsync(TReflected instance, Object[] arguments)
     at Microsoft.Azure.WebJobs.Host.Executors.FunctionInvoker`1.&lt;InvokeAsync&gt;d__0.MoveNext()
     
     at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_NoReadingAllowed()
     at System.IO.Pipelines.Pipe.AdvanceReader(SequencePosition&amp; consumed, SequencePosition&amp; examined)
     at System.IO.Pipelines.Pipe.DefaultPipeReader.AdvanceTo(SequencePosition consumed, SequencePosition examined)
     at StackExchange.Redis.PhysicalConnection.&lt;ReadFromPipe&gt;d__110.MoveNext() in /_/src/StackExchange.Redis/PhysicalConnection.cs:line 1495
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
     at StackExchange.Redis.Extensions.Core.Implementations.RedisDatabase.&lt;GetAsync&gt;d__14`1.MoveNext()
  </code></pre>