redis - WRONGTYPE Operation against a key holding the wrong kind of value Laravel -


hi using laravel redis .when trying access key method following error "wrongtype operation against key holding wrong kind of value"

i using following code access key value -

route::get('/', function () {      //$redis = app()->make("redis");     $redis = redis::connection();      return $redis->get("doctor:8a772886-e7b2-442a-a0d5-621307510c6a");  }); 

could please try code sample , see if works you.

return $redis->hgetall("doctor:8a772886-e7b2-442a-a0d5-621307510c6a"); 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -