Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 35 additions & 24 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4342,7 +4342,7 @@ public static function macroCall($method, $parameters)
*/
public static function lock($name, $seconds = 0, $owner = null)
{
/** @var \Illuminate\Cache\DatabaseStore $instance */
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->lock($name, $seconds, $owner);
}
/**
Expand All @@ -4355,54 +4355,65 @@ public static function lock($name, $seconds = 0, $owner = null)
*/
public static function restoreLock($name, $owner)
{
/** @var \Illuminate\Cache\DatabaseStore $instance */
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->restoreLock($name, $owner);
}
/**
* Remove an item from the cache if it is expired.
* Remove all items from the cache.
*
* @param string $key
* @return bool
* @static
*/
public static function forgetIfExpired($key)
public static function flush()
{
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->forgetIfExpired($key);
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->flush();
}
/**
* Remove all items from the cache.
* Get the full path for the given cache key.
*
* @return bool
* @param string $key
* @return string
* @static
*/
public static function flush()
public static function path($key)
{
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->flush();
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->path($key);
}
/**
* Get the underlying database connection.
* Get the Filesystem instance.
*
* @return \Illuminate\Database\MySqlConnection
* @return \Illuminate\Filesystem\Filesystem
* @static
*/
public static function getConnection()
public static function getFilesystem()
{
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->getConnection();
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getFilesystem();
}
/**
* Get the working directory of the cache.
*
* @return string
* @static
*/
public static function getDirectory()
{
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getDirectory();
}
/**
* Specify the name of the connection that should be used to manage locks.
* Set the cache directory where locks should be stored.
*
* @param \Illuminate\Database\ConnectionInterface $connection
* @return \Illuminate\Cache\DatabaseStore
* @param string|null $lockDirectory
* @return \Illuminate\Cache\FileStore
* @static
*/
public static function setLockConnection($connection)
public static function setLockDirectory($lockDirectory)
{
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->setLockConnection($connection);
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->setLockDirectory($lockDirectory);
}
/**
* Get the cache key prefix.
Expand All @@ -4412,7 +4423,7 @@ public static function setLockConnection($connection)
*/
public static function getPrefix()
{
/** @var \Illuminate\Cache\DatabaseStore $instance */
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getPrefix();
}

Expand Down
106 changes: 53 additions & 53 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading