CacheHit.php 493B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Illuminate\Cache\Events;
  3. class CacheHit extends CacheEvent
  4. {
  5. /**
  6. * The value that was retrieved.
  7. *
  8. * @var mixed
  9. */
  10. public $value;
  11. /**
  12. * Create a new event instance.
  13. *
  14. * @param string $key
  15. * @param mixed $value
  16. * @param array $tags
  17. * @return void
  18. */
  19. public function __construct($key, $value, array $tags = [])
  20. {
  21. parent::__construct($key, $tags);
  22. $this->value = $value;
  23. }
  24. }