title: DataTable to Redis Cache
body: <p>I have some data coming from an external database in a DataTable. It has six columns and around hundred rows.</p>
  
  <p>I want to export this data to Redis Cache. I looked into the data types of Redis and found almost all datatypes are similar to Dictionary in C# i.e, Key-Value pair.</p>
  
  <p>I am puzzled as to how to transfer DataTable rows to this Key-Value type data structure. A "Value" in Redis List can hold only one column value.</p>
  
  <p>How to export NxN to Key-Value data structure?</p>
  
  <p><strong>Sample Data:</strong></p>
  
  <pre><code>+==========+============+=======+==============+=====+===+===+=============+
  | Error ID | Error Name |   E   |   ror Type   | Sev | i | y | Date Logged |
  +==========+============+=======+==============+=====+===+===+=============+
  |        1 |        404 | Resou | ce not found | Mod | a | e | 3/14/2018   |
  +----------+------------+-------+--------------+-----+---+---+-------------+
  |        2 |        500 | Inter | al Error     | Hig |   |   | 3/15/2018   |
  +----------+------------+-------+--------------+-----+---+---+-------------+
  </code></pre>