PHP Class pocketmine\utils\Cache

Deprecation:
ファイルを表示 Open project: ClearSkyTeam/ClearSky Class Usage Examples

Public Properties

Property Type Description
$cached

Public Methods

Method Description
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 )

Method Details

add() public static method

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() public static method

Starts a cache cleanup
public static cleanup ( )

exists() public static method

public static exists ( $identifier ) : boolean
$identifier
return boolean

get() public static method

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

remove() public static method

public static remove ( $identifier )
$identifier

Property Details

$cached public_oe static_oe property

public static $cached