PHP 클래스 PHPDaemon\Cache\Item

저자: Vasily Zorin ([email protected])
상속: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon

공개 프로퍼티들

프로퍼티 타입 설명
$expire Expire time
$hits Hits counter

보호된 프로퍼티들

프로퍼티 타입 설명
$listeners Listeners
$value Value

공개 메소드들

메소드 설명
__construct ( $value ) Constructor
addListener ( callable $cb ) Adds listener callback
getHits ( ) : integer Get hits number
getValue ( ) : mixed Get value
setValue ( mixed $value ) Sets the value

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( $value )

addListener() 공개 메소드

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

getHits() 공개 메소드

Get hits number
public getHits ( ) : integer
리턴 integer

getValue() 공개 메소드

Get value
public getValue ( ) : mixed
리턴 mixed

setValue() 공개 메소드

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

프로퍼티 상세

$expire 공개적으로 프로퍼티

Expire time
public $expire

$hits 공개적으로 프로퍼티

Hits counter
public $hits

$listeners 보호되어 있는 프로퍼티

Listeners
protected $listeners

$value 보호되어 있는 프로퍼티

Value
protected $value