Метод |
Описание |
|
__construct ( string $key, Repository $repository ) |
|
|
__destruct ( ) |
When this item is being killed, we should no longer keep its value around
in the repository. Free up some memory! |
|
expiresAfter ( $time ) |
|
|
expiresAt ( $expiration ) |
|
|
get ( ) |
|
|
getExpiration ( ) : integer |
Returns the set expiration time in integer form (as it's what
KeyValueStore expects). |
|
getKey ( ) |
|
|
hasChanged ( ) : boolean |
We'll want to know if this Item was altered (value or expiration date)
once we'll want to store it. |
|
isExpired ( ) : boolean |
Returns true if the item is already expired, false otherwise. |
|
isHit ( ) |
|
|
overrideIsHit ( boolean $isHit ) |
Allow isHit to be override, in case it's a value that is returned from
memory, when a value is being saved deferred. |
|
set ( $value ) |
|
|