Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

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