(PHP 5 &gt;= 5.0.0)<br/>
Offset to set
@link http://php.net/manual/en/arrayaccess.offsetset.php
@param mixed $offset <p>
The offset to assign the value to.
</p>
@param mixed $value <p>
The value to set.
</p>
@return void
772045
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $offset = uniqid('uid');
        }
        if (is_string($value)) {
            $this->redis->hSet($this->key, $offset, "!".$value);
        } else {
            $this->redis->hSet($this->key, $offset, serialize($value));
        }
    }
1235026
public function offsetSet($offset, $value)
    {
        if ($offset === null) {
            $this->values[] = $value;

            return;
        }

        $keys = explode($this->keySeparator, $offset);

        $keyCount = count($keys);

        $array = &$this->values;

        while ($keyCount > 1) {
            $key = array_shift($keys);

            if (!isset($array[$key]) || !is_array($array[$key])) {
                $array[$key] = [];
            }

            $array = &$array[$key];

            --$keyCount;
        }

        $array[array_shift($keys)] = $value;
    }
834733
public function offsetSet($offset, $value)
    {
        $this->baseCursor->offsetSet($offset+$this->rangeStart, $value);
    }
1224575
public function offsetSet($offset, $value) {
		if(is_null($offset))
			$this->fields[] = $this->parseFields($value, count($this->fields));
		else
			$this->fields[$offset] = $this->parseFields($value, $offset);
	}
290131
public function offsetSet($offset, $value)
    {
        $field = $this->dataField;

        if ($offset !== null) {
            $this->{$field}[$offset] = $value;
        } else {
            array_push($this->{$field}, $value);
        }
    }
131493
public function offsetSet($offset, $value)
    {
        $this->str = $this->getPrefix($offset) . $value . $this->getSuffix($offset);
    }
167970
public function offsetSet($offset, $value): void
    {
        //修改DATA
        if ($value instanceof Row) {
            $this->data[$offset] = $value->all();
        } else {
            $this->data[$offset] = $value;
        }

        //修改ROWS
        $this->rows[$offset] = $value;
    }
1013975
public function offsetSet ($offset, $value) {
		$data = & $_SESSION[$this->__name];
        if ($offset === NULL) {
            $data[] = $value;
        } else {
            $data[$offset] = $value;
        }
    }
309336
public function offsetSet($offset, $value) {
        if (is_string($value) || is_numeric($value)) {
            $key = md5(trim($offset) . $value);
            if (isset ($this->uniques [ $key ])) {
                return;
            }
            $this->uniques [ $key ] = 1;
        }
        $this->conditions [] = [$offset, $value];
    }
497185
public function offsetSet($offset, $value)
    {
        if(is_null($offset)) {
            $offset = $this->index;
            $this->index++;
        }
        $this->indexItem = array_push($this->keys, $offset);
        $this->{$offset} = $value;
    }
705003
public function offsetSet($offset, $value): void
    {
        $this->resolver->value(function ($value, $offset): void {
            $this->items[$offset] = $value;
        }, $value, $offset);
    }
399271
public function offsetSet($offset, $value)
    {
        if (is_null($offset)) {
            $offset = $this->_integerToStringKey($this->_integerKeysCounter++);
        }

        $this->_putData($offset, $value);
        return $this;
    }
22345
public function offsetSet($offset, $value)
    {
        $this->generatorToArray();

        if ($offset === null) {
            $this->array[] = $value;
        } else {
            $this->internalSet($offset, $value);
        }
    }
126075
public function offsetSet($offset, $value)
    {
        if (is_scalar($offset)) {
            $this->_data[$offset] = $value;
        } else {
            $this->_data[] = $value;
        }
    }
178902
public function offsetSet($offset, $value)
    {
        if (false === method_exists($this, 'set' . ucfirst($offset))) {
            $this->$offset = $value;

            return $this;
        }

        return $this->{'set' . ucfirst($offset)}($value);
    }
1207027
public function offsetSet($offset, $value)
    {
        if (is_array($this->object)) {
            $this->object[$offset] = $value;

            return;
        }

        $this->object->$offset = $value;
    }
870690
public function offsetSet($offset, $value)
    {
        $this->{$this->property($offset)} = $this->checkType($value);
    }