1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
|
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 328862 $ -->
<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
-->
|