CacheItem
class CacheItem implements CacheItemInterface (View source)
A cache item (entry).
This is not to be created by user libraries. Instead request an item from the pool (frontend).
Properties
protected string | $key | ||
protected mixed | $value | ||
protected bool | $hit | ||
protected DateTime|null | $expirationDate |
Methods
__construct(string $key, bool $hit, mixed $value = null)
Construct item.
string
getKey()
No description
mixed
get()
No description
bool
isHit()
No description
DateTime|null
getExpirationDate()
No description
Details
__construct(string $key, bool $hit, mixed $value = null)
Construct item.
string
getKey()
No description
mixed
get()
No description
bool
isHit()
No description
CacheItem|CacheItem
expiresAt(DateTimeInterface|null $expiration)
No description
CacheItem|CacheItem
expiresAfter(DateInterval|int|null $time)
No description
DateTime|null
getExpirationDate()
No description