Store multiple items in the cache for a given number of minutes.

@param  array $values
@param  int $minutes
346730
public function putMany( array $values, $minutes )
	{
		foreach ( $values as $key => $value )
			$this->put( $key, $value, $minutes );
	}
506050
public function put($value, $minutes)
	{
		$cookie = $this->jar->make($this->getKey(), $value, $minutes);
		$this->jar->queue($cookie);
	}
615022
public function put($key, $value, $minutes)
    {
        return $this->memcache->set($this->key . $key, $value, $minutes * 60);
    }
158414
public function store(array $values)
    {
        foreach ($values as $key=>$value)
        {
            // Ensure proper type
            $value = $this->forceTypes($value);

            // Json to save
            $jsonValue = json_encode($value);

            // Update
            $this->database->statement("INSERT INTO system_registries ( `key`, `value` ) VALUES ( ?, ? )
										ON DUPLICATE KEY UPDATE `key` = ?, `value` = ?",
                array($key, $jsonValue, $key, $jsonValue));

            $this->cache->add($key, $value);
        }

        return true;
    }
118137
public function put($key, $value, $minutes)
	{
		$this->memcache->set($this->prefix.$key, $value, false, $minutes * 60);
	}
1205711
public function putMany(array $items, $minutes)
    {
        $this->memcached->setMulti(array_combine($this->prefixKeys(array_keys($items)), array_values($items)), $minutes * 60);
    }
1045343
public function add($key, $value, $minutes)
	{
		trigger_error('XCache add method is not monatomic. Please use another cache storage.');

		$key = $this->id($key);

		if (xcache_isset($key))
		{
			return false;
		}

		return $this->put($key, $value, $minutes * 60);
	}
1059188
public function put($key, $value, $minutes)
	{
		$this->data[$this->id($key)] = array(
			'time'  => time(),
			'value' => $value,
			'ttl'   => $this->expiration($minutes)
		);

		return true;
	}
609205
public function addMany(array $items, $minutes)
    {
        $values = $this->getMany(array_keys($items));

        $fill = Arr::where($values, function ($key, $value) {
            return is_null($value);
        });

        $items = array_intersect_key($items, $fill);

        $this->putMany($items, $minutes);

        return array_map(function ($value) {
            return is_null($value);
        }, $values);
    }
393084
protected function cache($key, $value, $minutes)
    {
        $this->cache->add($this->key($key), $value, Carbon::now()->addMinutes($minutes));
    }
505511
public function put(string $key, $value, float $minutes)
    {
        if (is_array($value)) {
            foreach ($value as $index => $document) {
                if ($document instanceof stdClass) {
                    $value[$index] = (array) $document;
                }
            }
        }

        $this->laravelCache->put($key, $value, $minutes);
    }
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);
    }
844
public function put($key, $value, $minutes) {
        $this->cache[$key] = [
            'value' => $value,
            'ttl'   => $this->getNow() + ($minutes * 60),
        ];
    }
1359574
public function putMany(array $items, $minutes)
    {
        $minutes = max(1, $minutes);

        return $this->connection()->transaction(function ($tx) use ($items, $minutes) {
            foreach ($items as $key => $value) {
                $value = is_numeric($value) ? $value : serialize($value);
                $tx->setex($this->getPrefix().$key, $minutes * 60, $value);
            }
        });
    }
885090
public function put($key, $value, $minutes = null)
    {
        $this->cache->put($key, $value, $minutes);
    }
509687
public function put($key, $value, $minutes = null)
    {
        $this->pushStandardKeys($this->tags->getNamespace(), $key);

        parent::put($key, $value, $minutes);
    }
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);
        }
    }