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

@param string $key     cache key of the item
@param mixed  $value   value being stored in cache
@param float  $minutes cache ttl
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);
    }
1092548
public function store($key, $value, $minute = null)
    {
        if (is_null($key) || $key == '') {
            throw new \InvalidArgumentException("Key shouldn't be empty");
        }

        $time = (is_null($minute)) ? $this->getLifeTime() : $minute * 60;

        return ($this->isApcUEnabled) ? apcu_store($key, $value, $time) : apc_store($key, $value, $time);
    }
200860
public function put($key, $value, $minutes)
    {
        return wincache_ucache_add($this->key . $key, $value, $minutes * 60);
    }
647434
public function remember($minutes, $key = null)
    {
        list($this->minutes, $this->key) = [$minutes, $key];

        return $this;
    }
1176534
private function setToCache($key, $value, $ttl = 0)
    {
        if (!$this->cache()) {
            return;
        }

        $params = func_get_args();

        // Use default TTL if none is provided
        if ($this->cacheTTL && func_num_args() < 3) {
            array_push($params, $this->cacheTTL);
        }

        call_user_func_array([$this->cache(), 'set'], $params);
    }
112689
public function putMany(array $values, $minutes)
    {
        if (! is_null($minutes = $this->getMinutes($minutes))) {
            $this->store->putMany($values, $minutes);

            foreach ($values as $key => $value) {
                $this->event(new KeyWritten($key, $value, $minutes));
            }
        }
    }
50628
public function add($key, $value, $minutes)
  {
    return wp_cache_add($key, $value, $this->getPrefix(), ceil($minutes * 60));
  }
1072195
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)) {
                $this->store->putMany($items, $minutes);

                foreach ($items as $key => $value) {
                    $this->fireCacheEvent('write', [$key, $value, $minutes]);
                }
            }
        }
    }
890784
public function put($key, $value, $seconds)
    {
        return $this->memcached->set(
            $this->prefix.$key, $value, $this->calculateExpiration($seconds)
        );
    }
346730
public function putMany( array $values, $minutes )
	{
		foreach ( $values as $key => $value )
			$this->put( $key, $value, $minutes );
	}
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);
	}
509687
public function put($key, $value, $minutes = null)
    {
        $this->pushStandardKeys($this->tags->getNamespace(), $key);

        parent::put($key, $value, $minutes);
    }
650806
public function remember($minutes, $key = null)
    {
        list($this->cacheMinutes, $this->cacheKey) = array($minutes, $key);

        return $this;
    }
821466
public function put($key, $value, $minutes)
    {
        $key = $this->prefix.$key;

        $value = serialize($value);

        $expiration = $this->getTime() + (int) ($minutes * 60);

        try {
            $this->table()->insert(compact('key', 'value', 'expiration'));
        } catch (Exception $e) {
            $this->table()->where('key', $key)->update(compact('value', 'expiration'));
        }
    }
401653
public function put($key, $value, $minutes)
    {
        $this->memcached->set($this->prefix.$key, $value, $minutes * 60);
    }
933369
public function put($key, $value, $minutes = 0) {
        if ($minutes == 0) {
            $this->client->set($key, serialize($value));
        } else {
            $this->client->set($key, serialize($value), null, $minutes * 60);
        }
    }
711193
public function put($key, $value, $minutes)
    {
        $this->apc->put($this->prefix.$key, $value, (int) ($minutes * 60));
    }