TypedItem
final class TypedItem implements CacheItemInterface (View source)
A cache item.
This class will be used by MemoryCacheItemPool and SysVCacheItemPool on PHP 8.0 and above. It is compatible with psr/cache 3.0 (PSR-6).
Methods
__construct(string $key)
No description
string
getKey()
{@inheritdoc}
mixed
get()
{@inheritdoc}
bool
isHit()
{@inheritdoc}
expiresAfter($time)
{@inheritdoc}
currentTime()
No description
Details
__construct(string $key)
No description
string
getKey()
{@inheritdoc}
mixed
get()
{@inheritdoc}
bool
isHit()
{@inheritdoc}
TypedItem
set(mixed $value)
{@inheritdoc}
TypedItem
expiresAt($expiration)
{@inheritdoc}
TypedItem
expiresAfter($time)
{@inheritdoc}
protected DateTime
currentTime()
No description