每天laravel-20160707|KeyWritten

来源:互联网 发布:sap hana数据库价格 编辑:程序博客网 时间:2024/06/06 05:07
<?phpnamespace Illuminate\Cache\Events;// name spaceclass 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.}
0 0
原创粉丝点击