<?php namespace Illuminate\Cache\Events; class KeyForgotten { /** * The key that was forgotten. * * @var string */ public $key;// a key /** * The tags that were assigned to the key. * * @var array */ public $tags;// a tags /** * Create a new event instance. * * @param string $key * @param array $tags * @return void */ public function __construct($key, $tags = []) { $this->key = $key; $this->tags = $tags; }// set key and tag to forgotten }
时间: 2024-10-13 01:26:17