Cache.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace Illuminate\Support\Facades;
  3. /**
  4. * @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names)
  5. * @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, mixed $owner = null)
  6. * @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
  7. * @method static \Illuminate\Contracts\Cache\Repository store(string|null $name = null)
  8. * @method static \Illuminate\Contracts\Cache\Store getStore()
  9. * @method static bool add(string $key, $value, \DateTimeInterface|\DateInterval|int $ttl = null)
  10. * @method static bool flush()
  11. * @method static bool forever(string $key, $value)
  12. * @method static bool forget(string $key)
  13. * @method static bool has(string $key)
  14. * @method static bool missing(string $key)
  15. * @method static bool put(string $key, $value, \DateTimeInterface|\DateInterval|int $ttl = null)
  16. * @method static int|bool decrement(string $key, $value = 1)
  17. * @method static int|bool increment(string $key, $value = 1)
  18. * @method static mixed get(string $key, mixed $default = null)
  19. * @method static mixed pull(string $key, mixed $default = null)
  20. * @method static mixed remember(string $key, \DateTimeInterface|\DateInterval|int $ttl, \Closure $callback)
  21. * @method static mixed rememberForever(string $key, \Closure $callback)
  22. * @method static mixed sear(string $key, \Closure $callback)
  23. *
  24. * @see \Illuminate\Cache\CacheManager
  25. * @see \Illuminate\Cache\Repository
  26. */
  27. class Cache extends Facade
  28. {
  29. /**
  30. * Get the registered name of the component.
  31. *
  32. * @return string
  33. */
  34. protected static function getFacadeAccessor()
  35. {
  36. return 'cache';
  37. }
  38. }