Set the given hash field if it doesn't exist.

@param  string  $hash
@param  string  $key
@param  string  $value
@return int
162398
public function hsetnx($hash, $key, $value)
    {
        return (int) $this->client->hsetnx($hash, $key, $value);
    }
525308
public function offsetSet($key, $value) {
        if(!$this->offsetExists($key)) {
            $this->table[$key] = new Value($value);
        } else {
            $this->table[$key]->setValue($value);
        }
    }
19913
public function set($key, $value)
    {
        $keys = explode('.', $key);

        $data = &$this->parameters;

        while (count($keys) > 1) {
            $pkey = $keys[0];

            if (!array_key_exists($pkey, $data) || !is_array($data[$pkey])) {
                $data[$pkey] = [];
            }

            $data = &$data[$pkey];
            array_shift($keys);
        }

        $data[$keys[0]] = $value;

        return $this;
    }
116275
public function set($key, $value)
    {
        return shm_put_var($this->shm, $this->shm_key($key), $value); //store var
    }
315853
public function hashRemove($key, $field) {
        $option = $this->getHashOption($key);
        if (!isset($option[$field])) {
            return false;
        } else {
            unset($option[$field]);
            return $this->setOption($key, $option);
        }
    }
1224961
public static <K> int hash(final K value, final int mask)
    {
        final int hash = value.hashCode();

        return hash & mask;
    }
752146
public function insert(string $key, $value): int
    {
        return $this->handle->hSet($this->name, $key, $value) ?: 0;
    }
1253801
public function increment($key, $value = 1)
    {
        return $this->redisServer->getHashClient($key)->incrBy($key, $value);
    }
1030155
public function setKey($key)
    {
        $this->hash = null;

        if (empty($key)) {
            $this->key = null;
            return;
        }

        $this->key = (string) $key;
        $this->hash = $this->makeHash($key);
    }
614901
public function setKey($key, int $cost = self::HASH_COST)
    {
        $this->hash = null;

        if (empty($key)) {
            $this->key = null;
            return;
        }

        $this->key = (string) $key;
        $this->hash = $this->makeHash($key, $cost);
    }
705647
public function offsetSet($key, $value)
	{
		if (is_array($key) || is_object($key))
		{
			foreach ($key as $k => $v)
			{
				$this->attributes[$k] = $v;
			}
		}
		else
		{
			$this->attributes[$key] = $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;
    }
846700
protected function _set($key, $value)
    {
        if (!is_string($key)) {
            throw new Exception\InvalidArgumentException(
                "Key must be a string or a number: '$key' given"
            );
        }
        $this->_data[$key] = $value;
    }
1154363
public function set($field, $value)
    {
        $client = $this->getClient();

        $client->hset(
            $this->getKey()->getName(),
            $field,
            $value
        );

        // Integer reply, specifically:
        // 1 if field is a new field in the hash and value was set.
        // 0 if field already exists in the hash and the value was updated.

        return true;
    }
288625
public function setSettingsValue($key, $value)
    {
        if ($this->isKeyAllowed($key)) {
            return;
        }

        $this->fieldValues[$key] = $value;
    }
496004
public function set($key, $value) {
        $key = $this->formatKey($key);
        array_set($this->headers, $key, [$value]);
    }
52878
static public function set($key, $value) {
        $config = &self::$_config;
        
        Utils::arraySet($config, $key, $value);
    }