KeyWritten.php
870 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
namespace Illuminate\Cache\Events;
class KeyWritten
{
/**
* The key that was written.
*
* @var string
*/
public $key;
/**
* The value that was written.
*
* @var mixed
*/
public $value;
/**
* The number of minutes the key should be valid.
*
* @var int
*/
public $minutes;
/**
* The tags that were assigned to the key.
*
* @var array
*/
public $tags;
/**
* Create a new event instance.
*
* @param string $key
* @param mixed $value
* @param int $minutes
* @param array $tags
* @return void
*/
public function __construct($key, $value, $minutes, $tags = [])
{
$this->key = $key;
$this->tags = $tags;
$this->value = $value;
$this->minutes = $minutes;
}
}