Closed Sgenmi closed 3 years ago
$field=[ 'id','name','age' ]; $key='h:user:1'; $res = $redis->hMget($key,$field)
预期res结果:
$res=[ 'id'=>xxx, 'name'=xxx, 'age'=>'xxx' ];
现,实际结果为:
$res=[ 0=>xxx, 1=>xxx, 2=>xxx ];
hgetall可以返回预期结果,如果这个hash的key 比较多,感觉有点不妥。
希望和预期结果一样。符合phpredis返回结果
@tioncico
https://github.com/easy-swoole/redis/releases/tag/1.3.10
预期res结果:
现,实际结果为:
hgetall可以返回预期结果,如果这个hash的key 比较多,感觉有点不妥。
希望和预期结果一样。符合phpredis返回结果