WRONGTYPE Operation against a key holding the wrong kind of value php : <p>Hi I am using Laravel with Redis .When I am trying to access a key by get method then get following error "WRONGTYPE Operation against a key holding the wrong kind of value"</p>

<p>I am using following code to access the key value -</p>

<p>i use this code for get data from redis </p>

<pre><code>$values = "l_messages";
$value = $redis-&gt;HGETALL($values);
print($value);
</code></pre>
