PHP 클래스 Bluz\Cache\Adapter\FileBase

저자: murzik
상속: extends AbstractAdapter
파일 보기 프로젝트 열기: bluzphp/framework

보호된 프로퍼티들

프로퍼티 타입 설명
$cacheDir directory of cache files
$extension extension of cache files

공개 메소드들

메소드 설명
__construct ( array $settings = [] ) Check configuration and permissions

보호된 메소드들

메소드 설명
doDelete ( string $id ) : boolean | mixed
doFlush ( ) : boolean Flush implementation for all file-based cache implementations
getFilename ( string $id ) : string Generate path to cache file based on cache entry id
writeFile ( string $fileName, string $content ) : boolean | integer Write string to the file in an atomic way

메소드 상세

__construct() 공개 메소드

Check configuration and permissions
public __construct ( array $settings = [] )
$settings array

doDelete() 보호된 메소드

protected doDelete ( string $id ) : boolean | mixed
$id string
리턴 boolean | mixed

doFlush() 보호된 메소드

Flush implementation for all file-based cache implementations
protected doFlush ( ) : boolean
리턴 boolean

getFilename() 보호된 메소드

Generate path to cache file based on cache entry id
protected getFilename ( string $id ) : string
$id string cache entry id
리턴 string path to file

writeFile() 보호된 메소드

Write string to the file in an atomic way
protected writeFile ( string $fileName, string $content ) : boolean | integer
$fileName string
$content string
리턴 boolean | integer The number of bytes that were written to the file, or false on failure

프로퍼티 상세

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

directory of cache files
protected $cacheDir

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

extension of cache files
protected $extension