PocketMine
Cache Class Reference

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

Member Function Documentation

static 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
static cleanup ( )
static

Starts a cache cleanup

static exists (   $identifier)
static
Parameters
$identifier
Returns
bool
static get (   $identifier)
static

Get something from the cache

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

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