PHP Class PHPDaemon\Cache\Item

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

Public Properties

Property Type Description
$expire Expire time
$hits Hits counter

Protected Properties

Property Type Description
$listeners Listeners
$value Value

Public Methods

Method 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 method

Constructor
public __construct ( $value )

addListener() public method

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

getHits() public method

Get hits number
public getHits ( ) : integer
return integer

getValue() public method

Get value
public getValue ( ) : mixed
return mixed

setValue() public method

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