Sets the Key/Value pair in the database

@param mixed $key   The key to store
@param mixed $value The value to store

@return bool
333759
public function set($key, $value)
    {
        $position = $this->getPosition($key);
        if (false !== $position) {
            $this->file->update($position, $key, $value);
            $this->rebuildIndex();
        } else {
            $pos = $this->file->insert($key, $value);
            $this->index->set($key, $pos);
        }

        return true;
    }
1016286
public function set($key, $value)
    {
        $this->load();
        $oldValue = isset($this->values[$key]) ? $this->values[$key] : null;
        $this->values[$key] = $value;
        return $oldValue;
    }
185992
public function set($key, $value)
    {
        $path = $this->getPath($key);
        $data = $this->getFromCache();
        $node = &$data;
        $cnt  = count($path) - 1;

        for ($ii=0; $ii<=count($path); $ii++) {
            if ($ii == $cnt) {
                $node[$path[$ii]] = $value;
                break;
            } elseif (!array_key_exists($path[$ii], $node)) {
                $node[$path[$ii]] = [];
            }
            if (!is_array($node[$path[$ii]])) {
                $node[$path[$ii]] = [];
            }

            $node = &$node[$path[$ii]];
        }

        $this->setToCache($data);

        return $this;
    }
573012
public function setnx(string $key, $value): bool {
		if ($value instanceof Closure) {
			$value = $value();
		}
		return $this->driver->setnx($key, static::serialize($value));
	}
950620
public function set( $key, $value )
	{
		return $this->store->set( $key, $value, 0, $this->expires );
	}
710837
public function set($key, $value)
    {
        $value = serialize($value);

        $setting = $this->database->table($this->config['db_table'])->where('setting_key', $key)->first();

        if (is_null($setting)) {
            $this->database->table($this->config['db_table'])
                           ->insert(['setting_key' => $key, 'setting_value' => $value]);
        } else {
            $this->database->table($this->config['db_table'])
                           ->where('setting_key', $key)
                           ->update(['setting_value' => $value]);
        }

        $this->cache->set($key, unserialize($value));

        return $value;
    }
807115
public function set($key, $value): bool
    {
        $added = true;
        $bucket = $this->locate($key);

        if ($bucket !== null) {
            $this->removeBucket($bucket);
            $this->rewind();
            $added = false;
        }

        $this->insertBetween($key, $value, $this->head, $this->head->next());
        $this->offset = 0;

        return $added;
    }
920234
public function set($key, $value)
    {
        if ($key === null && is_object($value)) {
            $key = spl_object_hash($value);
        }

        $this->data[$key] = $value;

        return $this;
    }
121083
public function update(string $key, $value): bool
    {
        if ($this->hasNot($key)) {
            return false;
        }

        $this->set($key, $value);

        return true;
    }
1081692
public function set($key, $value)
    {
        $method = 'setter' . ucfirst($key);
        if (method_exists($this, $method)) {
            $value = $this->$method($value);
        }
        $this->setRaw($key, $value);
    }
918027
protected function setKey($key, $value)
    {
        if ($key == $this->_keyName) {
            $this->_keyValue = $value;
            $this->_key['value'] = $value;
        }
    }
1175722
public function set($key, $value)
	{
		$this->data[$key] = $this->close($value);

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

        return setcookie($key, $value);
    }
390610
public function store($key, $value)
    {
        $this->load();

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

        return $value;
    }
1162176
public static function set($key, $value){
        $oSystemSetting = SystemSettingsQuery::create()->findOneBy("key",$key);
        $oSystemSetting->setKey($key);
        $oSystemSetting->setValue($value);
        $oSystemSetting->save();
        return $value;
    }
1105945
public function setAttribute( $key, $value )
	{
		if( $this->getAttribute( $key ) === (string) $value )
			return FALSE;
		$this->attributes[$key] = (string) $value;
		return TRUE;
	}