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

<blockquote>
  <p>WRONGTYPE Operation against a key holding the wrong kind of value</p>
</blockquote>

<p>I am using the following code to access the hasekey value - I use this code to get data from redis</p>

<pre><code>$values = "l_messages"

$value = $redis-&gt;GET($values)

print($value)
</code></pre>