Store an item in the cache if the key doesn't exist.

@param string|array $key
@param mixed        $value
@param int          $minutes

@return bool
483889
public function add($key, $value, $minutes = 0): bool
    {
        $options = ($minutes === 0) ? [] : ['expiry' => ($minutes * 60)];
        try {
            $this->bucket->insert($this->resolveKey($key), $value, $options);

            return true;
        } catch (CouchbaseException $e) {
            return false;
        }
    }
274469
public function store($cacheKey, $value, $minutes = 30)
    {
        $key = array_search($cacheKey, $this->cachedKeys);

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

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

        $this->cache->put($key, $value, $minutes);
    }
930856
public function put($key, $value, $minutes)
	{
		$file = $this->path($key);

		$data = array(
			'time'  => time(),
			'value' => $value,
			'ttl'   => $this->expiration($minutes)
		);

		return $this->writeCacheFile($file, $data);
	}
1287087
public function put($key, $value, $minutes)
	{
		return eaccelerator_put($this->id($key), $value, $minutes * 60);
	}
603850
public function add($key, $value, $minutes = 0)
    {
        if ($this->exists($key)) {
            return false;
        }
        return $this->put($key, $value, $minutes);
    }
298958
public function add($key, $value, $minutes)
    {
        return $this->cache->add($key, $value, $minutes);
    }
889192
public function add($key, $value, $minutes)
	{
		return $this->memcache->add($this->prefix.$key, $value, false, $minutes * 60);
	}
1074595
public function put($key, $value, $minutes)
  {
    wp_cache_set($key, $value, $this->getPrefix(), ceil($minutes * 60));
  }
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);

        }
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);
    }
1072269
public function put($key, $value, $minutes)
	{
		xcache_set($this->prefix.$key, $value, $minutes * 60);
	}
760580
public function put($key, $value, $minutes = 0) {
        $this->memcached->set($key, serialize($value), $minutes * 60);
    }
513049
public function put($key, $value, $minutes = 0) {
        file_put_contents($this->baseDir . '/' . md5($key), serialize($value));
    }
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);
	}
615022
public function put($key, $value, $minutes)
    {
        return $this->memcache->set($this->key . $key, $value, $minutes * 60);
    }
477796
public function rememberMany(array $keys, $minutes, Closure $callback)
    {
        $values = $this->getMany($keys);

        $items = Arr::where($values, function ($key, $value) {
            return is_null($value);
        });

        if (! empty($items)) {
            $items = array_combine(array_keys($items), $callback(array_keys($items)));

            $this->putMany($items, $minutes);

            $values = array_replace($values, $items);
        }

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

		return true;
	}