PHP Class PHPDaemon\Cache\Item

Author: Vasily Zorin ([email protected])
Inheritance: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
Afficher le fichier Open project: kakserpom/phpdaemon

Méthodes publiques

Свойство Type Description
$expire Expire time
$hits Hits counter

Protected Properties

Свойство Type Description
$listeners Listeners
$value Value

Méthodes publiques

Méthode Description
__construct ( $value ) Constructor
addListener ( callable $cb ) Adds listener callback
getHits ( ) : integer Get hits number
getValue ( ) : mixed Get value
setValue ( mixed $value ) Sets the value

Method Details

__construct() public méthode

Constructor
public __construct ( $value )

addListener() public méthode

Adds listener callback
public addListener ( callable $cb )
$cb callable

getHits() public méthode

Get hits number
public getHits ( ) : integer
Résultat integer

getValue() public méthode

Get value
public getValue ( ) : mixed
Résultat mixed

setValue() public méthode

Sets the value
public setValue ( mixed $value )
$value mixed

Property Details

$expire public_oe property

Expire time
public $expire

$hits public_oe property

Hits counter
public $hits

$listeners protected_oe property

Listeners
protected $listeners

$value protected_oe property

Value
protected $value