Mysqlnd Memcache plugin (
mysqlnd_memcache
)
2800
20.7.10.7. Mysqlnd_memcache Functions
Copyright 1997-2012 the PHP Documentation Group. [2230]
20.7.10.7.1.
mysqlnd_memcache_get_config
Copyright 1997-2012 the PHP Documentation Group. [2230]
•
mysqlnd_memcache_get_config
Returns information about the plugin configuration
Description
array mysqlnd_memcache_get_config(
mixed connection);
This function returns an array of all mysqlnd_memcache related configuration information that
is attached to the MySQL connection. This includes MySQL, the Memcache object provided via
mysqlnd_memcache_set
, and the table mapping configuration that was automatically collected from
the MySQL Server.
Parameters
connection
A handle to a MySQL Server using one of the MySQL API
extensions for PHP, which are
PDO_MYSQL
,
mysqli
or
ext/mysql
.
Return Values
An array of mysqlnd_memcache configuration information on success, otherwise
FALSE
.
The returned array has these elements:
Table 20.77.
mysqlnd_memcache_get_config
array structure
Array Key
Description
memcached
Instance of Memcached associated to this MySQL
connection by
mysqlnd_memcache_set
. You
can use this to change settings of the memcache
connection, or directly by querying the server on
this connection.
pattern
The PCRE regular expression used to match the
SQL query sent to the server. Queries matching
this pattern will be further analyzed to decide
whether the query can be intercepted and sent
via the memcache interface or whether the query
is sent using the general MySQL protocol to the
server. The pattern is either the default pattern
(
MYSQLND_MEMCACHE_DEFAULT_REGEXP
) or it is
set via
mysqlnd_memcache_set
.
mappings
An associative array with a list of all configured
containers as they were discovered by this
plugin. The key for these elements is the name
of the container in the MySQL configuration. The
value is described below. The contents of this
field is created by querying the MySQL Server
during association to MySQL and a memcache
connection using
mysqlnd_memcache_set
.
mapping_query
An SQL query used during
mysqlnd_memcache_set
to identify the
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...