reference/memcached/memcached/cas.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.cas" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>Memcached::cas</refname>
...
...
@@ -9,12 +8,12 @@
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::cas</methodname>
14
-
<methodparam><type>float</type><parameter>cas_token</parameter></methodparam>
13
+
<methodparam><type class="union"><type>string</type><type>int</type><type>float</type></type><parameter>cas_token</parameter></methodparam>
15
14
<methodparam><type>string</type><parameter>key</parameter></methodparam>
16
15
<methodparam><type>mixed</type><parameter>value</parameter></methodparam>
17
-
<methodparam choice="opt"><type>int</type><parameter>expiration</parameter></methodparam>
16
+
<methodparam choice="opt"><type>int</type><parameter>expiration</parameter><initializer>0</initializer></methodparam>
18
17
</methodsynopsis>
19
18
<para>
20
19
<function>Memcached::cas</function> performs a "check and set" operation,
...
...
@@ -23,7 +22,7 @@
23
22
<parameter>cas_token</parameter> parameter which is a unique 64-bit
24
23
value assigned to the existing item by memcache. See the documentation for
25
24
<methodname>Memcached::get*</methodname> methods for how to obtain this
26
-
token. Note that the token is represented as a double due to the
25
+
token. Note that the token is represented as a float due to the
27
26
limitations of PHP's integer space.
28
27
</para>
29
28
</refsect1>
...
...
@@ -122,7 +121,6 @@ do {
122
121
</refsect1>
123
122

124
123
</refentry>
125
-

126
124
<!-- Keep this comment at the end of the file
127
125
Local variables:
128
126
mode: sgml
129
127