Cache $_SERVER['REQUEST_TIME'] : 1438377751
$_SERVER['REQUEST_TIME'] date 2015-07-31 21:22:31
$_SERVER['REQUEST_TIME'] cached 0 seconds ago
This cache expires each: 30 seconds
Cache other class method : External call to other class successfull on 2015-07-31 21:22:31
This cache expires each: 60 seconds
Cache & increment test num : 1
Cache a rand value : 6750
This cache expires each: 10 seconds
Cache an object :object(stdClass)#5 (4) { ["id"]=> int(24) ["name"]=> string(12) "Product name" ["qty_random"]=> int(859) ["date_insert"]=> string(19) "2015-07-31 21:22:31" }
This Object cache expires each: 10 seconds
Memory used: 932Kb

Press 'refresh' to see how the cache changes ...