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

@param  string  $key
@param  mixed   $value
@param  int     $minutes
@return void
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);
    }
502695
public function put($value, $minutes)
	{
		\Cookie::set($this->getKey(), json_encode($value), $minutes);
	}
1072269
public function put($key, $value, $minutes)
	{
		xcache_set($this->prefix.$key, $value, $minutes * 60);
	}
777753
public function put($key, $value, $seconds)
    {
        $this->storage[$key] = [
            'value' => $value,
            'expiresAt' => $this->calculateExpiration($seconds),
        ];

        return true;
    }
1183084
public function remember($key, $minutes, Closure $callback)
    {
        return $this->cache->remember($key, $minutes, $callback);
    }
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);
    }
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));
    }
661780
public function put($value, $minutes)
	{
		\Cookie::set($this->getKey(), serialize($value), $minutes * 60);
	}
222309
public function add($key, $value, $minutes)
    {
        return $this->memcached->add($this->prefix.$key, $value, $this->toTimestamp($minutes));
    }
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);
    }
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'));
        }
    }
784116
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)) {
                $items = array_combine($this->tagKeys(array_keys($items)), array_values($items));

                $this->store->putMany($items, $minutes);
            }
        }
    }
594042
public function put($key, $value, $minutes)
	{
		return $this->store->put($this->taggedItemKey($key), $value, $minutes);
	}
1074595
public function put($key, $value, $minutes)
  {
    wp_cache_set($key, $value, $this->getPrefix(), ceil($minutes * 60));
  }
346730
public function putMany( array $values, $minutes )
	{
		foreach ( $values as $key => $value )
			$this->put( $key, $value, $minutes );
	}
418096
public function put($key, $value, $minutes)
        {
            $cache = $this->db()->select("entity_name = '" . md5($this->_namespace) . "' AND table_name = '" . md5($key) . "'", true);
            if (empty($cache)) {
                $cache = em($this->config->entity, $this->config->table);
            } else {
                $cache->delete();
                $cache = em($this->config->entity, $this->config->table);
            }
            $data       = serialize(($this->expiration($minutes) + time()) . '%%%%%:::::' . $value);

            $cache->setDateAdd(date('Y-m-d H:i:s'))->setEntityName(md5($this->_namespace))->setTableName(md5($key))->setTableId(999)->setData($data);
            $newCache = $cache->save();
            return $this;
        }
71245
public static function saveCache(string $key, $value, int $seconds = 0): bool
    {
        return self::getInstance()->save($key, $value, $seconds);
    }