Skip to content

Commit e8b57b2

Browse files
authored
Release v0.14.0-beta1 (alexjustesen#940)
1 parent e452abf commit e8b57b2

File tree

8 files changed

+128
-105
lines changed

8 files changed

+128
-105
lines changed

_ide_helper.php

Lines changed: 35 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4342,7 +4342,7 @@ public static function macroCall($method, $parameters)
43424342
*/
43434343
public static function lock($name, $seconds = 0, $owner = null)
43444344
{
4345-
/** @var \Illuminate\Cache\DatabaseStore $instance */
4345+
/** @var \Illuminate\Cache\FileStore $instance */
43464346
return $instance->lock($name, $seconds, $owner);
43474347
}
43484348
/**
@@ -4355,54 +4355,65 @@ public static function lock($name, $seconds = 0, $owner = null)
43554355
*/
43564356
public static function restoreLock($name, $owner)
43574357
{
4358-
/** @var \Illuminate\Cache\DatabaseStore $instance */
4358+
/** @var \Illuminate\Cache\FileStore $instance */
43594359
return $instance->restoreLock($name, $owner);
43604360
}
43614361
/**
4362-
* Remove an item from the cache if it is expired.
4362+
* Remove all items from the cache.
43634363
*
4364-
* @param string $key
43654364
* @return bool
43664365
* @static
43674366
*/
4368-
public static function forgetIfExpired($key)
4367+
public static function flush()
43694368
{
4370-
/** @var \Illuminate\Cache\DatabaseStore $instance */
4371-
return $instance->forgetIfExpired($key);
4369+
/** @var \Illuminate\Cache\FileStore $instance */
4370+
return $instance->flush();
43724371
}
43734372
/**
4374-
* Remove all items from the cache.
4373+
* Get the full path for the given cache key.
43754374
*
4376-
* @return bool
4375+
* @param string $key
4376+
* @return string
43774377
* @static
43784378
*/
4379-
public static function flush()
4379+
public static function path($key)
43804380
{
4381-
/** @var \Illuminate\Cache\DatabaseStore $instance */
4382-
return $instance->flush();
4381+
/** @var \Illuminate\Cache\FileStore $instance */
4382+
return $instance->path($key);
43834383
}
43844384
/**
4385-
* Get the underlying database connection.
4385+
* Get the Filesystem instance.
43864386
*
4387-
* @return \Illuminate\Database\MySqlConnection
4387+
* @return \Illuminate\Filesystem\Filesystem
43884388
* @static
43894389
*/
4390-
public static function getConnection()
4390+
public static function getFilesystem()
43914391
{
4392-
/** @var \Illuminate\Cache\DatabaseStore $instance */
4393-
return $instance->getConnection();
4392+
/** @var \Illuminate\Cache\FileStore $instance */
4393+
return $instance->getFilesystem();
4394+
}
4395+
/**
4396+
* Get the working directory of the cache.
4397+
*
4398+
* @return string
4399+
* @static
4400+
*/
4401+
public static function getDirectory()
4402+
{
4403+
/** @var \Illuminate\Cache\FileStore $instance */
4404+
return $instance->getDirectory();
43944405
}
43954406
/**
4396-
* Specify the name of the connection that should be used to manage locks.
4407+
* Set the cache directory where locks should be stored.
43974408
*
4398-
* @param \Illuminate\Database\ConnectionInterface $connection
4399-
* @return \Illuminate\Cache\DatabaseStore
4409+
* @param string|null $lockDirectory
4410+
* @return \Illuminate\Cache\FileStore
44004411
* @static
44014412
*/
4402-
public static function setLockConnection($connection)
4413+
public static function setLockDirectory($lockDirectory)
44034414
{
4404-
/** @var \Illuminate\Cache\DatabaseStore $instance */
4405-
return $instance->setLockConnection($connection);
4415+
/** @var \Illuminate\Cache\FileStore $instance */
4416+
return $instance->setLockDirectory($lockDirectory);
44064417
}
44074418
/**
44084419
* Get the cache key prefix.
@@ -4412,7 +4423,7 @@ public static function setLockConnection($connection)
44124423
*/
44134424
public static function getPrefix()
44144425
{
4415-
/** @var \Illuminate\Cache\DatabaseStore $instance */
4426+
/** @var \Illuminate\Cache\FileStore $instance */
44164427
return $instance->getPrefix();
44174428
}
44184429

composer.lock

Lines changed: 53 additions & 53 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)