Changes a value and signals the cache.

@param string $name
@param mixed $value
@return \Gems_Registry_CachedArrayTargetAbstract (continuation pattern)
175946
protected function _set($name, $value)
    {
        $this->_data[$name] = $value;

        // Do not reload / save here:
        // 1: other changes might follow,
        // 2: it might not be used,
        // 3: e.g. database saves may change other data.
        $this->invalidateCache();

        return $this;
    }
355686
public function setOption($name, $value)
    {
        $this->options[$name] = $value;
        $this->compiled = null;

        return $this;
    }
1357374
public function set($name, $value)
    {
        $name = $this->prefix . $name;
        return setcookie($name, $value, $this->expire, $this->path, $this->domain, $this->secure, $this->httpOnly);
    }
710722
public function setProperty($name, $value)
    {
        if (is_null($value)) {
            unset($this->_properties[$name]);
        } else {
            $this->_properties[$name] = $value;
        }
        return $this;
    }
185520
public function set($name, $value)
    {
        $name = '_' . (string)$name;
        if (property_exists($this, $name) && (!is_array($this->$name))) {
            $this->$name = $value;
        }
        return $this;
    }
893771
public function set(string $name, $value) : Recipe
    {
        $this->variables->$name = $value;
        return $this;
    }
987062
public function set($name, $value)
    {
        if (! is_array($value)) {
            $value = ['value' => (string) $value];
        }
        $this->responseCookies[$name] = array_replace($this->defaults, $value);
    }
219963
public function setResult($name, $value) {
		if(!isset($this->payload['result'])) {
			$this->payload['result'] = array();
		}
		$this->payload['result'][$name] = $value;
		return $value;
	}
271389
public function setCustomProperty(string $name, $value)
    {
        $customProperties = $this->custom_properties;

        Arr::set($customProperties, $name, $value);

        $this->custom_properties = $customProperties;

        return $this;
    }
1264660
public function setArgument($name, $value)
    {
        if (!$value instanceof \Closure) {
            $value = function () use ($value) {
                return $value;
            };
        }

        $this->arguments[$name] = $value;
        unset($this->caches[$name]);

        return $this;
    }
985135
public function setParam($name, $value)
    {
        switch ($name) {
            case 'processor':
                $this->setProcessor($value);
                break;
            case 'message':
                $this->setMessage($value);
                break;
            case 'result':
                $this->setResult($value);
                break;
            default:
                parent::setParam($name, $value);
                break;
        }
        return $this;
    }
1169471
public function addGet($name, $value = null)
    {
        if (is_array($name) && $value === null) {
            $this->getParams = array_merge($this->getParams, $name);
        } else {
            $this->getParams[$name] = $value;
        }

        return $this;
    }
32371
public function setValue($name, $value)
    {
        unset($this->factories[$name]);
        $this->cache[$name] = $value;
    }
147533
public function setValue(string $name, $value): self
    {
        $this->data[$name] = $value;

        return $this;
    }
685287
public function setCacheControlDirective($name, $value = null)
    {
        switch ($name) {
            case 'public':
                $this->cacheDirectives['visibility'] = 'public';
            break;
            case 'private':
            case 'no-cache':
                $this->cacheDirectives['visibility'] = $name . (!empty($value) ? '="' . $value . '"' : '');
            break;
            case 'no-store':
            case 'no-transform':
            case 'must-revalidate':
            case 'proxy-revalidate':
                $this->cacheDirectives[$name] = $name;
            break;
            case 'max-age':
            case 's-maxage':
                $this->cacheDirectives[$name] = $name . '=' . $value;
            break;
        }
    }
1118915
public function set($name, $value)
    {
        $this->filters[$name] = $value;
        $this->syncFilters();
        return $this;
    }
557893
public function setParameterGet($name, $value = null)
    {
        if (is_array($name)) {
            foreach ($name as $k => $v) {
                $this->_setParameter('GET', $k, $v);
            }
        } else {
            $this->_setParameter('GET', $name, $value);
        }

        return $this;
    }