PHP 클래스 Phergie_Plugin_Cache, phergie

저자: Phergie Development Team ([email protected])
상속: extends Phergie_Plugin_Abstract
파일 보기 프로젝트 열기: phergie/phergie 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cache array Key-value data storage for the cache

공개 메소드들

메소드 설명
expire ( string $key ) : boolean Expires a value that has exceeded its time to live.
fetch ( string $key ) : mixed Fetches a previously stored value.
store ( string $key, mixed $data, integer | null $ttl = 3600, boolean $overwrite = true ) : boolean Stores a value in the cache.

메소드 상세

expire() 공개 메소드

Expires a value that has exceeded its time to live.
public expire ( string $key ) : boolean
$key string Key associated with the value to expire
리턴 boolean

fetch() 공개 메소드

Fetches a previously stored value.
public fetch ( string $key ) : mixed
$key string Key associated with the value
리턴 mixed Stored value or FALSE if no value or an expired value is associated with the specified key

store() 공개 메소드

Stores a value in the cache.
public store ( string $key, mixed $data, integer | null $ttl = 3600, boolean $overwrite = true ) : boolean
$key string Key to associate with the value
$data mixed Data to be stored
$ttl integer | null Time to live in seconds or NULL for forever
$overwrite boolean TRUE to overwrite any existing value associated with the specified key
리턴 boolean

프로퍼티 상세

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

Key-value data storage for the cache
protected array $cache
리턴 array