Module: kamailio Branch: master Commit: a4a55c42aa719f8674ae54d30527acca85763358 URL: https://github.com/kamailio/kamailio/commit/a4a55c42aa719f8674ae54d30527acca...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-02-09T08:55:41+01:00
htable: docs for rpc commands to set value and expire
---
Modified: src/modules/htable/doc/htable_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/a4a55c42aa719f8674ae54d30527acca... Patch: https://github.com/kamailio/kamailio/commit/a4a55c42aa719f8674ae54d30527acca...
---
diff --git a/src/modules/htable/doc/htable_admin.xml b/src/modules/htable/doc/htable_admin.xml index 9ea5c183f7..45f41f4561 100644 --- a/src/modules/htable/doc/htable_admin.xml +++ b/src/modules/htable/doc/htable_admin.xml @@ -1550,6 +1550,68 @@ kamcmd htable.seti test x[0] 123 # set expire for $sht(test=>x) to 120 secs kamctl rpc htable.seti test x 120 ... +</programlisting> + </section> + <section id="htable.rpc.setxs"> + <title> + <function moreinfo="none">htable.setxs htable key value expire</function> + </title> + <para> + Set the string value and expire for an item in hash table. + </para> + <para> + Name: <emphasis>htable.setxs</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>value : string value for the item</para> + </listitem> + <listitem><para>expire : integer value for the expire (seconds)</para> + </listitem> + </itemizedlist> + <para> + Example: + </para> +<programlisting format="linespecific"> +... +# set value to 'abc' and expire for $sht(test=>x) to 120 secs +kamctl rpc htable.setxs test x abc 120 +... +</programlisting> + </section> + <section id="htable.rpc.setxi"> + <title> + <function moreinfo="none">htable.setxi htable key value expire</function> + </title> + <para> + Set the integer value and expire for an item in hash table. + </para> + <para> + Name: <emphasis>htable.setxi</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>value : integer value for the item</para> + </listitem> + <listitem><para>expire : integer value for the expire (seconds)</para> + </listitem> + </itemizedlist> + <para> + Example: + </para> +<programlisting format="linespecific"> +... +# set value to 10 and expire for $sht(test=>x) to 120 secs +kamctl rpc htable.setxi test x 10 120 +... </programlisting> </section> <section id="htable.rpc.dump">