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

@param string $key
@param mixed  $value
@param int    $minutes
136
public function put($key, $value, $minutes)
    {
        $this->forever($key, $value);
        $this->redis->expire($key, $minutes * 60);
    }
1074595
public function put($key, $value, $minutes)
  {
    wp_cache_set($key, $value, $this->getPrefix(), ceil($minutes * 60));
  }
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);
            }
        }
    }
1287087
public function put($key, $value, $minutes)
	{
		return eaccelerator_put($this->id($key), $value, $minutes * 60);
	}
856803
public function remember($key, $minutes, Closure $callback)
	{
		// If the item exists in the cache we will just return this immediately
		// otherwise we will execute the given Closure and cache the result
		// of that execution for the given number of minutes in storage.
		if ($this->has($key)) return $this->get($key);

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

		return $value;
	}
509687
public function put($key, $value, $minutes = null)
    {
        $this->pushStandardKeys($this->tags->getNamespace(), $key);

        parent::put($key, $value, $minutes);
    }
1284620
public function putMany(array $items, $minutes)
    {
        $items = array_combine($this->prefixKeys(array_keys($items)), array_values($items));

        $this->storage = array_merge($this->storage, $items);
    }
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);

        }
1012827
public function putMany( array $values, $minutes )
	{
		$minutes = $this->getMinutes( $minutes );

		if ( !is_null( $minutes ) )
		{
			$this->store->putMany( $values, $minutes );

			foreach ( $values as $key => $value )
			{
				$this->fireCacheEvent( 'write', [$key, $value, $minutes] );
			}
		}
	}
1283958
public function add($key, $value, $minutes)
    {
        $lua = "return redis.call('exists',KEYS[1])<1 and redis.call('setex',KEYS[1],ARGV[2],ARGV[1])";

        return (bool) $this->connection()->eval(
            $lua, 1, $this->prefix.$key, $this->serialize($value), (int) max(1, $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
    }
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);
    }
230771
public function put($key, $value, $minutes)
    {
        if (is_array($key) && is_array($value)) {
            $this->putMany(array_combine($key, $value), $minutes);
        } else {
            parent::put($key, $value, $minutes);
        }
    }
301498
public function write($key, $value)
    {
        $key = $this->_key($key);
        $duration = $this->_config['duration'];

        return wincache_ucache_set($key, $value, $duration);
    }
71245
public static function saveCache(string $key, $value, int $seconds = 0): bool
    {
        return self::getInstance()->save($key, $value, $seconds);
    }
647434
public function remember($minutes, $key = null)
    {
        list($this->minutes, $this->key) = [$minutes, $key];

        return $this;
    }
683147
public function put($key, $value, $minutes = null)
    {
        if (is_array($key)) {
            return $this->putMany($key, $value);
        }

        if (! is_null($minutes = $this->getMinutes($minutes))) {
            $this->store->put($this->itemKey($key), $value, $minutes);

            $this->event(new KeyWritten($key, $value, $minutes));
        }
    }