PHP 클래스 Redaxscript\Cache

부터: 3.0.0
저자: Henry Ruhs
파일 보기 프로젝트 열기: redaxmedia/redaxscript 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_directory string directory of the cache
$_extension string extension of the cached files

공개 메소드들

메소드 설명
clear ( mixed $bundle = null ) : Cache clear the cache
clearInvalid ( integer $lifetime = 3600 ) : Cache clear the invalid cache
getDirectory ( ) : string get the directory
getPath ( mixed $bundle = null ) : string get the path
init ( string $directory = null, string $extension = null ) : Cache init the class
retrieve ( mixed $bundle = null ) : mixed retrieve from cache
store ( mixed $bundle = null, string $content = null ) : Cache store to cache
validate ( mixed $bundle = null, integer $lifetime = 3600 ) : boolean validate the cache

보호된 메소드들

메소드 설명
_getFile ( mixed $bundle = null ) : string get the file
_validateFile ( string $path = null, integer $lifetime = 3600 ) : boolean validate the file

메소드 상세

_getFile() 보호된 메소드

get the file
부터: 3.0.0
protected _getFile ( mixed $bundle = null ) : string
$bundle mixed key or collection of the bundle
리턴 string

_validateFile() 보호된 메소드

validate the file
부터: 3.0.0
protected _validateFile ( string $path = null, integer $lifetime = 3600 ) : boolean
$path string path of the bundle
$lifetime integer lifetime of the bundle
리턴 boolean

clear() 공개 메소드

clear the cache
부터: 3.0.0
public clear ( mixed $bundle = null ) : Cache
$bundle mixed key or collection of the bundle
리턴 Cache

clearInvalid() 공개 메소드

clear the invalid cache
부터: 3.0.0
public clearInvalid ( integer $lifetime = 3600 ) : Cache
$lifetime integer lifetime of the bundle
리턴 Cache

getDirectory() 공개 메소드

get the directory
부터: 3.0.0
public getDirectory ( ) : string
리턴 string

getPath() 공개 메소드

get the path
부터: 3.0.0
public getPath ( mixed $bundle = null ) : string
$bundle mixed key or collection of the bundle
리턴 string

init() 공개 메소드

init the class
부터: 3.0.0
public init ( string $directory = null, string $extension = null ) : Cache
$directory string directory of the cache
$extension string extension of the cached files
리턴 Cache

retrieve() 공개 메소드

retrieve from cache
부터: 3.0.0
public retrieve ( mixed $bundle = null ) : mixed
$bundle mixed key or collection of the bundle
리턴 mixed

store() 공개 메소드

store to cache
부터: 3.0.0
public store ( mixed $bundle = null, string $content = null ) : Cache
$bundle mixed key or collection of the bundle
$content string content of the bundle
리턴 Cache

validate() 공개 메소드

validate the cache
부터: 3.0.0
public validate ( mixed $bundle = null, integer $lifetime = 3600 ) : boolean
$bundle mixed key or collection of the bundle
$lifetime integer lifetime of the bundle
리턴 boolean

프로퍼티 상세

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

directory of the cache
protected string $_directory
리턴 string

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

extension of the cached files
protected string $_extension
리턴 string