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: 24 additions & 35 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\FileStore $instance */
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->lock($name, $seconds, $owner);
}
/**
Expand All @@ -4355,65 +4355,54 @@ public static function lock($name, $seconds = 0, $owner = null)
*/
public static function restoreLock($name, $owner)
{
/** @var \Illuminate\Cache\FileStore $instance */
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->restoreLock($name, $owner);
}
/**
* Remove all items from the cache.
*
* @return bool
* @static
*/
public static function flush()
{
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->flush();
}
/**
* Get the full path for the given cache key.
* Remove an item from the cache if it is expired.
*
* @param string $key
* @return string
* @return bool
* @static
*/
public static function path($key)
public static function forgetIfExpired($key)
{
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->path($key);
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->forgetIfExpired($key);
}
/**
* Get the Filesystem instance.
* Remove all items from the cache.
*
* @return \Illuminate\Filesystem\Filesystem
* @return bool
* @static
*/
public static function getFilesystem()
public static function flush()
{
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getFilesystem();
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->flush();
}
/**
* Get the working directory of the cache.
* Get the underlying database connection.
*
* @return string
* @return \Illuminate\Database\MySqlConnection
* @static
*/
public static function getDirectory()
public static function getConnection()
{
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->getDirectory();
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->getConnection();
}
/**
* Set the cache directory where locks should be stored.
* Specify the name of the connection that should be used to manage locks.
*
* @param string|null $lockDirectory
* @return \Illuminate\Cache\FileStore
* @param \Illuminate\Database\ConnectionInterface $connection
* @return \Illuminate\Cache\DatabaseStore
* @static
*/
public static function setLockDirectory($lockDirectory)
public static function setLockConnection($connection)
{
/** @var \Illuminate\Cache\FileStore $instance */
return $instance->setLockDirectory($lockDirectory);
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->setLockConnection($connection);
}
/**
* Get the cache key prefix.
Expand All @@ -4423,7 +4412,7 @@ public static function setLockDirectory($lockDirectory)
*/
public static function getPrefix()
{
/** @var \Illuminate\Cache\FileStore $instance */
/** @var \Illuminate\Cache\DatabaseStore $instance */
return $instance->getPrefix();
}

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"livewire/livewire": "^3.4.4",
"maatwebsite/excel": "^3.1.52",
"maennchen/zipstream-php": "^2.4",
"spatie/laravel-settings": "^2.8.3"
"spatie/laravel-settings": "^2.8.3",
"timokoerber/laravel-one-time-operations": "^1.4"
},
"require-dev": {
"barryvdh/laravel-ide-helper": "^2.13",
Expand Down
69 changes: 68 additions & 1 deletion composer.lock

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