每天laravel-20160707|KeyWritten
2016-04-07 10:05
525 查看
<?php namespace Illuminate\Cache\Events; // name space class KeyWritten { /** * The key that was written. * * @var string */ public $key;// a key /** * The value that was written. * * @var mixed */ public $value;// a value /** * The number of minutes the key should be valid. * * @var int */ public $minutes;// a save times , life cycle, /** * The tags that were assigned to the key. * * @var array */ public $tags;// a 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;//key $this->tags = $tags;// tags $this->value = $value;// value $this->minutes = $minutes;//minutes }// a new instance about the construct, a // why use minutes,because we need to tell the function the life cycle. }
相关文章推荐
- 教你如何写thinkphp多表查询语句
- 每天laravel-20160706|KeyForgotten
- 每天laravel-20160706|KeyForgotten
- 每天laravel-20160705|CahceMissed
- 每天laravel-20160705|CahceMissed
- 每天laravel-20160704|CahceHit
- zabbix3.0 php
- 每天laravel-20160704|CahceHit
- 每天laravel-20160703|ClearCommand
- 每天laravel-20160703|ClearCommand
- 每天laravel-20160702|CacheTableCommand
- php中高级基础知识点
- 每天laravel-20160702|CacheTableCommand
- PHP调用java的class
- php 实现进制相互转换
- NTP服务器地址,亲测国内速度较快
- 简单快捷PHP数组赋值方法详解
- php获取数组长度的方法(有实例)
- PHP sprintf() 函数
- PHP如何实现异步数据调用