略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: mysqlnd_qc_get_available_handlers

2024-12-20

mysqlnd_qc_get_available_handlers

(PECL mysqlnd_qc >= 1.0.0)

mysqlnd_qc_get_available_handlersReturns a list of available storage handler

说明

mysqlnd_qc_get_available_handlers ( void ) : array

Which storage are available depends on the compile time configuration of the query cache plugin. The default storage handler is always available. All other storage handler must be enabled explicitly when building the extension.

参数

此函数没有参数。

返回值

Returns an array of available built-in storage handler. For each storage handler the version number and version string is given.

范例

Example #1 mysqlnd_qc_get_available_handlers() example

<?php
var_dump
(mysqlnd_qc_get_available_handlers());
?>

以上例程会输出:

array(5) {
  ["default"]=>
  array(2) {
    ["version"]=>
    string(5) "1.0.0"
    ["version_number"]=>
    int(100000)
  }
  ["user"]=>
  array(2) {
    ["version"]=>
    string(5) "1.0.0"
    ["version_number"]=>
    int(100000)
  }
  ["APC"]=>
  array(2) {
    ["version"]=>
    string(5) "1.0.0"
    ["version_number"]=>
    int(100000)
  }
  ["MEMCACHE"]=>
  array(2) {
    ["version"]=>
    string(5) "1.0.0"
    ["version_number"]=>
    int(100000)
  }
  ["sqlite"]=>
  array(2) {
    ["version"]=>
    string(5) "1.0.0"
    ["version_number"]=>
    int(100000)
  }
}

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.mysqlnd-qc-get-available-handlers.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3