PHP 클래스 Minify_Cache_ZendPlatform, minify

Based on Minify_Cache_APC, uses output_cache_get/put (currently deprecated) Minify::setCache(new Minify_Cache_ZendPlatform());
저자: Patrick van Dissel
상속: implements Minify_CacheInterface
파일 보기 프로젝트 열기: mrclay/minify 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( integer $expire ) Create a Minify_Cache_ZendPlatform 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 ZendPlatform, store in instance

메소드 상세

__construct() 공개 메소드

Create a Minify_Cache_ZendPlatform 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