title: Deleting an object from Redis not working C#
body: <p>I am trying to delete an object from Redis and the following code works</p>
  
  <pre><code>var items = redisClient.As&lt;Item&gt;();
  var test1 = new Item { ItemNumber = 1000, Title = "This is a Title" };
  var test2 = new Item { ItemNumber = 1001, Title = "A Unique Title"};
  
  items.Store(test1);
  items.Store(test2);
  items.Delete(test2);
  </code></pre>
  
  <p>However when I run the following code it is not work.</p>
  
  <pre><code>public void DeleteInterval(Interval interval)
  {
     var items = redis.As&lt;Interval&gt;();
     items.Delete(interval);
  }
  </code></pre>
  
  <p>How does redis delete work on the first sample code and not the second?</p>
  
  <p>using monitor I found the problem but don't know how to solve it but I get the following information.</p>
  
  <p>First Code: </p>
  
  <pre><code>"SADD" "ids.Item" "54986669"
  "DEL" "urn:item:54986669"
  </code></pre>
  
  <p>Second Code:</p>
  
  <pre><code>"SADD" "ids.Interval" "40807399"
  "MGET" "urn:interval:40807399"
  "DEL" "urn:interval:13133063"
  "SREM" "ids.Interval" "13133063"
  </code></pre>
  
  <p>Is there a way to control the ID's in redis? </p>