2022-12-24 22:10:40 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Illuminate\Support\Facades;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @method static \Illuminate\Contracts\Cache\Repository store(string|null $name = null)
|
|
|
|
* @method static \Illuminate\Contracts\Cache\Repository driver(string|null $driver = null)
|
|
|
|
* @method static \Illuminate\Cache\Repository repository(\Illuminate\Contracts\Cache\Store $store)
|
|
|
|
* @method static void refreshEventDispatcher()
|
|
|
|
* @method static string getDefaultDriver()
|
|
|
|
* @method static void setDefaultDriver(string $name)
|
|
|
|
* @method static \Illuminate\Cache\CacheManager forgetDriver(array|string|null $name = null)
|
|
|
|
* @method static void purge(string|null $name = null)
|
|
|
|
* @method static \Illuminate\Cache\CacheManager extend(string $driver, \Closure $callback)
|
2024-01-31 22:15:08 +08:00
|
|
|
* @method static bool has(array|string $key)
|
2022-12-24 22:10:40 +08:00
|
|
|
* @method static bool missing(string $key)
|
2024-01-31 22:15:08 +08:00
|
|
|
* @method static mixed get(array|string $key, mixed|\Closure $default = null)
|
2022-12-24 22:10:40 +08:00
|
|
|
* @method static array many(array $keys)
|
2024-01-31 22:15:08 +08:00
|
|
|
* @method static iterable getMultiple(iterable $keys, mixed $default = null)
|
|
|
|
* @method static mixed pull(array|string $key, mixed|\Closure $default = null)
|
2022-12-24 22:10:40 +08:00
|
|
|
* @method static bool put(array|string $key, mixed $value, \DateTimeInterface|\DateInterval|int|null $ttl = null)
|
|
|
|
* @method static bool set(string $key, mixed $value, null|int|\DateInterval $ttl = null)
|
|
|
|
* @method static bool putMany(array $values, \DateTimeInterface|\DateInterval|int|null $ttl = null)
|
|
|
|
* @method static bool setMultiple(iterable $values, null|int|\DateInterval $ttl = null)
|
|
|
|
* @method static bool add(string $key, mixed $value, \DateTimeInterface|\DateInterval|int|null $ttl = null)
|
|
|
|
* @method static int|bool increment(string $key, mixed $value = 1)
|
|
|
|
* @method static int|bool decrement(string $key, mixed $value = 1)
|
|
|
|
* @method static bool forever(string $key, mixed $value)
|
|
|
|
* @method static mixed remember(string $key, \Closure|\DateTimeInterface|\DateInterval|int|null $ttl, \Closure $callback)
|
|
|
|
* @method static mixed sear(string $key, \Closure $callback)
|
|
|
|
* @method static mixed rememberForever(string $key, \Closure $callback)
|
|
|
|
* @method static bool forget(string $key)
|
|
|
|
* @method static bool delete(string $key)
|
2024-01-31 22:15:08 +08:00
|
|
|
* @method static bool deleteMultiple(iterable $keys)
|
2022-12-24 22:10:40 +08:00
|
|
|
* @method static bool clear()
|
|
|
|
* @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names)
|
|
|
|
* @method static bool supportsTags()
|
|
|
|
* @method static int|null getDefaultCacheTime()
|
|
|
|
* @method static \Illuminate\Cache\Repository setDefaultCacheTime(int|null $seconds)
|
|
|
|
* @method static \Illuminate\Contracts\Cache\Store getStore()
|
|
|
|
* @method static \Illuminate\Contracts\Events\Dispatcher getEventDispatcher()
|
|
|
|
* @method static void setEventDispatcher(\Illuminate\Contracts\Events\Dispatcher $events)
|
|
|
|
* @method static void macro(string $name, object|callable $macro)
|
|
|
|
* @method static void mixin(object $mixin, bool $replace = true)
|
|
|
|
* @method static bool hasMacro(string $name)
|
|
|
|
* @method static void flushMacros()
|
|
|
|
* @method static mixed macroCall(string $method, array $parameters)
|
|
|
|
* @method static bool flush()
|
|
|
|
* @method static string getPrefix()
|
|
|
|
* @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, string|null $owner = null)
|
|
|
|
* @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
|
|
|
|
*
|
|
|
|
* @see \Illuminate\Cache\CacheManager
|
2024-01-31 22:15:08 +08:00
|
|
|
*
|
|
|
|
* @mixin \Illuminate\Cache\Repository
|
2022-12-24 22:10:40 +08:00
|
|
|
*/
|
|
|
|
class Cache extends Facade
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the registered name of the component.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
protected static function getFacadeAccessor()
|
|
|
|
{
|
|
|
|
return 'cache';
|
|
|
|
}
|
|
|
|
}
|