Save item into database and set to current config

@param string $key
@param mixed $value

@return void

@throws Exceptions\SaveException
183455
public function store($key, $value)
    {

        // save key => value into DB
        $this->dbProvider->store($key, $value);

        //set value to config
        $this->origConfig->set($key, $value);


    }
1358608
public function set($key, $value)
    {
        $this->settings[$key] = $value;
        $this->store();

        return $value;
    }
119508
public function set(string $key, $value): bool
    {
        if (is_string($key) === false || $key === "") {
            return false;
        }

        $this->_configValues[$key] = $value;
        return true;
    }
1237936
public function setPost($key, $value)
    {
        $this->_POST = Hash::insert($this->_POST, $key, $value);
    }
57885
public function set($key, $value)
    {
        if (empty($key)) {
            throw new Exception("Key must be set");
        }

        $parts = array_reverse(explode(".", $key));
        $file = array_pop($parts);

        // we'll try to load a configuration file (if exists)
        if (!isset($this->registry[$file])) {
            $this->registry[$file] = $this->discover($file);
        }

        foreach ($parts as $part) {
            $value = array($part => $value);
        }

        if (is_array($this->registry[$file]) && (is_array($value))) {
            $this->registry[$file] = array_replace_recursive($this->registry[$file], $value);
        } else {
            $this->registry[$file] = $value;
        }
    }
733088
public function set(string $key, $value, $create = false): void
    {
        $key = $this->prepareKey($key);
        Arr::set($this->properties, $key, $value, $create);
    }
1099911
public function set($key, $value)
    {
        
        if(is_array($key) || empty($key)) {
            throw new \Exception('Key should be a string value');
        }

        //split string into array
        $item_pieces = explode('.', $key);

        if(count($item_pieces) == 1) {
            $this->data[current($item_pieces)] = $value;
            return;
        }

        $current_array =& $this->data[current($item_pieces)];
        array_shift($item_pieces);

        //loop through pieces
        foreach($item_pieces as $piece) {
            $current_array =& $current_array[$piece];
        }

        $current_array = $value;
    }
702146
public function set($key, $value) {
		$this->validateValue($value);
		$this->variables[$key] = $value;
	}
548230
public function set($key, $value)
    {
        $config = $this->data;
        if (!$key) {
            $config = array_merge($config, $value);
        }
        $key = is_array($key) ? $key : [$key];

        $data = &$config;
        while ($key) {
            $k = array_shift($key);
            $config[$k] = isset($config[$k]) ? $config[$k] : [];
            $config[$k] = $key
                ? $config[$k]
                : (is_array($value)
                    ? array_merge($config[$k], $value)
                    : $value);
            $config = &$config[$k];
        }
        $this->data = $data;
        return $this->save();
    }
1147301
public function setValue($key, $value)
    {
        $this->loadSettingsIfNotDoneYet();

        $this->isDirty = true;
        $this->settingsValues[$key] = $value;
    }
306001
public function set($key, $value = null)
    {
        if (is_array($key)) {
            $key = $this->flattenArray($key);
            $this->settings = array_merge($this->settings, $key);
        } else {
            $this->settings[$key] = $value;
        }
    }
252432
final public static function set($key, $value)
	{
		self::_checkInstance();
		self::$_instance->offsetSet($key, $value);
	}
1099183
public static function set(string $key, $value)
    {
        return self::getInstance()->getConfig()->set($key, $value);
    }
104239
public function saveInCache($key, $value)
  {
    $this->deleteFromCache($key);
    $this->memcache->set($this->buildMKey($key), serialize($value));
  }
318614
public function set($key, $value)
    {
        if (!$this->db->isInitialized() || empty($key) || !isset($value)) {
            return false;
        }

        $this->reset($key);

        $serialized = 0;

        if (is_array($value)) {
            $value = serialize($value);
            $serialized = 1;
        }

        $values = array(
            'id' => $key,
            'value' => $value,
            'created' => GC_TIME,
            'serialized' => $serialized
        );

        $this->db->insert('settings', $values);
        return true;
    }
905007
private function setValue($key, $value)
    {
        $this->$key = $value;

        if ($key == 'expires_in') $this->setExpiration($value);
    }
344258
public function set(string $key, $value)
    {
        $array = &$this->input;
        $keys = explode('.', $key);

        while (count($keys) > 1) {
            $k = array_shift($keys);
            if (!isset($array[$k]) || ! is_array($array[$k])) {
                $array[$k] = [];
            }
            $array = &$array[$k];
        }

        $array[array_shift($keys)] = $value;
        $this->cache[$key] = &$value;
    }