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

@param  string  $key
@param  mixed   $value
@param  int     $minutes
@return void
844
public function put($key, $value, $minutes) {
        $this->cache[$key] = [
            'value' => $value,
            'ttl'   => $this->getNow() + ($minutes * 60),
        ];
    }
1072269
public function put($key, $value, $minutes)
	{
		xcache_set($this->prefix.$key, $value, $minutes * 60);
	}
715655
public function put($key, $value, $minutes)
    {
        if ($minutes instanceof \Datetime) {
            $seconds = $minutes->getTimestamp() - time();
        } else {
            $seconds = $minutes * 60;
        }

        $this->cache->save($key, $value, $seconds);
    }
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]);
                }
            }
        }
    }
893301
public function put($key, $value, $minutes)
    {
        $key = $this->key . $key;
        $value = serialize($value);
        $expiration = $this->expiration($minutes);

        try {
            $sth = $this->pdo->prepare(
                "INSERT INTO pimf_cache (key, value, expiration) VALUES (:key, :value, :expiration)"
            );

        } catch (\Exception $exception) {
            $sth = $this->pdo->prepare(
                "UPDATE pimf_cache SET value = :value, expiration = :expiration WHERE key = :key"
            );
        }

        $sth->bindValue(':key', $key);
        $sth->bindValue(':value', $value);
        $sth->bindValue(':expiration', $expiration);

        return $sth->execute();
    }
71245
public static function saveCache(string $key, $value, int $seconds = 0): bool
    {
        return self::getInstance()->save($key, $value, $seconds);
    }
123017
public function put($key, $value, $minutes)
    {
        if ($minutes <= 0) {
            return;
        }

        $value = $this->expiration($minutes) . serialize($value);

        if (true === $this->has($key)) {
            return dba_replace($key, $value, $this->dba);
        }

        return dba_insert($key, $value, $this->dba);
    }
388274
public function put($key, $value, $minutes)
    {
        $value = is_numeric($value) ? $value : serialize($value);

        $this->connection()->set($this->prefix . $key, $value, (int) max(1, $minutes * 60));
    }
1128179
public function add($key, $value, $minutes)
	{
		if ($this->has($key))
		{
			return false;
		}

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

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

        return $this;
    }
249731
public function put($key, $value, $minutes)
	{
		return xcache_set($this->id($key), $value, $minutes * 60);
	}
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;
    }
483889
public function add($key, $value, $minutes = 0): bool
    {
        $options = ($minutes === 0) ? [] : ['expiry' => ($minutes * 60)];
        try {
            $this->bucket->insert($this->resolveKey($key), $value, $options);

            return true;
        } catch (CouchbaseException $e) {
            return false;
        }
    }
170771
public function store($key, $value, $minute = null)
    {
        return $this->apc->store($key, $value, $minute = null);
    }
50628
public function add($key, $value, $minutes)
  {
    return wp_cache_add($key, $value, $this->getPrefix(), ceil($minutes * 60));
  }