class CacheItem implements CacheItemInterface
protected | $key | ||
protected | $value | ||
protected | $isHit | ||
protected | $expiry | ||
protected | $defaultLifetime | ||
protected | $tags | ||
protected | $prevTags | ||
protected | $innerItem | ||
protected | $poolHash |
getKey() {@inheritdoc} | ||
get() {@inheritdoc} | ||
isHit() {@inheritdoc} | ||
set($value) {@inheritdoc} | ||
expiresAt($expiration) {@inheritdoc} | ||
expiresAfter($time) {@inheritdoc} | ||
CacheItem | tag(string|string[] $tags) Adds a tag to a cache item. | |
array | getPreviousTags() Returns the list of tags bound to the value coming from the pool storage if any. | |
static string | validateKey(string $key) Validates a cache key according to PSR-6. | |
static | log(LoggerInterface $logger = null, $message, $context = array()) Internal logging helper. |
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
{@inheritdoc}
$value |
{@inheritdoc}
$expiration |
{@inheritdoc}
$time |
Adds a tag to a cache item.
string|string[] | $tags | A tag or array of tags |
CacheItem |
InvalidArgumentException | When $tag is not valid |
Returns the list of tags bound to the value coming from the pool storage if any.
array |
Validates a cache key according to PSR-6.
string | $key | The key to validate |
string |
InvalidArgumentException | When $key is not valid |
Internal logging helper.
LoggerInterface | $logger | |
$message | ||
$context |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/CacheItem.html