KeyWritten
extends CacheEvent
in package
Table of Contents
- $key : string
- The key of the event.
- $minutes : int
- The number of minutes the key should be valid.
- $tags : array<string|int, mixed>
- The tags that were assigned to the key.
- $value : mixed
- The value that was written.
- __construct() : void
- Create a new event instance.
- setTags() : $this
- Set the tags for the cache event.
Properties
$key
The key of the event.
public
string
$key
$minutes
The number of minutes the key should be valid.
public
int
$minutes
$tags
The tags that were assigned to the key.
public
array<string|int, mixed>
$tags
$value
The value that was written.
public
mixed
$value
Methods
__construct()
Create a new event instance.
public
__construct(string $key, mixed $value, int $minutes[, array<string|int, mixed> $tags = [] ]) : void
Parameters
- $key : string
- $value : mixed
- $minutes : int
- $tags : array<string|int, mixed> = []
Return values
void —setTags()
Set the tags for the cache event.
public
setTags(array<string|int, mixed> $tags) : $this
Parameters
- $tags : array<string|int, mixed>