Skip to content

Commit

Permalink
htable: docs for sht_setxs() and sht_setxi()
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Feb 1, 2022
1 parent 6fe9d15 commit a2c9b9b
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/modules/htable/doc/htable_admin.xml
Expand Up @@ -926,6 +926,52 @@ sht_rm_name("ha", "re", ".*");
...
sht_rm_value("ha", "re", ".*");
...
</programlisting>
</example>
</section>
<section id="htable.f.sht_setxs">
<title>
<function moreinfo="none">sht_setxs(htname, itname, itval, exval)</function>
</title>
<para>
Set the item with the name 'itname' from hash table 'htname' to string
value 'itval' and expire property to 'exval'.
</para>
<para>
The parameters can be with variables.
</para>
<para>
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>sht_setxs</function> usage</title>
<programlisting format="linespecific">
...
sht_setxs("ha", "test", "abc", "10");
...
</programlisting>
</example>
</section>
<section id="htable.f.sht_setxi">
<title>
<function moreinfo="none">sht_setxi(htname, itname, itval, exval)</function>
</title>
<para>
Set the item with the name 'itname' from hash table 'htname' to integer
value 'itval' and expire property to 'exval'.
</para>
<para>
The parameters can be with variables.
</para>
<para>
This function can be used from ANY_ROUTE.
</para>
<example>
<title><function>sht_setxi</function> usage</title>
<programlisting format="linespecific">
...
sht_setxs("ha", "test", "100", "10");
...
</programlisting>
</example>
</section>
Expand Down

0 comments on commit a2c9b9b

Please sign in to comment.