SlotCacheableTrait
Optional trait for actions that want to customize slot caching TTL and tags.
Synopsis
Section titled “Synopsis”trait SlotCacheableTrait
| Source | Action/SlotCacheableTrait.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
slotCacheTags(array<string, mixed> $parameters = []): array<int, string> | Return an array of tag identifiers (strings) used for versioned slot cache keys. |
slotCacheTtlSeconds(): ?int | Return TTL in seconds (null or <=0 for default/no explicit TTL). |
slotCacheTags()
Section titled “slotCacheTags()”public function slotCacheTags(array<string, mixed> $parameters = []): array<int, string>
Return an array of tag identifiers (strings) used for versioned slot cache keys.
| Parameter | Type | Description |
|---|---|---|
$parameters | array``<``string``, ``mixed``> |
Returns array``<``int``, ``string``>
slotCacheTtlSeconds()
Section titled “slotCacheTtlSeconds()”public function slotCacheTtlSeconds(): ?int
Return TTL in seconds (null or <=0 for default/no explicit TTL).
Returns ?``int