title: phpredis set() not storing the key, what am I missing?
body: <p>This is basic code that I pulled off the internet to test Redis. When setting or getting, I get nothing. I'm suspecting that there is something wrong with my php config, but not sure how to figure out what is going wrong. I've also tried using predis as a client and it too reacts the same way. </p>
  
  <p>
  
  <pre><code>$connected= $redis-&gt;connect('localhost', 6379); //works
  
  if(!$connected) {
      // some other code to handle connection problem
      die( "Cannot connect to redis server.\n" );
  }
  
  $redis-&gt;set('somekey', 'some value');  // fails
  
  echo $redis-&gt;get('somekey'); //fails
  </code></pre>