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
expiresAfter(int|DateInterval|null $time)
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
set(mixed $value)
No description
CacheItem
expiresAt(DateTimeInterface|null $expiration)
No description
CacheItem
expiresAfter(int|DateInterval|null $time)
No description
DateTime|null
getExpirationDate()
No description