PHP 인터페이스 IStorage, HamlPHP

파일 보기 프로젝트 열기: hamlphp/hamlphp 0 사용 예제들

공개 메소드들

메소드 설명
cache ( $id, $content ) Cache contents and index it under the specified id.
fetch ( $id ) Returns content from a cache.
generateContentId ( string $content ) The content to generate the id for.
isFresh ( $id ) Returns true if content is fresh and false if content should be cached.
remove ( $id ) Remove cached content.

메소드 상세

cache() 공개 메소드

Cache contents and index it under the specified id.
public cache ( $id, $content )

fetch() 공개 메소드

Returns content from a cache.
public fetch ( $id )

generateContentId() 공개 메소드

The content to generate the id for.
public generateContentId ( string $content )
$content string

isFresh() 공개 메소드

Returns true if content is fresh and false if content should be cached.
public isFresh ( $id )

remove() 공개 메소드

Remove cached content.
public remove ( $id )