This function is deprecated in V6 and will be removed in a later release. Use getOne with caching parameters instead
mixed cacheGetOne(
mixed $cacheSeconds,
optional string $sql=false
optional array $bindvars=false
)
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 cacheGetOne(), see getOne().
$ADODB_GETONE_EOF = "-1"; $SQL = "SELECT MAX(tickets) FROM arena WHERE zip_code = '80111'"; $maxTickets = $db->cacheGetOne(100,$SQL);