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

@param  string  $key
@param  mixed   $value
@param  int  $seconds
@return bool
7339
public function put($key, $value, $seconds)
    {
        $key = $this->prefix.$key;

        $value = $this->serialize($value);

        $expiration = $this->getTime() + $seconds;

        try {
            return $this->table()->insert(compact('key', 'value', 'expiration'));
        } catch (Exception $e) {
            $result = $this->table()->where('key', $key)->update(compact('value', 'expiration'));

            return $result > 0;
        }
    }
572959
public function add($key, $value, $minutes)
	{
		$key = $this->id($key);
		$seconds = $minutes * 60;

		return $this->apcu ? apcu_add($key, $value, $seconds) : apc_add($key, $value, $seconds);
	}
303798
public function put($key, $value, $minutes)
	{
		return wincache_ucache_set($this->id($key), $value, $minutes * 60);
	}
712576
public function put($key, $value, $minutes)
    {
        if ((int)$minutes <= 0) {
            return null;
        }

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

        return file_put_contents($this->path . $key, $value, LOCK_EX);
    }
603850
public function add($key, $value, $minutes = 0)
    {
        if ($this->exists($key)) {
            return false;
        }
        return $this->put($key, $value, $minutes);
    }
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
            );
    }
1287087
public function put($key, $value, $minutes)
	{
		return eaccelerator_put($this->id($key), $value, $minutes * 60);
	}
615022
public function put($key, $value, $minutes)
    {
        return $this->memcache->set($this->key . $key, $value, $minutes * 60);
    }
53653
public function add($key, $value, $minutes)
    {
        if (! is_null($this->get($key))) {
            return false;
        }

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

        return true;
    }
554896
public function expire($key, $seconds)
    {
        $this->init();
        $result = $this->driver->expire($key, $seconds);
        return (bool)$result;
    }
1105216
public function remember($seconds, $key = null)
    {
        list($this->cacheSeconds, $this->cacheKey) = [$seconds, $key];

        return $this;
    }
1288942
public function remember($seconds = null, CacheInterface $cache = null)
	{
		if (is_null($cache))
		{
			// use the built in cache interface
			$cache = new Cache;
		}
		$this->cache    = $cache;
		$this->remember = $seconds;

		return $this;
	}
594042
public function put($key, $value, $minutes)
	{
		return $this->store->put($this->taggedItemKey($key), $value, $minutes);
	}
1284496
public function put($key, $value, $ttl = null)
    {
        if (is_array($key)) {
            return $this->putMany($key, $value);
        }

        if ($ttl === null) {
            return $this->forever($key, $value);
        }

        $seconds = $this->getSeconds($ttl);

        if ($seconds <= 0) {
            return $this->delete($key);
        }

        $result = $this->store->put($this->itemKey($key), $value, $seconds);

        if ($result) {
            $this->event(new KeyWritten($key, $value, $seconds));
        }

        return $result;
    }
664403
public function put($key, $value, $seconds)
    {
        return $this->apc->put($this->prefix.$key, $value, $seconds);
    }
1059188
public function put($key, $value, $minutes)
	{
		$this->data[$this->id($key)] = array(
			'time'  => time(),
			'value' => $value,
			'ttl'   => $this->expiration($minutes)
		);

		return true;
	}
358119
public function setExpire(int $seconds): bool
    {
        return $this->handle->expire($this->name, $seconds);
    }