Cache_Lite::get()

Cache_Lite::get() -- Test if a cache is available and (if yes) return it

Referentiesamenvatting

require_once 'Cache/Lite.php';

string Cache_Lite::get (string $id [, string $group = 'default' [, boolean $doNotTestCacheValidity = FALSE]])

Beschrijving

One of the main method of Cache_Lite : test the validity of a cache file and return it if it's available (FALSE else)

Parameter

string $id

cache id

string $group

name of the cache group

boolean $doNotTestCacheValidity

if set to TRUE, the cache validity won't be tested

Return waarde

returns data of the cache (or false if no cache available)

Note

Deze functie kan niet statisch worden aangeroepen.

Voorbeeld