title: Scan Cache key in Redis Cache Using C#
body: <p>I am using Redis Cache in my project. Now there is a situation that cache is dynamically generate like "KeyPrefix"+i   i is a dynamic value </p>
  
  <p>Now I want to delete all keys that having prefix "KeyPrefix"</p>
  
  <p>How it posible as in my code I can delete only matching key. But I need to delete all keys that containing some prefix.</p>
  
  <pre><code>  IDatabase cache = RedisDistributedCacheManager.GetDatabase();
                  cache.KeyDelete(cacheKey);
  </code></pre>
  
  <p>Thanks
  Dalvir</p>