v5:reference:connection:cachegetall
cacheGetAll
syntax
mixed cacheGetAll { mixed $cacheSeconds, optional mixed $sql=false, optional string[] $bindvars=false }
Description
Cache functions search for the results of an executed query in the query cache. The results of a query have an expiration time specified by the first parameter. If an unexpired cache result is not found, the query is cached for the specified period.
For an explanation of the syntax of the other parameter of cacheGetAll()
, see getAll().
Usage
/* * DB2 Connection assumed */ $ar = $db->getAll(30000,"SELECT * FROM ACT"); /* * $ar returns: Array ( [0] => Array ( [0] => 10 [1] => MANAGE [2] => MANAGE/ADVISE ) [1] => Array ( [0] => 20 [1] => ECOST [2] => ESTIMATE COST ) [2] => Array ( [0] => 30 [1] => DEFINE [2] => DEFINE SPECS ....... */
v5/reference/connection/cachegetall.txt · Last modified: 2016/01/17 01:31 by mnewnham