Quasardb API for PHP
Introduction Installation Compilation Configuration API Reference

Classes

  • QdbBatch
  • QdbBatchResult
  • QdbBlob
  • QdbCluster
  • QdbDeque
  • QdbEntry
  • QdbEntryCollection
  • QdbExpirableEntry
  • QdbHashSet
  • QdbInteger
  • QdbTag
  • QdbTagCollection

Exceptions

  • QdbAliasAlreadyExistsException
  • QdbAliasNotFoundException
  • QdbConnectionException
  • QdbContainerEmptyException
  • QdbException
  • QdbIncompatibleTypeException
  • QdbInputException
  • QdbOperationDisabledException
  • QdbOperationException
  • QdbProtocolException
  • QdbSystemException

Class QdbExpirableEntry

An entry which can expire.

QdbEntry
Extended by QdbExpirableEntry

Direct known subclasses

QdbBlob, QdbInteger
Abstract
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

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

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

QdbAliasNotFoundException

Example

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