Store an item in the cache.

@param  string              $key
@param  mixed               $value
@param  \DateTime|float|int $minutes
@return void
509687
public function put($key, $value, $minutes = null)
    {
        $this->pushStandardKeys($this->tags->getNamespace(), $key);

        parent::put($key, $value, $minutes);
    }
661780
public function put($value, $minutes)
	{
		\Cookie::set($this->getKey(), serialize($value), $minutes * 60);
	}
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);
    }
615501
public function put( $key, $value, $minutes = null )
	{
		if ( is_array( $key ) && filter_var( $value, FILTER_VALIDATE_INT ) !== false )
		{
			return $this->putMany( $key, $value );
		}

		$minutes = $this->getMinutes( $minutes );

		if ( !is_null( $minutes ) )
		{
			$this->store->put( $this->itemKey( $key ), $value, $minutes );

			$this->fireCacheEvent( 'write', [$key, $value, $minutes] );
		}
		return null;
	}
601098
public static function saveInCache($key, $value)
  {
    static::initialize();
    self::$cm->saveInCache($key, array('time' => time(), 'value' => $value));
  }
247995
public function set($key, $value = null, $minutes = null)
    {
        if ($minutes === null) {
            $minutes = $this->defaults['lifetime'];
        }

        $data = is_array($key) ? $key : [$key => $value];

        foreach ($data as $key => $value) {
            $this->setCookie($key, $value, time() + $minutes);
        }

        return $this;
    }
230771
public function put($key, $value, $minutes)
    {
        if (is_array($key) && is_array($value)) {
            $this->putMany(array_combine($key, $value), $minutes);
        } else {
            parent::put($key, $value, $minutes);
        }
    }
136
public function put($key, $value, $minutes)
    {
        $this->forever($key, $value);
        $this->redis->expire($key, $minutes * 60);
    }
874360
public function put($key, $value, $secs = 0)
    {
        $item = $this->set($key, $secs);

        $item->set($value);

        $this->adapter->save($item);
    }
846527
public function set($key, $value)
    {
        $item = $this->psr6Cache->getItem($key);
        $item->set($value);

        $this->psr6Cache->save($item);
    }
1012827
public function putMany( array $values, $minutes )
	{
		$minutes = $this->getMinutes( $minutes );

		if ( !is_null( $minutes ) )
		{
			$this->store->putMany( $values, $minutes );

			foreach ( $values as $key => $value )
			{
				$this->fireCacheEvent( 'write', [$key, $value, $minutes] );
			}
		}
	}
915172
public function put($key, $value, $minutes)
	{
		return $this->engine->set($this->id($key), $value, $minutes * 60);
	}
784116
public function putMany(array $items, $minutes)
    {
        if (! method_exists($this->store, 'putMany')) {
            array_map([$this, 'put'], array_keys($items), array_values($items), array_fill(0, count($items), $minutes));
        } else {
            $minutes = $this->getMinutes($minutes);

            if (! is_null($minutes)) {
                $items = array_combine($this->tagKeys(array_keys($items)), array_values($items));

                $this->store->putMany($items, $minutes);
            }
        }
    }
856803
public function remember($key, $minutes, Closure $callback)
	{
		// If the item exists in the cache we will just return this immediately
		// otherwise we will execute the given Closure and cache the result
		// of that execution for the given number of minutes in storage.
		if ($this->has($key)) return $this->get($key);

		$this->put($key, $value = $callback(), $minutes);

		return $value;
	}
1359426
public function put($key, $value, $minutes = null)
    {
        $directory = trim($this->config->get('mpesa.cache_location'), '/');
        $location  = $directory . '/.mpc';

        if (! is_dir($directory)) {
            mkdir($directory, 0755, true);
        }
        $initial = [];
        if (is_file($location)) {
            $initial = unserialize(file_get_contents($location));
            $initial = $this->cleanCache($initial, $location);
        }

        $minutes = $minutes ? Carbon::now()->addMinutes($minutes)->toDateTimeString() : null;
        $payload = [$key => ['v' => $value, 't' => $minutes]];
        $payload = serialize(array_merge($payload, $initial));

        file_put_contents($location, $payload);
    }
760580
public function put($key, $value, $minutes = 0) {
        $this->memcached->set($key, serialize($value), $minutes * 60);
    }
779506
public function put($key, $value, $minutes)
	{
		$value = is_numeric($value) ? $value : serialize($value);

		$this->connection()->set($this->prefix.$key, $value);

		$this->connection()->expire($this->prefix.$key, $minutes * 60);
	}