title: How to use prefix with Predis?
body: <p>I'm using <a href="https://github.com/nrk/predis" rel="nofollow noreferrer">nrk/predis</a> for handling Redis client in my PHP script.</p>
  
  <p>I'm trying to set a prefix to all keys used in this client:</p>
  
  <pre><code>$client = new Predis\Client([
      'scheme'    =&gt; 'tcp',
      'host'      =&gt; REDIS_IP,
      'port'      =&gt; REDIS_PORT,
      'password'  =&gt; REDIS_PASS,
      'database'  =&gt; REDIS_DB,
      'prefix'    =&gt; REDIS_PREFIX
  ]);
  </code></pre>
  
  <p>And it this should work as it stated in their <a href="https://github.com/nrk/predis/tree/v1.0#client-configuration" rel="nofollow noreferrer">client configuration</a>.</p>
  
  <p>But <code>$client-&gt;exists("mykey")</code> returns false, and <code>$client-&gt;exists(REDIS_PREFIX . "mykey")</code> returns true.</p>
  
  <p>Of course, my goal is to use only <code>$client-&gt;exists("mykey")</code>.</p>
  
  <p>I checked on the terminal and the key looks ok. (I've inserted the entries manually)</p>