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
Post a Comment