PHP Интерфейс IStorage, HamlPHP

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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 )