Module: kamailio
Branch: master
Commit: 2b9c0a5fbc2c9ce7354655fa22038e22302553af
URL:
https://github.com/kamailio/kamailio/commit/2b9c0a5fbc2c9ce7354655fa22038e2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-01-21T08:49:51+01:00
htable: docs for rpc command htable.setex
---
Modified: src/modules/htable/doc/htable_admin.xml
---
Diff:
https://github.com/kamailio/kamailio/commit/2b9c0a5fbc2c9ce7354655fa22038e2…
Patch:
https://github.com/kamailio/kamailio/commit/2b9c0a5fbc2c9ce7354655fa22038e2…
---
diff --git a/src/modules/htable/doc/htable_admin.xml
b/src/modules/htable/doc/htable_admin.xml
index 360abbd896..196f9707fa 100644
--- a/src/modules/htable/doc/htable_admin.xml
+++ b/src/modules/htable/doc/htable_admin.xml
@@ -1475,6 +1475,36 @@ kamcmd htable.seti test x 123
# Set first entry in array key x $sht(test=>x[0]) as integer
kamcmd htable.seti test x[0] 123
...
+</programlisting>
+ </section>
+ </section>
+ <section id="htable.rpc.setex">
+ <title>
+ <function moreinfo="none">htable.setex htable key
expire</function>
+ </title>
+ <para>
+ Set the expire for an item in hash table.
+ </para>
+ <para>
+ Name: <emphasis>htable.setex</emphasis>
+ </para>
+ <para>Parameters:</para>
+ <itemizedlist>
+ <listitem><para>htable : name of the hash
table</para>
+ </listitem>
+ <listitem><para>key : key name in the hash
table</para>
+ </listitem>
+ <listitem><para>expire : integer value for the expire
(seconds)</para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ Example:
+ </para>
+<programlisting format="linespecific">
+...
+# set expire for $sht(test=>x) to 120 secs
+kamctl rpc htable.seti test x 120
+...
</programlisting>
</section>
<section id="htable.rpc.dump">