title: Storing an array of data using Redis (from Laravel)
body: <p>I have started to work with laravel. It is quite interesting to work. I have started to use the features of laravel. I have started to use <code>redis</code> by install redis server in my system and change the configuration for redis in <code>app/config/database.php</code> file. The redis is working fine for the single variables by using <code>set</code>. i.e.,</p>
  
  <pre><code>$redis = Redis::connection();
  
  $redis-&gt;set('name', 'Test');
  </code></pre>
  
  <p>and i could able to get the value by using</p>
  
  <pre><code>$redis-&gt;get('name');
  </code></pre>
  
  <p>But i want to set the array by using <code>set</code> function. If i try do that getting the following error </p>
  
  <pre><code> strlen() expects parameter 1 to be string, array given 
  </code></pre>
  
  <p>I have tried by using following codes.</p>
  
  <pre><code>$redis-&gt;set('name', array(5, 10));
  
  $values = $redis-&gt;lrange('names', array(5, 10));
  </code></pre>
  
  <p>and if i use </p>
  
  <pre><code>$values = $redis-&gt;command('lrange', array(5, 10));
  </code></pre>
  
  <p>getting the following error </p>
  
  <pre><code> 'command' is not a registered Redis command 
  </code></pre>
  
  <p>Can any one explain me the problem and is that possible with redis?...we can set the array values using <code>redis</code> ?</p>