Cache.php 1.3KB

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