PHP Класс Minify_Cache_XCache, minify

Minify::setCache(new Minify_Cache_XCache());
Автор: Chris Edwards
Показать файл Открыть проект

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

Метод Описание
__construct ( integer $expire ) Create a Minify_Cache_XCache object, to be passed to Minify::setCache().
display ( string $id ) Send the cached content to output
fetch ( string $id ) : string Fetch the cached content
getSize ( string $id ) : integer Get the size of a cache entry
isValid ( string $id, integer $srcMtime ) : boolean Does a valid cache entry exist?
store ( string $id, string $data ) : boolean Write data to cache.

Приватные методы

Метод Описание
_fetch ( string $id ) : boolean Fetch data and timestamp from xcache, store in instance

Описание методов

__construct() публичный Метод

Create a Minify_Cache_XCache object, to be passed to Minify::setCache().
public __construct ( integer $expire )
$expire integer seconds until expiration (default = 0 meaning the item will not get an expiration date)

display() публичный Метод

Send the cached content to output
public display ( string $id )
$id string cache id

fetch() публичный Метод

Fetch the cached content
public fetch ( string $id ) : string
$id string cache id
Результат string

getSize() публичный Метод

Get the size of a cache entry
public getSize ( string $id ) : integer
$id string cache id
Результат integer size in bytes

isValid() публичный Метод

Does a valid cache entry exist?
public isValid ( string $id, integer $srcMtime ) : boolean
$id string cache id
$srcMtime integer mtime of the original source file(s)
Результат boolean exists

store() публичный Метод

Write data to cache.
public store ( string $id, string $data ) : boolean
$id string cache id
$data string
Результат boolean success