Mysqlnd Memcache plugin (
mysqlnd_memcache
)
2796
20.7.10.1. Key Features
Copyright 1997-2012 the PHP Documentation Group. [2230]
The key features of PECL/mysqlnd_memcache are as follows.
• Possible performance benefits
• Client-side: light-weight protocol.
• Server-side: no SQL parsing, direct access to the storage.
• Please, run your own benchmarks! Actual performance results are highly dependent on setup and
hardware used.
20.7.10.2. Limitations
Copyright 1997-2012 the PHP Documentation Group. [2230]
The initial version is not binary safe. Due to the way the MySQL Memcache plugins works there are
restrictions related to separators.
Prepared statements and asynchronous queries are not supported. Result set meta data support is
limited.
The mapping information for tables accessible via Memcache is not cached in the plugin between
requests but fetched from the MySQL server each time a MySQL connection is associated with a
Memcache connection. See
mysqlnd_memcache_set
for details.
20.7.10.3. On the name
Copyright 1997-2012 the PHP Documentation Group. [2230]
The shortcut
mysqlnd_memcache
stands for
mysqlnd memcache plugin
. Memcache refers to
support of the MySQL Memcache plugins for InnoDB and NDB (MySQL Cluster). The plugin is not
related to the Memcached cache server.
20.7.10.4. Quickstart and Examples
Copyright 1997-2012 the PHP Documentation Group. [2230]
The mysqlnd memcache plugin is easy to use. This quickstart will demo typical use-cases, and provide
practical advice on getting started.
It is strongly recommended to read the reference sections in addition to the quickstart. The quickstart
tries to avoid discussing theoretical concepts and limitations. Instead, it will link to the reference
sections. It is safe to begin with the quickstart. However, before using the plugin in mission critical
environments we urge you to read additionally the background information from the reference sections.
20.7.10.4.1. Setup
Copyright 1997-2012 the PHP Documentation Group. [2230]
The plugin is implemented as a PHP extension. See also the
installation instructions
to install this
extension.
Compile or configure the PHP MySQL extension (API) (
mysqli
,
PDO_MYSQL
,
mysql
). That extension
must use the
mysqlnd
library as because mysqlnd_memcache is a plugin for the mysqlnd library. For
additional information, refer to the
mysqlnd_memcache installation instructions
.
Then, load this extension into PHP and activate the plugin in the PHP configuration file using the PHP
configuration directive named
mysqlnd_memcache.enable
.
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 ...