PHP 클래스 MatthiasMullie\Scrapbook\Psr6\Item

저자: Matthias Mullie ([email protected])
상속: implements Psr\Cache\CacheItemInterface
파일 보기 프로젝트 열기: matthiasmullie/scrapbook

보호된 프로퍼티들

프로퍼티 타입 설명
$changed boolean
$expire integer
$hash string
$isHit boolean
$key string
$repository Repository
$value mixed

공개 메소드들

메소드 설명
__construct ( string $key, Repository $repository )
__destruct ( ) When this item is being killed, we should no longer keep its value around in the repository. Free up some memory!
expiresAfter ( $time )
expiresAt ( $expiration )
get ( )
getExpiration ( ) : integer Returns the set expiration time in integer form (as it's what KeyValueStore expects).
getKey ( )
hasChanged ( ) : boolean We'll want to know if this Item was altered (value or expiration date) once we'll want to store it.
isExpired ( ) : boolean Returns true if the item is already expired, false otherwise.
isHit ( )
overrideIsHit ( boolean $isHit ) Allow isHit to be override, in case it's a value that is returned from memory, when a value is being saved deferred.
set ( $value )

메소드 상세

__construct() 공개 메소드

public __construct ( string $key, Repository $repository )
$key string
$repository Repository

__destruct() 공개 메소드

When this item is being killed, we should no longer keep its value around in the repository. Free up some memory!
public __destruct ( )

expiresAfter() 공개 메소드

public expiresAfter ( $time )

expiresAt() 공개 메소드

public expiresAt ( $expiration )

get() 공개 메소드

public get ( )

getExpiration() 공개 메소드

Returns the set expiration time in integer form (as it's what KeyValueStore expects).
public getExpiration ( ) : integer
리턴 integer

getKey() 공개 메소드

public getKey ( )

hasChanged() 공개 메소드

We'll want to know if this Item was altered (value or expiration date) once we'll want to store it.
public hasChanged ( ) : boolean
리턴 boolean

isExpired() 공개 메소드

Returns true if the item is already expired, false otherwise.
public isExpired ( ) : boolean
리턴 boolean

isHit() 공개 메소드

public isHit ( )

overrideIsHit() 공개 메소드

Allow isHit to be override, in case it's a value that is returned from memory, when a value is being saved deferred.
public overrideIsHit ( boolean $isHit )
$isHit boolean

set() 공개 메소드

public set ( $value )

프로퍼티 상세

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

protected bool $changed
리턴 boolean

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

protected int $expire
리턴 integer

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

protected string $hash
리턴 string

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

protected bool $isHit
리턴 boolean

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

protected string $key
리턴 string

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

protected Repository,MatthiasMullie\Scrapbook\Psr6 $repository
리턴 Repository

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

protected mixed $value
리턴 mixed