public function hmget($key, ...$fields)
    {
        $fields = array_unique($this->prepareArguments('hmget', ...$fields));
        $this->init();
        $values = [];
        foreach ($this->driver->hmget($key, $fields) as $value) {
            $values[] = $this->convertFalseToNull($value);
        }
        return array_combine($fields, $values);
    }
public function hmget($key, ...$fields)
    {
        $fields = array_unique($this->prepareArguments('hmget', ...$fields));
        $this->init();
        $values = [];
        foreach ($this->driver->hmget($key, $fields) as $value) {
            $values[] = $this->convertFalseToNull($value);
        }
        return array_combine($fields, $values);
    }
public function hmget ( $ key , ... $ fields ) { $ fields = array_unique ( $ this -> prepareArguments ( 'hmget' , ... $ fields ) ) ; $ this -> init ( ) ; $ values = [ ] ; foreach ( $ this -> driver -> hmget ( $ key , $ fields ) as $ value ) { $ values [ ] = $ this -> convertFalseToNull ( $ value ) ; } return array_combine ( $ fields , $ values ) ; }
Multi hash get
@param string $key
@param array $fields
@return array Returns the values for all specified fields. For every field that does not hold a string value or does not exist, null is returned
Multi hash get