Item
class Item implements CacheItemInterface (View source)
Properties
protected | $key | ||
protected | $data | ||
protected | $hit | ||
protected | $expiration |
Methods
__construct($key, $hit = false)
No description
getKey()
{@inheritdoc}
get()
{@inheritdoc}
isHit()
{@inheritdoc}
set($value)
{@inheritdoc}
expiresAt($expiration = null)
{@inheritdoc}
expiresAfter($time)
{@inheritdoc}
mixed
getRaw()
Returns the raw value, regardless of hit status.
int
getTtl()
Get currently (calculated) ttl of cache item
int
getExpiration()
Get expiration time (absolute)
__toString()
No description
Details
at line 36
__construct($key, $hit = false)
at line 51
getKey()
{@inheritdoc}
at line 60
get()
{@inheritdoc}
at line 69
isHit()
{@inheritdoc}
at line 79
set($value)
{@inheritdoc}
at line 90
expiresAt($expiration = null)
{@inheritdoc}
at line 107
expiresAfter($time)
{@inheritdoc}
at line 137
mixed
getRaw()
Returns the raw value, regardless of hit status.
Although not part of the CacheItemInterface, this method is used by the pool for extracting information for saving.
at line 152
int
getTtl()
Get currently (calculated) ttl of cache item
This method is not part of the CacheItemInterface.
at line 175
int
getExpiration()
Get expiration time (absolute)
This method is not part of the CacheItemInterface.