Minify::setCache(new Minify_Cache_ZendPlatform());
파일 보기
프로젝트 열기: 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 |
public __construct ( integer $expire ) | ||
$expire | integer | seconds until expiration (default = 0 meaning the item will not get an expiration date) |