Stores a new piece of data and overwrites the data if already exists
@param string $key
@param mixed $value
771687
public static function set($key, $value) {

		if(false === is_string($key)) {
			return trigger_error(sprintf('Argument 1 passed to %s() must be of the type string, "%s" given', __METHOD__, gettype($key)), E_USER_ERROR);
		}

		static :: $data[$key] = $value;
	}
1326070
public function set($key, $value, $override = true) {
        if(is_null($key)) return;
        if(!$override && array_key_exists($key, $this->data)) return;
        $this->data[$key] = $value;        
    }
851871
public function offsetSet($key, $value)
    {
        $key = strtr(strtolower($key), '_', '-');

        $this->_data[$key] = $value;
    }
590753
public function set($key, $value) {
        if ($key) {
            $this->_data[$key] = $value;
        } else {
            $this->_data = $value;
        }
        $this->_modified = true;
        return $this;
    }
67584
public function add($key, $value) {
        if (isset($this->data[$key])) {
            throw new \InvalidArgumentException("Key $key is already set");
        }
        $this->data[$key] = $value;
    }
33027
public static function setValue($key, $value, &$data)
    {
        $parts = explode('.', $key);
        $first = array_shift($parts);
        if (count($parts) > 0) {
            $newKey = implode('.', $parts);
            if (!array_key_exists($first, $data)) {
                $data[$first] = array();
            }
            static::setValue($newKey, $value, $data[$first]);
            return;
        }
        $data[$first] = $value;
    }
1077515
private function alter($key, $value)
    {
        if ($this->has($key)) {
            $this->data[$key][self::CACHE_PARAM_VALUE] = $value;
        }
    }
1170565
public function set(string $key, $value)
    {
        parent::set(Formater::normalize($key), [
            'key' => $key,
            'value' => $value
        ]);
    }
961049
public function set($key, $value)
    {
        array_set($this->settings,$key,$value);
        $this->save($this->path, $this->filename);
        $this->load($this->path, $this->filename);
    }
143806
public function set($key, $value) {
        $this->checkReadOnly();
        self::setFromKey($this->data, $key, $value, $this->separator);
    }
702146
public function set($key, $value) {
		$this->validateValue($value);
		$this->variables[$key] = $value;
	}
846527
public function set($key, $value)
    {
        $item = $this->psr6Cache->getItem($key);
        $item->set($value);

        $this->psr6Cache->save($item);
    }
795739
public function offsetSet($key, $value)
    {
        if ($key === null) {
            array_push($this->storage, $value);

            return;
        }

        $this->storage[$key] = $value;
    }
547244
protected function setData($key, $value)
    {
        $this->data[$key] = (is_array($value)) ? $value : [$value];
    }
182132
public function setData(string $key, $value): bool
    {
        if ($key !== 'password' || $key !== 'salt' || $key !== 'remember_md') {
            $this->data[$key] = $value;
            return true;
        } else {
            return false;
        }
    }
812993
protected function save(string $key, $value): void
    {
        $isNew = $this->isNewKey($key);

        list($name, $userId) = \explode('/user-', $key);

        // We should be able to ignore this if user id is empty or checksum
        // return the same value (no change occured).
        if ($this->check($key, $value) || empty($userId)) {
            return;
        }

        $this->saving($name, $userId, $value, $isNew);
    }
18183
public function set($key, $value)
    {
        $this->keys[$key] = true;
        $this->archive[$key] = $value;
    }