mysqlnd_qc_set_user_handlers

(PECL mysqlnd_qc >= 1.0.0)

mysqlnd_qc_set_user_handlersSets the callback functions for a user-defined procedural storage handler

说明

mysqlnd_qc_set_user_handlers ( string $get_hash , string $find_query_in_cache , string $return_to_cache , string $add_query_to_cache_if_not_exists , string $query_is_select , string $update_query_run_time_stats , string $get_stats , string $clear_cache ) : bool

Sets the callback functions for a user-defined procedural storage handler.

参数

get_hash

Name of the user function implementing the storage handler get_hash functionality.

find_query_in_cache

Name of the user function implementing the storage handler find_in_cache functionality.

return_to_cache

Name of the user function implementing the storage handler return_to_cache functionality.

add_query_to_cache_if_not_exists

Name of the user function implementing the storage handler add_query_to_cache_if_not_exists functionality.

query_is_select

Name of the user function implementing the storage handler query_is_select functionality.

update_query_run_time_stats

Name of the user function implementing the storage handler update_query_run_time_stats functionality.

get_stats

Name of the user function implementing the storage handler get_stats functionality.

clear_cache

Name of the user function implementing the storage handler clear_cache functionality.

返回值

Returns TRUE on success or FALSE on FAILURE.

相关文章
php fdf 函数 call a user defined function for each document valuephp mysqlnd ms 函数 sets a callback for user defined read/write splittingphp mysqlnd qc 函数 returns a list of available storage handlerphp mysqlnd qc 函数 returns information on the current handler the number of cache entries and cache entries if availablephp mysqlnd qc 函数 statistics collected by the core of the query cachephp mysqlnd qc 函数 returns a normalized query trace log for each query inspected by the query cachephp mysqlnd qc 函数 returns a backtrace for each query inspected by the query cachephp mysqlnd qc 函数 set conditions for automatic cachingphp mysqlnd qc 函数 installs a callback which decides whether a statement is cachedphp mysqlnd qc 函数 change current storage handlerphp mysqlnd qc 函数 sets the callback functions for a user defined procedural storage handlerphp newt 函数 set a callback function which gets invoked when user presses the suspend keyphp oci8 函数 register a user defined callback function for oracle database tafphp oci8 函数 unregister a user defined callback function for oracle database tafphp sqlite 函数 registers a regular user defined function for use in sql statementsphp swoole 函数 add new callback functions of a socket into the eventloopphp swoole 函数 remove all event callback functions of a socketphp swoole 函数 update the event callback functions of a socketphp quickstart and examples beyond ttl user defined storagephp mysqlnd qc mysqlnd qc 函数
关注编程学问公众号