title: How to delete multiple redis keys with the same pattern in PHP using phpredis?
body: <p>By using <a href="https://github.com/phpredis/phpredis" rel="noreferrer">phpredis</a>, I have saved some data in pagination like this: </p>
  
  <pre><code>   review/itemA/1
     review/itemA/2 
  </code></pre>
  
  <p>where <code>1</code> and <code>2</code> are page numbers. I read in the document that you can use wildcards to retrieve multiple keys.</p>
  
  <pre><code>$allKeys = $redis-&gt;keys('*');   // all keys will match this.
  $keyWithUserPrefix = $redis-&gt;keys('user*');
  </code></pre>
  
  <p>But can I delete all the old keys using wildcards as well when someone has posted a new review? Can I do something like:</p>
  
  <pre><code>$redis-&gt;delete('review/itemA/*'); // or  $redis-&gt;delete('review/itemA*')
  </code></pre>
  
  <p>It didn't work however. </p>