Oracle 5.0 Reference Manual page 2692

Table of Contents

Advertisement

Mysqlnd query result cache plugin (mysqlnd_qc)
string(1) "2"
["query_should_cache"]=>
string(1) "4"
["query_should_not_cache"]=>
string(1) "3"
["query_not_cached"]=>
string(1) "3"
["query_could_cache"]=>
string(1) "4"
["query_found_in_cache"]=>
string(1) "2"
["query_uncached_other"]=>
string(1) "0"
["query_uncached_no_table"]=>
string(1) "0"
["query_uncached_no_result"]=>
string(1) "0"
["query_uncached_use_result"]=>
string(1) "0"
["query_aggr_run_time_cache_hit"]=>
string(2) "28"
["query_aggr_run_time_cache_put"]=>
string(3) "900"
["query_aggr_run_time_total"]=>
string(3) "928"
["query_aggr_store_time_cache_hit"]=>
string(2) "14"
["query_aggr_store_time_cache_put"]=>
string(2) "40"
["query_aggr_store_time_total"]=>
string(2) "54"
["receive_bytes_recorded"]=>
string(3) "136"
["receive_bytes_replayed"]=>
string(3) "136"
["send_bytes_recorded"]=>
string(2) "84"
["send_bytes_replayed"]=>
string(2) "84"
["slam_stale_refresh"]=>
string(1) "0"
["slam_stale_hit"]=>
string(1) "0"
["request_counter"]=>
int(1)
["process_hash"]=>
int(1929695233)
}
For a quick overview, call mysqlnd_qc_get_core_stats. It delivers cache usage, cache timing and
traffic related statistics. Values are aggregated on a per process basis for all queries issued by any
PHP MySQL API call.
Some storage handler, such as the default handler, can report cache entries, statistics related to the
entries and meta data for the underlying query through the
Please note, that the information returned depends on the storage handler. Values are aggregated on a
per process basis.
Example 20.316. Example
mysqlnd_qc.enable_qc=1
<?php
/* connect to MySQL */
mysqlnd_qc_get_cache_info
2672
mysqlnd_qc_get_cache_info
usage
function.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents