Store an item in the cache for a given number of minutes.

@param  string    $key
@param  mixed     $value
@param  float|int $minutes
@return void
1019
public function put($key, $value, $minutes)
    {
        $this->ensureCacheDirectoryExists($path = $this->path($key));

        $this->files->put(
            $path, $this->expiration($minutes).serialize($value), true
        );
    }
669885
public function put($key, $value, $minutes)
    {
        $this->connection()->setex(
            $this->prefix.$key, (int) max(1, $minutes * 60), $this->serialize($value)
        );
    }
1059188
public function put($key, $value, $minutes)
	{
		$this->data[$this->id($key)] = array(
			'time'  => time(),
			'value' => $value,
			'ttl'   => $this->expiration($minutes)
		);

		return true;
	}
200860
public function put($key, $value, $minutes)
    {
        return wincache_ucache_add($this->key . $key, $value, $minutes * 60);
    }
71245
public static function saveCache(string $key, $value, int $seconds = 0): bool
    {
        return self::getInstance()->save($key, $value, $seconds);
    }
390132
public function put($key, $value, $minutes)
	{
		$key = $this->id($key);
		$seconds = $minutes * 60;

		return $this->apcu ? apcu_store($key, $value, $seconds) : apc_store($key, $value, $seconds);
	}
1243172
public function set($key, $value, $days = null, $hours = null, $minutes = null) {
        $days = null !== $days ? $days : $this->days;
        $hours = null !== $hours ? $hours : $this->hours;
        $minutes = null !== $minutes ? $minutes : $this->minutes;
        $value = serialize($value);
        if ($this->hashed) {
            $value = serialize(array(
                $value,
                hash('sha256', $value . $this->salt)
            ));
        }
        $domain = ltrim($_SERVER['SERVER_NAME'], "www.");
        return setcookie($key, $value, time() + $minutes * 60 + $hours * 3600 + $days * 24 * 3600, '/', $domain, $this->secured, $this->httpOnly);
    }
509687
public function put($key, $value, $minutes = null)
    {
        $this->pushStandardKeys($this->tags->getNamespace(), $key);

        parent::put($key, $value, $minutes);
    }
506050
public function put($value, $minutes)
	{
		$cookie = $this->jar->make($this->getKey(), $value, $minutes);
		$this->jar->queue($cookie);
	}
674900
public function add($key, $value, $minutes)
    {
        // If the laravel version is 5.8 or higher then convert minutes to seconds.
        if ($this->laravelVersion !== null
            && is_int($minutes)
            && version_compare($this->laravelVersion, '5.8', '>=')
        ) {
            $minutes = $minutes * 60;
        }

        $this->cache()->put($key, $value, $minutes);
    }
346730
public function putMany( array $values, $minutes )
	{
		foreach ( $values as $key => $value )
			$this->put( $key, $value, $minutes );
	}
1005430
public function add( $key, $value, $minutes )
	{
		$minutes = $this->getMinutes( $minutes );

		if ( is_null( $minutes ) )
		{
			return false;
		}

		if ( method_exists( $this->store, 'add' ) )
		{
			return $this->store->add( $this->itemKey( $key ), $value, $minutes );
		}

		if ( is_null( $this->get( $key ) ) )
		{
			$this->put( $key, $value, $minutes );

			return true;
		}

		return false;
	}
956193
public function add($key, $value, $minutes)
    {
        $this->checkReservedKeyPattern($key);

        $this->setKeywordsOperation(true);

        if ($result = parent::add($key, $value, $minutes)) {
            $this->storeKeywords($key, $minutes, $this->keywords);
        }

        $this->setKeywordsOperation(false);

        $this->resetCurrentKeywords();

        return $result;

    }
393084
protected function cache($key, $value, $minutes)
    {
        $this->cache->add($this->key($key), $value, Carbon::now()->addMinutes($minutes));
    }
661780
public function put($value, $minutes)
	{
		\Cookie::set($this->getKey(), serialize($value), $minutes * 60);
	}
1072269
public function put($key, $value, $minutes)
	{
		xcache_set($this->prefix.$key, $value, $minutes * 60);
	}
422632
public function put($key, $value, $minutes)
    {
        return $this->apcu
            ? apcu_store('' . $this->key . $key, $value, (int)$minutes * 60)
            : apc_store('' . $this->key . $key, $value, (int)$minutes * 60
            );
    }