Class QdbExpirableEntry
An entry which can expire.
-
qdb\QdbEntry
-
qdb\QdbExpirableEntry
Methods summary
public
|
#
expiresAt( integer $expiry_time )
Sets the absolute expiration time of the entry.
Sets the absolute expiration time of the entry.
Parameters
- $expiry_time
- The absolute expiration time, in seconds since epoch (
0 means "never expires").
Throws
Example
$cluster->blob('Milk bottle')->expiresAt(time()+172800);
|
public
|
#
expiresFromNow( integer $time_delta )
Sets the relative expiration time of the entry.
Sets the relative expiration time of the entry.
Parameters
- $time_delta
- The relative expiration time, in seconds.
Throws
Example
$cluster->blob('Milk bottle')->expiresFromNow(172800);
|
public
integer
|
#
getExpiryTime( )
Gets the expiration time of the entry.
Gets the expiration time of the entry.
Returns
integer The absolute expiration time, in seconds since epoch (0 means "never expires").
Throws
Example
$expiryTime = $cluster->blob('Milk bottle')->getExpiryTime();
|