Skip to content

Commit

Permalink
Fill Memcached::__construct() parameters description
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandre-daubois committed Dec 10, 2024
1 parent 0e48683 commit 45b05e5
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions reference/memcached/memcached/construct.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,25 @@
<varlistentry>
<term><parameter>callback</parameter></term>
<listitem>
<para>
<!-- TODO Document constructor params -->
</para>
<methodsynopsis>
<type>void</type><methodname><replaceable>callback</replaceable></methodname>
<methodparam><type>Memcached</type><parameter>memcached</parameter></methodparam>
<methodparam><type>string|null</type><parameter>persistent_id</parameter></methodparam>
</methodsynopsis>
<simpara>
The <parameter>callback</parameter> parameter is called when the
connection is established. It should be a valid PHP <type>callable</type>
that receive the <classname>Memcached</classname> object as its first
parameter, and <parameter>persistent_id</parameter> as its second.
</simpara>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>connection_str</parameter></term>
<listitem>
<para>
<!-- TODO Document constructor params -->
This parameter is used to pass additional connection options to
the memcache servers, such as a server weight in a cluster.
</para>
</listitem>
</varlistentry>
Expand Down

0 comments on commit 45b05e5

Please sign in to comment.