<?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. }
每天laravel-20160707|KeyWritten
原创lijingsan1 博主文章分类:php ©著作权
©著作权归作者所有:来自51CTO博客作者lijingsan1的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
laravel实现高并发限流解决方案之令牌桶算法
限流 laravel限流 高并发
php App redis