Write an item to the cache for a given number of minutes.

@param  string  $key
@param  mixed   $value
@param  int     $minutes
@return void
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);

        }
329722
public function put($key, $value, $minutes)
    {
        // Ironcache's SDK allows you to do this by making the value an array with extra options.
        // More options can be found here: http://dev.iron.io/cache/reference/api/
        // Note: expiration can be no more then 30 days (2592000 seconds), but I don't check for this limit yet. I probably should.
        $valueArray = array(
            'value'         =>  $value,
            'expires_in'    =>  $minutes * 60,
        );

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

		return true;
	}
708762
public function extendExpiration(string $key, int $minutes = 1)
    {
        @include $this->filePath($key);

        if (isset($exp)) {
            $extended = strtotime('+' . $minutes . ' minutes', $exp);
            return $this->writeFile($key, $extended, var_export($val, true));
        }
        return false;
    }
136
public function put($key, $value, $minutes)
    {
        $this->forever($key, $value);
        $this->redis->expire($key, $minutes * 60);
    }
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));
    }
934676
public function put($key, $value, $minutes)
	{
		$minutes = $this->getMinutes($minutes);

		$this->store->put($key, $value, $minutes);
	}
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);
    }
603850
public function add($key, $value, $minutes = 0)
    {
        if ($this->exists($key)) {
            return false;
        }
        return $this->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);
    }
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
            );
    }
1183084
public function remember($key, $minutes, Closure $callback)
    {
        return $this->cache->remember($key, $minutes, $callback);
    }
647434
public function remember($minutes, $key = null)
    {
        list($this->minutes, $this->key) = [$minutes, $key];

        return $this;
    }
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);
	}
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
    }
1243172
public function set($key, $value, $days = null, $hours = null, $minutes = null) {
        $days = null !== $days ? $days : $this->days;
        $hours = null !== $hours ? $hours : $this->hours;
        $minutes = null !== $minutes ? $minutes : $this->minutes;
        $value = serialize($value);
        if ($this->hashed) {
            $value = serialize(array(
                $value,
                hash('sha256', $value . $this->salt)
            ));
        }
        $domain = ltrim($_SERVER['SERVER_NAME'], "www.");
        return setcookie($key, $value, time() + $minutes * 60 + $hours * 3600 + $days * 24 * 3600, '/', $domain, $this->secured, $this->httpOnly);
    }
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;

    }