KeyWritten.php 676B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace Illuminate\Cache\Events;
  3. class KeyWritten extends CacheEvent
  4. {
  5. /**
  6. * The value that was written.
  7. *
  8. * @var mixed
  9. */
  10. public $value;
  11. /**
  12. * The number of minutes the key should be valid.
  13. *
  14. * @var int
  15. */
  16. public $minutes;
  17. /**
  18. * Create a new event instance.
  19. *
  20. * @param string $key
  21. * @param mixed $value
  22. * @param int $minutes
  23. * @param array $tags
  24. * @return void
  25. */
  26. public function __construct($key, $value, $minutes, $tags = [])
  27. {
  28. parent::__construct($key, $tags);
  29. $this->value = $value;
  30. $this->minutes = $minutes;
  31. }
  32. }