PHP 클래스 Pop\Cache\Adapter\File

저자: Nick Sagona, III ([email protected])
상속: implements Pop\Cache\Adapter\AdapterInterface
파일 보기 프로젝트 열기: nicksagona/PopPHP

보호된 프로퍼티들

프로퍼티 타입 설명
$dir string Cache dir

공개 메소드들

메소드 설명
__construct ( string $dir ) : File Constructor
clear ( ) : void Method to clear all stored values from cache.
getDir ( ) : string Method to get the current cache dir.
load ( string $id, string $time ) : mixed Method to load a value from cache.
remove ( string $id ) : void Method to delete a value in cache.
save ( string $id, mixed $value, string $time ) : void Method to save a value to cache.

메소드 상세

__construct() 공개 메소드

Instantiate the cache file object
public __construct ( string $dir ) : File
$dir string
리턴 File

clear() 공개 메소드

Method to clear all stored values from cache.
public clear ( ) : void
리턴 void

getDir() 공개 메소드

Method to get the current cache dir.
public getDir ( ) : string
리턴 string

load() 공개 메소드

Method to load a value from cache.
public load ( string $id, string $time ) : mixed
$id string
$time string
리턴 mixed

remove() 공개 메소드

Method to delete a value in cache.
public remove ( string $id ) : void
$id string
리턴 void

save() 공개 메소드

Method to save a value to cache.
public save ( string $id, mixed $value, string $time ) : void
$id string
$value mixed
$time string
리턴 void

프로퍼티 상세

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

Cache dir
protected string $dir
리턴 string