Skip to content

TaggableCacheItemPool

Interface for invalidating cached items using tags. This interface is a soon-to-be-PSR.

Methods

invalidateTag

Invalidates cached items using a tag.

public invalidateTag(string $tag): bool

Parameters:

Parameter Type Description
$tag string The tag to invalidate

Return Value:

True on success

Throws:

When $tags is not valid.


invalidateTags

Invalidates cached items using tags.

public invalidateTags(string[] $tags): bool

Parameters:

Parameter Type Description
$tags string[] An array of tags to invalidate

Return Value:

True on success

Throws:

When $tags is not valid.



Automatically generated on 2025-10-13