didou Sun Jun 24 03:23:30 2007 UTC
Modified files:
/phpdoc/en/reference/memcache constants.xml reference.xml
Log:
Fix #41454: highlight memcache session handler
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/constants.xml?r1=1.2&r2=1.3&diff_format=u
Index: phpdoc/en/reference/memcache/constants.xml
diff -u phpdoc/en/reference/memcache/constants.xml:1.2
phpdoc/en/reference/memcache/constants.xml:1.3
--- phpdoc/en/reference/memcache/constants.xml:1.2 Wed Jun 20 22:24:54 2007
+++ phpdoc/en/reference/memcache/constants.xml Sun Jun 24 03:23:30 2007
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<section xml:id='memcache.constants' xmlns="http://docbook.org/ns/docbook">
&reftitle.constants;
<table>
- <title>MemCache Constants</title>
+ <title>Memcache Constants</title>
<tgroup cols='2'>
<thead>
<row>
@@ -24,6 +24,15 @@
<function>Memcache::replace</function>.
</entry>
</row>
+ <row>
+ <entry>
+ <constant
xml:id='constantmemcache-have-session'>MEMCACHE_HAVE_SESSION</constant>
+ (<type>integer</type>)
+ </entry>
+ <entry>
+ 1 if this Memcache session handler is available, 0 otherwise.
+ </entry>
+ </row>
</tbody>
</tgroup>
</table>
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/memcache/reference.xml?r1=1.9&r2=1.10&diff_format=u
Index: phpdoc/en/reference/memcache/reference.xml
diff -u phpdoc/en/reference/memcache/reference.xml:1.9
phpdoc/en/reference/memcache/reference.xml:1.10
--- phpdoc/en/reference/memcache/reference.xml:1.9 Wed Jun 20 22:24:54 2007
+++ phpdoc/en/reference/memcache/reference.xml Sun Jun 24 03:23:30 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
<!-- Purpose: remote.other -->
<!-- Membership: pecl, external -->
@@ -16,6 +16,10 @@
designed to decrease database load in dynamic web applications.
</para>
<para>
+ The Memcache module also provides a <link
+ linkend="ref.session">session</link> handler
(<literal>memcache</literal>).
+ </para>
+ <para>
More information about memcached can be found at <link
xlink:href="&url.memcache;">&url.memcache;</link>.
</para>
@@ -51,6 +55,12 @@
<para>
<example>
<title>memcache extension overview example</title>
+ <para>
+ In this example, an object is being saved in the cache and then
+ retrieved back. Object and other non-scalar types are serialized
+ before saving, so it's impossible to store resources (i.e. connection
+ identifiers and others) in the cache.
+ </para>
<programlisting role="php">
<![CDATA[
<?php
@@ -79,10 +89,20 @@
</example>
</para>
<para>
- In the above example, an object is being saved in the cache and then
- retrieved back. Object and other non-scalar types are serialized before
- saving, so it's impossible to store resources (i.e. connection identifiers
- and others) in the cache.
+ <example>
+ <title>Using memcache session handler</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$session_save_path =
"tcp://$host:$port?persistent=1&weight=2&timeout=2&retry_interval=10,
,tcp://$host:$port ";
+ini_set('session.save_handler', 'memcache');
+ini_set('session.save_path', $session_save_path);
+
+?>
+]]>
+ </programlisting>
+ </example>
</para>
</section>