PHP Class pocketmine\utils\Cache

Deprecation:
Afficher le fichier Open project: ClearSkyTeam/ClearSky Class Usage Examples

Méthodes publiques

Свойство Type Description
$cached

Méthodes publiques

Méthode 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 méthode

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 méthode

Starts a cache cleanup
public static cleanup ( )

exists() public static méthode

public static exists ( $identifier ) : boolean
$identifier
Résultat boolean

get() public static méthode

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

remove() public static méthode

public static remove ( $identifier )
$identifier

Property Details

$cached public_oe static_oe property

public static $cached