reference/memcached/memcached/set.xml
1d8068ecb070fdc360d750e0c1f3f15796e61ec0
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="memcached.set" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>Memcached::set</refname>
...
...
@@ -9,11 +8,11 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
11
+
<methodsynopsis role="Memcached">
13
12
<modifier>public</modifier> <type>bool</type><methodname>Memcached::set</methodname>
14
13
<methodparam><type>string</type><parameter>key</parameter></methodparam>
15
14
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
16
-
<methodparam choice="opt"><type>int</type><parameter>expiration</parameter></methodparam>
15
+
<methodparam choice="opt"><type>int</type><parameter>expiration</parameter><initializer>0</initializer></methodparam>
17
16
</methodsynopsis>
18
17
<para>
19
18
<function>Memcached::set</function> stores the <parameter>value</parameter>
...
...
@@ -84,7 +83,7 @@ $m->set('int', 99);
84
83
$m->set('string', 'a simple string');
85
84
$m->set('array', array(11, 12));
86
85
/* expire 'object' key in 5 minutes */
87
-
$m->set('object', new stdclass, time() + 300);
86
+
$m->set('object', new stdClass, time() + 300);
88
87

89
88

90
89
var_dump($m->get('int'));
...
...
@@ -125,7 +124,6 @@ object(stdClass)#1 (0) {
125
124
</refsect1>
126
125

127
126
</refentry>
128
-

129
127
<!-- Keep this comment at the end of the file
130
128
Local variables:
131
129
mode: sgml
132
130