Quasardb API for PHP
Introduction Installation Compilation Configuration API Reference

Namespaces

  • qdb

Classes

  • QdbAliasAlreadyExistsException
  • QdbAliasNotFoundException
  • QdbBatch
  • QdbBatchResult
  • QdbBlob
  • QdbCluster
  • QdbConnectionException
  • QdbContainerEmptyException
  • QdbDeque
  • QdbEntry
  • QdbEntryCollection
  • QdbException
  • QdbExpirableEntry
  • QdbIncompatibleTypeException
  • QdbInputException
  • QdbInteger
  • QdbOperationDisabledException
  • QdbOperationException
  • QdbProtocolException
  • QdbSystemException
  • QdbTag
  • QdbTagCollection

Class QdbExpirableEntry

An entry which can expire.

qdb\QdbEntry
Extended by qdb\QdbExpirableEntry

Direct known subclasses

qdb\QdbBlob, qdb\QdbInteger
Abstract
Namespace: qdb
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

qdb\QdbAliasNotFoundException

Example

// Expire entry in two days
$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

qdb\QdbAliasNotFoundException

Example

// Expire entry in two days
$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

qdb\QdbAliasNotFoundException

Example

$expiryTime = $cluster->blob('Milk bottle')->getExpiryTime();
Methods inherited from qdb\QdbEntry
alias(), attachTag(), attachTags(), detachTag(), getTags(), hasTag(), remove()
Copyright 2009-2018 quasardb SAS Documentation generated by ApiGen