CacheHit
extends CacheEvent
in package
Table of Contents
- $key : string
- The key of the event.
- $tags : array<string|int, mixed>
- The tags that were assigned to the key.
- $value : mixed
- The value that was retrieved.
- __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
$tags
The tags that were assigned to the key.
public
array<string|int, mixed>
$tags
$value
The value that was retrieved.
public
mixed
$value
Methods
__construct()
Create a new event instance.
public
__construct(string $key, mixed $value[, array<string|int, mixed> $tags = [] ]) : void
Parameters
- $key : string
- $value : mixed
- $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>