PHP 클래스 Cache_Lite_Timed, cachearium

상속: extends Cache_Lite
파일 보기 프로젝트 열기: corollarium/cachearium 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_bufferedLifetime

공개 메소드들

메소드 설명
__construct ( array $options = [NULL] ) Constructor
_setLastModified ( integer $time ) : boolean Sets the ctime/mtime status for a file for the given time.
_setRefreshTime ( ) Override refresh time function. Returns current time.
save ( string $data, string $id = NULL, string $group = 'default', integer $lifetime = null ) : boolean Save some data in a cache file

메소드 상세

__construct() 공개 메소드

$options is an assoc. To have a look at availables options, see the constructor of the Cache_Lite class in 'Cache_Lite.php'
public __construct ( array $options = [NULL] )
$options array options

_setLastModified() 공개 메소드

Sets the ctime/mtime status for a file for the given time.
public _setLastModified ( integer $time ) : boolean
$time integer Unix timestamp
리턴 boolean

_setRefreshTime() 공개 메소드

Override refresh time function. Returns current time.
public _setRefreshTime ( )

save() 공개 메소드

Save some data in a cache file
public save ( string $data, string $id = NULL, string $group = 'default', integer $lifetime = null ) : boolean
$data string data to put in cache (can be another type than strings if automaticSerialization is on)
$id string cache id
$group string name of the cache group
$lifetime integer The time in seconds that this entry should live. Defaults to the lifetime set by the constructor.
리턴 boolean true if no problem (else : false or a PEAR_Error object)

프로퍼티 상세

$_bufferedLifetime 공개적으로 프로퍼티

public $_bufferedLifetime