PHP 클래스 pocketmine\utils\Cache

사용 중단:
파일 보기 프로젝트 열기: ClearSkyTeam/ClearSky 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cached

공개 메소드들

메소드 설명
add ( string $identifier, mixed $blob, float | integer $minTTL = 30 ) Adds something to the cache
cleanup ( ) Starts a cache cleanup
exists ( $identifier ) : boolean
get ( $identifier ) : boolean | mixed Get something from the cache
remove ( $identifier )

메소드 상세

add() 공개 정적인 메소드

Adds something to the cache
public static add ( string $identifier, mixed $blob, float | integer $minTTL = 30 )
$identifier string
$blob mixed
$minTTL float | integer The data will remain cached for at least $minTTL seconds

cleanup() 공개 정적인 메소드

Starts a cache cleanup
public static cleanup ( )

exists() 공개 정적인 메소드

public static exists ( $identifier ) : boolean
$identifier
리턴 boolean

get() 공개 정적인 메소드

Get something from the cache
public static get ( $identifier ) : boolean | mixed
$identifier
리턴 boolean | mixed Returns false if not found, otherwise it returns the data

remove() 공개 정적인 메소드

public static remove ( $identifier )
$identifier

프로퍼티 상세

$cached 공개적으로 정적으로 프로퍼티

public static $cached