PHP Класс MatthiasMullie\Scrapbook\Psr6\Item

Автор: Matthias Mullie ([email protected])
Наследование: implements Psr\Cache\CacheItemInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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