Adds a prefix to the prefix query.

@param string       $key   Key to query
@param string|array $value Values(s) for the query. Boost can be set with array
@param float        $boost OPTIONAL Boost value (default = 1.0)

@return $this
332256
public function setPrefix(string $key, $value, float $boost = 1.0): self
    {
        return $this->setRawPrefix([$key => ['value' => $value, 'boost' => $boost]]);
    }
429846
public function set($key, $value = null)
    {
        if( is_array($key) ) {
            $this->values($key);
        } else {
            $this->value($key, $value);
        }
        return $this;
    }
756359
public function set($key, $value)
    {
        return $this->redis->hSet($this->prefix, $key, $value);
    }
2253
public function addRequestHeader($key, $value = null)
    {
        if (is_array($key)) {
            foreach ($key as $newKey => $newValue) {
                $this->addRequestHeader($newKey, $newValue);
            }
        } else {
            $key = preg_replace_callback(
                '/([\s\-_]|^)([a-z0-9-_])/',
                function ($match) {
                    return strtoupper($match[0]);
                },
                $key
            );
            $this->requestHeader[] = "$key: $value";
        }
    }
1340106
public function addQuery($key, $value = null)
    {
        //if it's an array
        if (is_array($key)) {
            //warning this overwrites existing headers
            $this->query = $key;
            return $this;
        }

        //else it should be key value
        $this->query[$key] =  $value;
        return $this;
    }
143061
public function set($key, $value)
    {
        if (! is_null($key)) {
            Arr::set($this->payload, $key, $value);
        }

        return $this;
    }
143892
public function add($key, $value = null)
    {
        if (is_array($key)) {
            foreach ($key as $innerKey => $innerValue) {
                Arr::set($this->variables, $innerKey, $innerValue);
            }
        } elseif ($key instanceof Closure) {
            $this->variables[] = $key;
        } else {
            Arr::set($this->variables, $key, $value);
        }

        return $this;
    }
952285
public function usingHeader(string $key, $value): self
    {
        $this->headers->put($key, $value);
        return $this;
    }
119230
public function increment($key, $value = 1)
    {
        return $this->connection()->incrBy($this->prefix . $key, $value);
    }
1192008
public function setMultiValue($key, $value, $boost = false)
	{
		$this->addField($key, $value, $boost);
	}
192100
public function set($key, $value) {
    if ($this->exists($key)) {
      $index = $this->getKeyPosition($key);
      $this->values[$index] = $value;
      return $this;
    }
    return $this->add($key, $value);
  }
318103
public function add($key, $value)
    {
        if (!$key) {
            return $this;
        }

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

        return $this;
    }
1207336
public function appendPair($key, $value)
    {
        $header = sprintf('%s: %s', $key, $value);
        $this->append($header);

        return $this;
    }
1365736
public function bind($key, $value = null)
    {
        if (is_array($key))
        {
            foreach ($key as $name => $value)
            {
                $this->_bound[$name] = $value;
            }
        }
        else
        {
            $this->_bound[$key] = $value;
        }

        return $this;
    }
277958
public function appends($keys, $value = null)
    {
        if (! is_array($keys)) {
            return $this->addQuery($keys, $value);
        }

        foreach ($keys as $key => $value) {
            $this->addQuery($key, $value);
        }

        return $this;
    }
757117
public function addOption($key, $value)
    {
        $this->options[$key] = $value;
        $this->riakCursor->addOption($key, $value);
        return $this;
    }
280653
public function add($key, $value)
    {
        if (! is_null($key)) {
            $currentValue = Arr::get($this->payload, $key, []);

            if (! is_array($currentValue)) {
                $currentValue = Arr::wrap($currentValue);
            }

            $currentValue[] = $value;

            Arr::set($this->payload, $key, $currentValue);
        }

        return $this;
    }