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

@param  string  $key
@param  mixed   $value
@param  int  $seconds
@return bool
777753
public function put($key, $value, $seconds)
    {
        $this->storage[$key] = [
            'value' => $value,
            'expiresAt' => $this->calculateExpiration($seconds),
        ];

        return true;
    }
1291760
public function set($key, $value, $second)
    {
        $second = intval($second);

        if (!is_numeric($value)) {
            $value  = serialize($value);
        }

        if ($second > 0) {
            return $this->redisServer->getHashClient($key)->setex($key, $second, $value);
        } else {
            return $this->redisServer->getHashClient($key)->set($key, $value);
        }
    }
664403
public function put($key, $value, $seconds)
    {
        return $this->apc->put($this->prefix.$key, $value, $seconds);
    }
910808
public function put(string $key, $value, float $minutes)
    {
        $this->storage[$key] = $value;
        $this->ttl[$key] = $this->time() + 60 * $minutes;
    }
176491
public function save(string $key, $value, int $seconds = 0): bool
    {
        if (empty($key)) {
            throw  new \ErrorException('"key" should not be empty!');
        } elseif (!$this->isEnable()) {
            return false;
        }

        $data = $this->read();
        if (!is_array($data)) {
            $data = array();
        }

        $data[$key] = $value;

        return parent::write($data, $seconds ? $seconds : $this->timeout);
    }
915172
public function put($key, $value, $minutes)
	{
		return $this->engine->set($this->id($key), $value, $minutes * 60);
	}
1202083
public function store($cacheKey, $value, $minutes = 30)
    {
        $key = array_search($cacheKey, $this->cachedKeys);

        if ($key == false)
        {
            do
            {
                $key = uniqid();
            }
            while ($this->cache->isExisting($key));

            $this->cachedKeys[$key] = $cacheKey;
            $this->storeCachedKeys();
        }

        $this->cache->set($key, $value, $minutes * 60); //=> From seconds
    }
196838
public function put($key, $value, $minutes = 60)
        {
            $this->_cleanCache();
            if (0 >= $minutes) {
                return;
            }

            $this->forget($key);

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

            $data = array(
                'key'        => $key,
                'value'      => $value,
                'expiration' => $expiration,
                'namespace'  => $this->namespace,
            );
            Data::add('cache', $data);

        }
1237917
public function put($key, $value, $minutes)
    {
        if ($minutes instanceof \Datetime) {
            $seconds = $minutes->getTimestamp() - time();
        } else {
            $seconds = $minutes * 60;
        }
        $this->redis->setex($this->decorateKey($key), $seconds, $value);
    }
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
            );
    }
303798
public function put($key, $value, $minutes)
	{
		return wincache_ucache_set($this->id($key), $value, $minutes * 60);
	}
478342
public function setTtl(int $seconds, string $value = '')
        {
                if(!empty($value)) {
                        return $this->_redis->setex($this->_key, $seconds, $value);
                }
                return parent::setExpire($seconds);
        }
200860
public function put($key, $value, $minutes)
    {
        return wincache_ucache_add($this->key . $key, $value, $minutes * 60);
    }
1105216
public function remember($seconds, $key = null)
    {
        list($this->cacheSeconds, $this->cacheKey) = [$seconds, $key];

        return $this;
    }
751626
public function set($key, $value)
    {
        return $this->memcache->set($key, $value, 0, $this->lifetime);
    }
711193
public function put($key, $value, $minutes)
    {
        $this->apc->put($this->prefix.$key, $value, (int) ($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;
	}