Set the value in the cache implementation.

@param $key
@param $value
@param int $minutes
@return void
760580
public function put($key, $value, $minutes = 0) {
        $this->memcached->set($key, serialize($value), $minutes * 60);
    }
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);
        }
    }
496004
public function set($key, $value) {
        $key = $this->formatKey($key);
        array_set($this->headers, $key, [$value]);
    }
447465
public function add($key, $value, $minutes)
    {
        if (is_array($key) && is_array($value)) {
            return $this->addMany(array_combine($key, $value), $minutes);
        }

        return parent::add($key, $value, $minutes);
    }
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);
    }
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'));
        }
    }
712576
public function put($key, $value, $minutes)
    {
        if ((int)$minutes <= 0) {
            return null;
        }

        $value = $this->expiration($minutes) . serialize($value);

        return file_put_contents($this->path . $key, $value, LOCK_EX);
    }
674900
public function add($key, $value, $minutes)
    {
        // If the laravel version is 5.8 or higher then convert minutes to seconds.
        if ($this->laravelVersion !== null
            && is_int($minutes)
            && version_compare($this->laravelVersion, '5.8', '>=')
        ) {
            $minutes = $minutes * 60;
        }

        $this->cache()->put($key, $value, $minutes);
    }
200860
public function put($key, $value, $minutes)
    {
        return wincache_ucache_add($this->key . $key, $value, $minutes * 60);
    }
905007
private function setValue($key, $value)
    {
        $this->$key = $value;

        if ($key == 'expires_in') $this->setExpiration($value);
    }
1005430
public function add( $key, $value, $minutes )
	{
		$minutes = $this->getMinutes( $minutes );

		if ( is_null( $minutes ) )
		{
			return false;
		}

		if ( method_exists( $this->store, 'add' ) )
		{
			return $this->store->add( $this->itemKey( $key ), $value, $minutes );
		}

		if ( is_null( $this->get( $key ) ) )
		{
			$this->put( $key, $value, $minutes );

			return true;
		}

		return false;
	}
889192
public function add($key, $value, $minutes)
	{
		return $this->memcache->add($this->prefix.$key, $value, false, $minutes * 60);
	}
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
            );
    }
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);
    }
1035487
public function put($key, $value, $minutes)
	{
		@list($group, $name) = $this->id($key);

		$dir = $this->directory . DS . $group;

		// If the folder doesn't exist try to create it
		if (!is_dir($dir))
		{
			// Make sure the index file is there
			$indexFile = $dir . DS . 'index.html';
			@mkdir($dir) && file_put_contents($indexFile, '<!DOCTYPE html><title></title>');
		}

		// Make sure the folder exists
		if (!is_dir($dir))
		{
			return false;
		}

		$this->engine->setOption('cacheDir', $this->directory . DS . $group . DS);

		return $this->engine->save($value, $name, $group);
	}
603850
public function add($key, $value, $minutes = 0)
    {
        if ($this->exists($key)) {
            return false;
        }
        return $this->put($key, $value, $minutes);
    }
1019
public function put($key, $value, $minutes)
    {
        $this->ensureCacheDirectoryExists($path = $this->path($key));

        $this->files->put(
            $path, $this->expiration($minutes).serialize($value), true
        );
    }