PocketMine-MP  1.4 - API 1.10.0
 All Classes Namespaces Functions Variables Pages
pocketmine\utils\Cache Class Reference
+ Collaboration diagram for pocketmine\utils\Cache:

Static Public Member Functions

static add ($identifier, $blob, $minTTL=30)
 
static get ($identifier)
 
static exists ($identifier)
 
static remove ($identifier)
 
static cleanup ()
 

Static Public Attributes

static $cached = []
 

Detailed Description

Definition at line 25 of file Cache.php.

Member Function Documentation

static pocketmine\utils\Cache::add (   $identifier,
  $blob,
  $minTTL = 30 
)
static

Adds something to the cache

Parameters
string$identifier
mixed$blob
float | int$minTTLThe data will remain cached for at least $minTTL seconds

Definition at line 35 of file Cache.php.

static pocketmine\utils\Cache::cleanup ( )
static

Starts a cache cleanup

Definition at line 75 of file Cache.php.

static pocketmine\utils\Cache::exists (   $identifier)
static
Parameters
$identifier
Returns
bool

Definition at line 61 of file Cache.php.

static pocketmine\utils\Cache::get (   $identifier)
static

Get something from the cache

Parameters
$identifier
Returns
bool|mixed Returns false if not found, otherwise it returns the data

Definition at line 46 of file Cache.php.

static pocketmine\utils\Cache::remove (   $identifier)
static
Parameters
$identifier

Definition at line 68 of file Cache.php.

Referenced by pocketmine\level\Level\setBlock().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: