Skip to content

TaggableCacheItemPool

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


  • Full name: \Qubus\Cache\Psr6\TaggableCacheItemPool
  • Parent interfaces: CacheItemPoolInterface

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. - InvalidArgumentException


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. - InvalidArgumentException