php-doc-en/reference/mysqlnd_memcache/constants.xml
TAKAGI Masahiro 86fe1b6af3 Set svn:keywords
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328862 c90b9560-bf6c-de11-be94-00142212c4b1
2012-12-22 21:54:47 +00:00

122 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<appendix xml:id="mysqlnd-memcache.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
&reftitle.constants;
&extension.constants;
<para>
<emphasis role="bold">MySQL Memcache Plugin related</emphasis>
</para>
<para>
<variablelist>
<varlistentry xml:id="constant.mysqlnd-memcache-default-regexp">
<term>
<constant>MYSQLND_MEMCACHE_DEFAULT_REGEXP</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
Default regular expression (PCRE style) used for matching <literal>SELECT</literal>
statements that will be mapped into a MySQL Memcache Plugin access point, if possible.
</simpara>
<simpara>
It is also possible to use <function>mysqlnd_memcache_set</function>, but the default
approach is using this regular expression for pattern matching.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
<para>
<emphasis role="bold">Assorted</emphasis>
</para>
<para>
The version number of this plugin can be obtained by using
<constant>MYSQLND_MEMCACHE_VERSION</constant> or
<constant>MYSQLND_MEMCACHE_VERSION_ID</constant>.
<constant>MYSQLND_MEMCACHE_VERSION</constant>
is the string representation of the numerical version number
<constant>MYSQLND_MEMCACHE_VERSION_ID</constant>, which is an integer such as 10000.
Developers can calculate the version number as follows.
</para>
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>Version (part)</entry>
<entry>Example</entry>
</row>
</thead>
<tbody>
<row>
<entry>Major*10000</entry>
<entry>1*10000 = 10000</entry>
</row>
<row>
<entry>Minor*100</entry>
<entry>0*100 = 0</entry>
</row>
<row>
<entry>Patch</entry>
<entry>0 = 0</entry>
</row>
<row>
<entry>MYSQLND_MEMCACHE_VERSION_ID</entry>
<entry>10000</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
<para>
<variablelist>
<varlistentry xml:id="constant.mysqlnd-memcache-version">
<term>
<constant>MYSQLND_MEMCACHE_VERSION</constant>
(<type>string</type>)
</term>
<listitem>
<simpara>
Plugin version string, for example, <quote>1.0.0-alpha</quote>.
</simpara>
</listitem>
</varlistentry>
<varlistentry xml:id="constant.mysqlnd-memcache-version-id">
<term>
<constant>MYSQLND_MEMCACHE_VERSION_ID</constant>
(<type>integer</type>)
</term>
<listitem>
<simpara>
Plugin version number, for example, 10000.
</simpara>
</listitem>
</varlistentry>
</variablelist>
</para>
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->