PHP 클래스 Airship\Engine\Cache\File

Caches data in the filesystem.
상속: implements CacheInterface
파일 보기 프로젝트 열기: paragonie/airship

보호된 프로퍼티들

프로퍼티 타입 설명
$baseDir string

공개 메소드들

메소드 설명
__construct ( string $baseDir ) File constructor.
delete ( string $key ) : boolean Delete a cache entry
get ( string $key ) : null | mixed Get a cache entry
getRelativeHash ( string $preHash, boolean $asString = false ) : string | array Get a relative BLAKE2b hash of an input. Formatted as two lookup directories followed by a cache entry. 'hh/hh/hhhhhhhh.
set ( string $key, $value ) : boolean Set a cache entry

보호된 메소드들

메소드 설명
getRelativePath ( string $key ) : string Get the relative path

메소드 상세

__construct() 공개 메소드

File constructor.
public __construct ( string $baseDir )
$baseDir string The base directory

delete() 공개 메소드

Delete a cache entry
public delete ( string $key ) : boolean
$key string
리턴 boolean

get() 공개 메소드

Get a cache entry
public get ( string $key ) : null | mixed
$key string
리턴 null | mixed

getRelativeHash() 공개 정적인 메소드

..'
public static getRelativeHash ( string $preHash, boolean $asString = false ) : string | array
$preHash string The cache identifier (will be hashed)
$asString boolean Return a string?
리턴 string | array

getRelativePath() 보호된 메소드

Get the relative path
protected getRelativePath ( string $key ) : string
$key string
리턴 string

set() 공개 메소드

Set a cache entry
public set ( string $key, $value ) : boolean
$key string
$value
리턴 boolean

프로퍼티 상세

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

protected string $baseDir
리턴 string